-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS(TestSet): FAIL: Create first profile after install service and rs-mobile #32
Comments
There is some problem with retroshare service. |
So i just did the above but now by debugging in as.
Taken over in mine: #31 to debug on this state allready. crashing request: (cause: connection refused)(as service is downed) |
If this is throwing you socket exception than it is the problem with retroshare service. because the UI part seems good to me. |
yes in one way of view:
what do i need in my build system to build and debug the service itself? and aside from this, debugging the code is making me slowly but definitly more familiar with the rs-mobile and flutter-dart code. so in any way at least a win to me ;) Another thing: |
@Kumaravinash9 |
do you now how a naive flutter-as beginner can setup an environment to debug the service itself? to get an idea why he socket refuses? |
Hey! I saw in your exception this:
Seem that is trying to connect to the port Some tricks: To debug RetroShare on the phone you can use:
Also you can do curl calls from the computer via adb using, this can help you to debug:
Try to debug further and paste the results And about that:
We resolve it here. |
I debug it with android studio on the phone. Ok, tomorrow i will again debug it step by step.
As i understood, this is up to restart the downed service automatic again:OK Are you aware or do you know that the service stay active in the background an endless time if no rs-mobile is active/installed also if you work with other apps in the phone meanwhile. |
Yes but you are debugging the flutter app, not the retroshare service, youshould know why RS service fall if its falling. To mantain a service up, on android, you will need to run this service as a foreground application, using an android notification to mantain it up. On elrepo.io, we bundle the retroshare service apk on the flutter app and make it runing as foreground application. I think you will find how to do it on the issue i quoted. Otherwhise ask me of how to do this process. If you dont do that, androidOS will set the service in idle status or something similar after a while, stopping RS servic until focus. https://developer.android.com/guide/components/foreground-services |
Hii @selankon , |
Could you please send me the proper steps how to compile the new retroshare service apk. Thanks |
Yes, as is asked above also "do you now how ... can setup an environment to debug the service itself?" that would be very good/helpfull. |
Hi, To debug service itself, as i suggested, use abive, use :
And you can do
@G10h4ck do the compilation. Maybe can help. In the following days I could do a step by step guidw of how to integrate retroshare apk inside a flutter apk and execute it as foreground service. |
Ahh..., |
OK i now did a new test-run with the rs-mobile from avin's master: Attached the adb trace: |
Thanks for the hint, |
But i checked out your new master and build tested with it: |
Socket exception comes because of this reason More commonly, it is caused by writing to a connection that the other end has already closed normally. In other words an application protocol error. It can also be caused by closing a socket when there is unread data in the socket receive buffe |
Hi @selankon , |
@Kumaravinash9 I wrote this guide of how to bundle RS service as Android Foreground service https://gitlab.com/elRepo.io/elRepo.io-android/-/issues/43 Probably I forgot stuff, write me a comment there if need to ask |
Thanks @selankon. And can you help me to debug this login problem. Actually from my side i pointed port at 9092 but still comes socket exception. |
Please @Kumaravinash9 provide related information:
Maybe Android bring down the RetroShare service into a idle state? Please provide as much information as you can when asking for a solution. |
Yes, at least at my environment:
Master of @Kumaravinash9, but as merge into my fork as dev/master: |
Appended a trace with socket error... |
..and here a trace with "Connection closed before full header was received" |
M... maybe activity manager is killing RetroShare service
@Kumaravinash9 are you trying to bundle both apks as shown in the guide? Maybe this fix the problem? Could you try to do a curl call after a socket exception is thrown? |
Yes working on it. will integrate it by tomorrow. |
Update of the test upto #39: Still not working on my phone, Instead of socket exception or "not finished header in async return"-exceptions now the exception is: but: |
Test repeated with an emulated device: |
TC(TestCase): FAIL: Device: ZTE Blade A5 2019 (mobile) • android-arm • Android 9 (API 28)
apks
Steps: Create the first profile after install
4.1. => show with START-Button
5.1. => shows STOP button
6.1. => FAIL: shows entry view to create profile
7.1 => FAIL: show still STOP
The text was updated successfully, but these errors were encountered: