Git Product home page Git Product logo

Comments (8)

Nutomic avatar Nutomic commented on May 19, 2024

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.

Nutomic avatar Nutomic commented on May 19, 2024

Ok try this one:
https://dl.dropboxusercontent.com/u/22457329/syncthing-android-armeabi_v7a-issue-51-2.apk

from syncthing-android.

firecat53 avatar firecat53 commented on May 19, 2024

I think I'm experiencing this same bug. To reproduce,

  1. Force stop Syncthing and clear data and cache from the 'Apps' menu
  2. Reboot
  3. Reinstall Syncthing and start. Wait for keys to generate
  4. Add repository. When you click the 'Restart needed' icon in the statusbar, Syncthing shows the 'Waiting for API' messages and stays there.
  5. Kill process
  6. 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.

Nutomic avatar Nutomic commented on May 19, 2024

@firecat53 Both of your logs say "Syncthing binary returned error code 3". Have a look at #52 (reinstall/reboot).

from syncthing-android.

rkfg avatar rkfg commented on May 19, 2024

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.

Nutomic avatar Nutomic commented on May 19, 2024

@rkfg: Which apk/version were you using?

from syncthing-android.

rkfg avatar rkfg commented on May 19, 2024

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.

Nutomic avatar Nutomic commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.