-
Notifications
You must be signed in to change notification settings - Fork 421
Syncthing binary crashed with error code 2 (V0.5.4, V0.5.2 was OK) #164
Comments
Need a logcat. |
After happening 3 times in a row yesterday, I've not had the problem since trying to get a logcat. I may have restarted the phone so maybe it was just a glitch following the upgrade. |
Nice. If you get it again, please reopen ;) (tagging as invalid for now because there's nothing to be done) |
Happened again. Here's a V/WindowManager( 2048): #11: Token{437c7cf0 ActivityRecord{437c7b90 u0 com.nutomic.syncthingandroid/.activities.MainActivity t37}} V/WindowManager( 2048): #18: Window{4318f378 u0 com.nutomic.syncthingandroid/com.nutomic.syncthingandroid.activities.MainActivity} V/WindowManager( 2048): #11: Token{437c7cf0 ActivityRecord{437c7b90 u0 com.nutomic.syncthingandroid/.activities.MainActivity t37}} V/WindowManager( 2048): #17: Window{4318f378 u0 com.nutomic.syncthingandroid/com.nutomic.syncthingandroid.activities.MainActivity} I/ActivityManager( 2048): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.nutomic.syncthingandroid/.activities.MainActivity} from pid 2329 I/ActivityManager( 2048): START u0 {act=app_settings_fragment cmp=com.nutomic.syncthingandroid/.activities.SettingsActivity} from pid 27973 I/InputMethodManagerService( 2048): windowGainedFocus, packageName=com.nutomic.syncthingandroid, inputType=0x1 I/ActivityManager( 2048): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.nutomic.syncthingandroid/.activities.MainActivity} from pid 2329 I/WindowManager( 2048): Screen frozen for +270ms due to Window{421af3a0 u0 com.nutomic.syncthingandroid/com.nutomic.syncthingandroid.activities.MainActivity} |
grep is pretty bad for logcat because crash messages go over multiple lines. Do you still have the full log? |
I see what you mean about the multi-line entries, I did a grep with some context lines and there's a null pointer/value exception in there or similar. Sadly, when I ran logcat again so save them the entries had dropped off. I'll fish out the log entries as soon as it happens again. Thanks for your help. |
I left logcat running overnight on USB but not no problem. Overnight logs did show some entries from the binary, to do with renewing the UPNP port mapping or something like that, no errors though and the app was running fine this morning with no sign of a crash, and connections to other devices were active. Just now I got the problem immediately after trying to access the Web GUI (from the applications menu). It did render the page, then less than a second later the crash notification appeared in the status bar. However, this is not a reliable way to reproduce the problem, it was just a one-off I think. I was able to get a logcat within a couple of minutes of the problem occuring. The only logs I get relate to the client app trying the access the rest API, I can't see anything relating to the binary. Here's the first snippet where syncthing was mentioned:
The following log entries were repeated over and over again, several per second:
Here are the "beginning of" bits:
I'm no expert with Android logs but judging by the start time on the main log, and the number and freqency of the exception mesages coming from the UI, I think that the original crash log may be long gone in seconds, which may be why I keep missing it. Is there any way to reduce the logging/retry rate of the UI? PS: Is there anywhere on here to upload a file so I can send you the whole thing? Or is there something I can search for? |
You should try You can send the log via pastebin, gist or whatever you like ;) |
Will that command above read old log entries after the UI has overwritten the log buffer? I didn't think it was possible. I'm unable to leave a logcat running on a phone terminal (like ConnectBot) as I don't have root so other applications don't see those messages. I'm unable to leave a logcat running over the adb shell as the crash doesn't not seem to happen in that state (maybe it's a power or sleep related event). I'm unable to leave it running after disconnecting from the adb shell because there's no "nohup" command (any suggestions welcome). I can't get the messages after the crash because the UI overwrites the entire log buffer in seconds (literally seconds, I'm not exaggerating). By the time I get the cable plugged in they're long gone. |
You should be able to use adb over wifi which is in developer settings. There should also usually be a "report crash" dialog, you can send it there and I'll receive it trhough Google Play (best write the issue number with the report). |
Closing this as many changes happened in this codebase and in upstream, which means it is probably solved;) |
…#164) (syncthing#167) * Display syncthing's api key in Settings/About dialog (fixes syncthing#164) * Click to copy API key to clipboard * Imported translation de-DE
Syncthing binary crashed with error code 2 appears as a notification. It stops working and requires a forced stop.
Raised sepately to #92 relating to 0.4 as this appears to have been introduced between 0.5.2 (which works) to 0.5.4.
Android 4.4.3.
The text was updated successfully, but these errors were encountered: