native-boinc-for-android icon indicating copy to clipboard operation
native-boinc-for-android copied to clipboard

Turning off WiFi disconnects local client

Open Cyberman-tM opened this issue 11 years ago • 5 comments

LG Optimus 4X HD (P880), running Albert@Home on 2 CPUs.

I only turn on WiFi to upload finished results, it seems that every time I disable WiFi, there is an error in NativeBoinc and the client disconnects. The app itself remains stable, as it catches the problem. I can immediately reconnect the client and everything is fine.

Cyberman-tM avatar May 06 '13 12:05 Cyberman-tM

Are you connecting with native boinc client (inside device)? Native client have addres 127.0.0.1, and shouldn't be disconected when WiFi will be disabled. PS: Check your WIFI configuration, may be some wrong in WiFi setup or you installed some WiFi utility.

matszpk avatar May 06 '13 13:05 matszpk

Native Client, yes. I have no WiFi utilities installed as far as I know - it's stock LG Android 4.0, few apps installed.

Apparently I can't save the log file - or at least can't find it.

The last line says: "Suspending network activity - wifi network was disabled".

When I disable WiFi I get two pop-up messages: Error - Client disconnected Client error - Error happens during BOINC operation

Is there a log I can copy that may contain more info? Apparently bugcatcher mode cannot be enabled - because it's stock android?

Cyberman-tM avatar May 06 '13 18:05 Cyberman-tM

Thank you. If boinc client is working after disconnecting (you can simply reconnect without restarting), this mean that is problem with nativeboinc (RPC communication with client) and in this case bugcatcher is not necessary. Edit: if possible you can get android logs for nativeboinc (by using adb, android sdk for eclipse sdk). For me, will be interesting only logs with WARN,ERROR,FATAL priority. Ofcourse this is only my proposal (you needn't get android logs for me) and I will revise my code again.

matszpk avatar May 06 '13 19:05 matszpk

Sorry, I don't have Eclipse installed right now - sooner or later I'll install it again, then I could install the SDK and send you the logs. In the meantime, I've installed this "aLogcat" app, would that be of use to you? I tried to read the logs, but for me it's too much Android-inside - all I could gather was that there are no Fatal priority logs, but plenty of the rest.

Interestingly, the client seems to reconnect by itself after a few seconds - I didn't notice before because I immediately manually reconnected it.

[edit]BTW, it doesn't matter if the phone is connected to the charger, PC (mode MTP), or not at all.

Cyberman-tM avatar May 06 '13 19:05 Cyberman-tM

Quick update: I think now that the client isn't really disconnected - because when I leave the manager and immediately enter again, all tasks are working again, without me restarting the client. That is what I thought was the client reconnecting itself, apparently.

Cyberman-tM avatar May 14 '13 13:05 Cyberman-tM