Skip to content
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

Crashes on Nexus 10 #52

Closed
rkfg opened this issue Jul 3, 2014 · 4 comments
Closed

Crashes on Nexus 10 #52

rkfg opened this issue Jul 3, 2014 · 4 comments

Comments

@rkfg
Copy link

rkfg commented Jul 3, 2014

Right after "Waiting for API" message disappears. The crash info says it happens on line 185 of SyncthingService.java, https://github.com/Nutomic/syncthing-android/blob/master/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingService.java#L185

Stack trace says that Syncthing binary returned error code 3. I guess it's not the wrapper's problem so I've tried to reinstall the app to no avail. Just in case some settings were broken or so. Worth noting that on Nexus 4 it works fine and it worked fine on N10, too, before the latest update with the native GUI. Too bad the logs of the binary aren't stored somewhere.

@Nutomic
Copy link
Contributor

Nutomic commented Jul 3, 2014

Could you post the actual logcat? The syncthing output should be in there.

Finding the right line really isn't the problem :P

@Nutomic Nutomic added the bug label Jul 3, 2014
@rkfg
Copy link
Author

rkfg commented Jul 3, 2014

I/ActivityManager(  451): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 pkg=com.nutomic.syncthingandroid cmp=com.nutomic.syncthingandroid/.gui.MainActivity bnds=[534,651][800,1019]} from pid 22203
I/ActivityManager(  451): Start proc com.nutomic.syncthingandroid for activity com.nutomic.syncthingandroid/.gui.MainActivity: pid=12017 uid=10161 gids={50161, 1028, 1015, 3003}
I/MicrophoneInputStream(22187): mic_close eze@41933db8
D/dalvikvm(12017): GC_FOR_ALLOC freed 96K, 5% free 3344K/3512K, paused 18ms, total 19ms
I/dalvikvm-heap(12017): Grow heap (frag case) to 4.400MB for 1127536-byte allocation
D/dalvikvm(12017): GC_FOR_ALLOC freed 2K, 4% free 4443K/4616K, paused 16ms, total 16ms
D/dalvikvm(12017): GC_CONCURRENT freed <1K, 4% free 4443K/4616K, paused 3ms+1ms, total 20ms
I/HotwordRecognitionRnr(22187): Hotword detection finished
D/dalvikvm(12017): GC_CONCURRENT freed 91K, 4% free 4738K/4892K, paused 2ms+1ms, total 15ms
I/HotwordRecognitionRnr(22187): Stopping hotword detection.
D/mali_winsys(12017): new_window_surface returns 0x3000
D/OpenGLRenderer(12017): Enabling debug mode 0
I/ConfigXml(12017): Checking for needed config updates
D/mali_winsys(12017): new_window_surface returns 0x3000
I/WindowManager(  451): Switching to real app window: Window{423b97a8 u0 com.nutomic.syncthingandroid/com.nutomic.syncthingandroid.gui.MainActivity}
I/SyncthingService(12017): Web GUI will be available at http://127.0.0.1:8080
I/ActivityManager(  451): Displayed com.nutomic.syncthingandroid/.gui.MainActivity: +569ms
D/dalvikvm(12017): GC_CONCURRENT freed 181K, 5% free 4985K/5232K, paused 5ms+10ms, total 31ms
W/ActivityManager(  451): Launch timeout has expired, giving up wake lock!
W/GLSUser (  358): GoogleAccountDataService.getToken()
W/GLSUser (  358): GoogleAccountDataService.getToken()
W/GLSUser (  358): GoogleAccountDataService.getToken()
W/GLSUser (  358): GoogleAccountDataService.getToken()
D/dalvikvm(  371): GC_FOR_ALLOC freed 298K, 35% free 5073K/7780K, paused 299ms, total 344ms
W/dalvikvm(12017): threadid=13: thread exiting with uncaught exception (group=0x4154fba8)
E/AndroidRuntime(12017): FATAL EXCEPTION: Thread-1929
E/AndroidRuntime(12017): Process: com.nutomic.syncthingandroid, PID: 12017
E/AndroidRuntime(12017): com.nutomic.syncthingandroid.syncthing.SyncthingService$NativeExecutionException: Syncthing binary returned error code 3
E/AndroidRuntime(12017): 
E/AndroidRuntime(12017):        at com.nutomic.syncthingandroid.syncthing.SyncthingService$SyncthingRunnable.run(SyncthingService.java:185)
E/AndroidRuntime(12017):        at java.lang.Thread.run(Thread.java:841)
W/ActivityManager(  451):   Force finishing activity com.nutomic.syncthingandroid/.gui.MainActivity
D/dalvikvm(  451): GC_FOR_ALLOC freed 3023K, 32% free 24303K/35376K, paused 87ms, total 87ms
D/mali_winsys(22203): new_window_surface returns 0x3000
I/SyncthingService(12017): Shutting down service
I/Process (12017): Sending signal. PID: 12017 SIG: 9
D/dalvikvm(22187): GC_FOR_ALLOC freed 1029K, 30% free 4872K/6936K, paused 13ms, total 16ms
I/dalvikvm-heap(22187): Grow heap (frag case) to 5.426MB for 640016-byte allocation
D/dalvikvm(22187): GC_FOR_ALLOC freed 3K, 21% free 5493K/6936K, paused 22ms, total 22ms
I/MicrophoneInputStream(22187): mic_starting eze@41b686d0
D/dalvikvm(22187): GC_CONCURRENT freed 17K, 21% free 5495K/6936K, paused 3ms+1ms, total 34ms
I/HotwordRecognitionRnr(22187): Starting hotword detection.
I/ActivityManager(  451): Process com.nutomic.syncthingandroid (pid 12017) has died.

I couldn't find anything useful in it but here you go.

@Nutomic
Copy link
Contributor

Nutomic commented Jul 3, 2014

Okay it looks like binary is actually missing for some reason. If you have root, you could check that /data/data/com.nutomic.syncthingandroid/lib/libsyncthing.so exists.

I doubt this has anything to do with the GUI upgrade (as that didn't change anything about the binary or service really), but you could always try downloading from Github releases.

Otherwise, reinstalling/rebooting and such are the only things I can think of (as it is obviously a device/rom related problem).

@rkfg
Copy link
Author

rkfg commented Jul 4, 2014

The keys were generated OK and the binary is there. Reinstalling once again did nothing but rebooting did. It works now. Weird. Thanks for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants