Comments (8)
Yep, got the report through Play Store.
Does this apk fix it?
https://dl.dropboxusercontent.com/u/22457329/syncthing-android-armeabi_v7a-issue-51.apk
Edit: Forget it, this doesn't work. Will upload a fixed apk later.
from syncthing-android.
Ok try this one:
https://dl.dropboxusercontent.com/u/22457329/syncthing-android-armeabi_v7a-issue-51-2.apk
from syncthing-android.
I think I'm experiencing this same bug. To reproduce,
- Force stop Syncthing and clear data and cache from the 'Apps' menu
- Reboot
- Reinstall Syncthing and start. Wait for keys to generate
- Add repository. When you click the 'Restart needed' icon in the statusbar, Syncthing shows the 'Waiting for API' messages and stays there.
- Kill process
- Restart Syncthing...it will open for 5-10 seconds then show the 'Unfortunately, Syncthing has stopped' dialog. Can't restart again until phone is rebooted.
Logcat: https://github.com/firecat53/github_attachments/blob/master/syncthing_repo_add_crash.tar.gz
I also tried the exact same sequence with the 2nd APK you provided above with the same results.
Logcat: https://github.com/firecat53/github_attachments/blob/master/syncthing_repo_add_crash_test_apk.tar.gz
Let me know if this is the same issue or if we need to open a new ticket for this.
Thanks!
Scott
from syncthing-android.
@firecat53 Both of your logs say "Syncthing binary returned error code 3". Have a look at #52 (reinstall/reboot).
from syncthing-android.
Same here on Nexus 10. Though it now launches, adding repo or node causes crash. Logcat points at your own code:
I/ActivityManager( 451): START u0 {act=create cmp=com.nutomic.syncthingandroid.debug/com.nutomic.syncthingandroid.gui.RepoSettingsActivity} from pid 1942
D/AndroidRuntime( 1942): Shutting down VM
W/dalvikvm( 1942): threadid=1: thread exiting with uncaught exception (group=0x41616ba8)
E/AndroidRuntime( 1942): FATAL EXCEPTION: main
E/AndroidRuntime( 1942): Process: com.nutomic.syncthingandroid.debug, PID: 1942
E/AndroidRuntime( 1942): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nutomic.syncthingandroid.debug/com.nutomic.syncthingandroid.gui.RepoSettingsActivity}: java.lan
g.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layout
E/AndroidRuntime( 1942): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
E/AndroidRuntime( 1942): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime( 1942): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 1942): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 1942): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1942): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 1942): at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 1942): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1942): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1942): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 1942): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 1942): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1942): Caused by: java.lang.IllegalStateException: ActionBarImpl can only be used with a compatible window decor layout
E/AndroidRuntime( 1942): at com.android.internal.app.ActionBarImpl.init(ActionBarImpl.java:193)
E/AndroidRuntime( 1942): at com.android.internal.app.ActionBarImpl.<init>(ActionBarImpl.java:166)
E/AndroidRuntime( 1942): at android.app.Activity.initActionBar(Activity.java:1912)
E/AndroidRuntime( 1942): at android.app.Activity.getActionBar(Activity.java:1893)
E/AndroidRuntime( 1942): at com.nutomic.syncthingandroid.gui.RepoSettingsActivity.onCreate(RepoSettingsActivity.java:89)
E/AndroidRuntime( 1942): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 1942): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 1942): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
E/AndroidRuntime( 1942): ... 11 more
W/ActivityManager( 451): Force finishing activity com.nutomic.syncthingandroid.debug/com.nutomic.syncthingandroid.gui.RepoSettingsActivity
W/ActivityManager( 451): Force finishing activity com.nutomic.syncthingandroid.debug/com.nutomic.syncthingandroid.gui.MainActivity
W/ActivityManager( 451): Activity pause timeout for ActivityRecord{4209d6b8 u0 com.nutomic.syncthingandroid.debug/com.nutomic.syncthingandroid.gui.RepoSettingsActivity t2 f}
D/mali_winsys( 709): new_window_surface returns 0x3000
I/Process ( 1942): Sending signal. PID: 1942 SIG: 9
I/ActivityManager( 451): Process com.nutomic.syncthingandroid.debug (pid 1942) has died.
from syncthing-android.
@rkfg: Which apk/version were you using?
from syncthing-android.
The last one you posted here, https://dl.dropboxusercontent.com/u/22457329/syncthing-android-armeabi_v7a-issue-51-2.apk
After uninstalling it and installing the market version it crashes as in #52. Reboot "fixes" it but it's definitely not ok. Probably the previous version stays loaded for some reason and they conflict, I can't come up with better idea why reboot heals the crash.
Market version crashes as well on adding repo/node (the reason I'm writing here), but the trace is different:
E/AndroidRuntime( 2024): FATAL EXCEPTION: main
E/AndroidRuntime( 2024): Process: com.nutomic.syncthingandroid, PID: 2024
E/AndroidRuntime( 2024): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nutomic.syncthingandroid/com.nutomic.syncthingandroid.gui.RepoSettingsActivity}: java.lang.NullPointerException
E/AndroidRuntime( 2024): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
E/AndroidRuntime( 2024): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime( 2024): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 2024): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 2024): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2024): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2024): at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 2024): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2024): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2024): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 2024): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 2024): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2024): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 2024): at com.nutomic.syncthingandroid.gui.RepoSettingsActivity.onCreate(RepoSettingsActivity.java:89)
E/AndroidRuntime( 2024): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 2024): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 2024): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
E/AndroidRuntime( 2024): ... 11 more
W/ActivityManager( 450): Force finishing activity com.nutomic.syncthingandroid/.gui.RepoSettingsActivity
W/ActivityManager( 450): Force finishing activity com.nutomic.syncthingandroid/.gui.MainActivity
from syncthing-android.
Okay, I did another approach and fixed it by making the repo/node settings fullscreen, instead of a dialog. This might not look as good (lots of empty space probably), but at least it works.
Maybe I can revisit this in the future
from syncthing-android.
Related Issues (20)
- FileUriExposedException on editing ignores HOT 2
- Typo error in welcome screen
- App not working despite phone is connected to wifi HOT 1
- Expecting binder but got null! HOT 2
- Syncthing stops running after a few weeks HOT 4
- Support for Android SAF HOT 4
- status about android10 (sony xperia XZ2 phone) and syncthing not being able to write in sdcard folder (DCIM one...) HOT 2
- Explanation for slow sync on Android w/lots of files + request for fix HOT 2
- No way to back out of subfolder HOT 1
- Unable to run in background -- unable to set battery usage to Unrestricted HOT 4
- Not running every hour HOT 10
- "Override Changes" button MUST WARN PEOPLE WHAT IT DOES. HOT 1
- Info: No releases on google play for now HOT 5
- Custom https-cert causes infinite hang at startup HOT 2
- "Run on specified Wi-Fi networks" gives specious error on app opening HOT 5
- ID of phone is changing HOT 1
- Run while open HOT 1
- [request] Option to override "Run on" options for folder HOT 2
- In comma-separated list of addresses, commas become part of the addresses
- F-Droid app description doesn't have translations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syncthing-android.