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

Crash at startup #28

Closed
chr15m opened this issue Jun 5, 2014 · 1 comment
Closed

Crash at startup #28

chr15m opened this issue Jun 5, 2014 · 1 comment

Comments

@chr15m
Copy link
Contributor

chr15m commented Jun 5, 2014

I/SyncthingService( 6007): App started for the first time. Copying default config, keys will be generated automatically
I/SyncthingService( 6007): Checking for needed config updates
I/SyncthingService( 6007): Web GUI will be available at http://127.0.0.1:8080
W/dalvikvm( 6007): Exception Ljava/lang/RuntimeException; thrown while initializing Landroid/os/AsyncTask;
W/dalvikvm( 6007): threadid=8: thread exiting with uncaught exception (group=0x4001d570)
E/AndroidRuntime( 6007): FATAL EXCEPTION: Thread-9
E/AndroidRuntime( 6007): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 6007):    at com.nutomic.syncthingandroid.syncthing.SyncthingService$2.run(SyncthingService.java:282)
E/AndroidRuntime( 6007):    at java.lang.Thread.run(Thread.java:1019)
E/AndroidRuntime( 6007): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
E/AndroidRuntime( 6007):    at android.os.Handler.<init>(Handler.java:121)
E/AndroidRuntime( 6007):    at android.os.AsyncTask$InternalHandler.<init>(AsyncTask.java:421)
E/AndroidRuntime( 6007):    at android.os.AsyncTask$InternalHandler.<init>(AsyncTask.java:421)
E/AndroidRuntime( 6007):    at android.os.AsyncTask.<clinit>(AsyncTask.java:152)
E/AndroidRuntime( 6007):    ... 2 more

Android 2.3.4

Thanks for your hard work on this project!

@Nutomic
Copy link
Contributor

Nutomic commented Jun 6, 2014

This is a duplicate of #18.

Could you try the apk I posted in that issue and tell me if it works, or post a logcat otherwise?

@Nutomic Nutomic closed this as completed Jun 6, 2014
AudriusButkevicius pushed a commit that referenced this issue Apr 27, 2018
* Added UI experimental option to enable/disable FolderObserver

* Disable android watcher by default.

* WIP - dismiss file watcher notification

todo - SyncthingRunnable has to run and migrate the config v27>28 before the file watcher notification can be dismissed.

* fix object type

* remove unackednotifications instead of altering it

* removed extra blank lines

* fix removeChild

* updated syncthing to v0.14.47-rc.2

* WIP - log remove of unackedNotificationID

* WIP - improved config migration 27>28

Prevent generating the unackedNotification fsWatcher in WebGUI by manual bumping the config version to #28.

* fix typo

* WIP - polish version bump code

* syncthing/imsodin-debugAndroidWatch

* update syncthing to v0.14.47-rc.3

* fix NPE on first app start

* fix pref condition

* add ConfigXML support for fsWatcher transition

Added UI experimental option to enable/disable FolderObserver

Disable android watcher by default.

WIP - dismiss file watcher notification

todo - SyncthingRunnable has to run and migrate the config v27>28 before the file watcher notification can be dismissed.

fix object type

remove unackednotifications instead of altering it

removed extra blank lines

fix removeChild

updated syncthing to v0.14.47-rc.2

WIP - log remove of unackedNotificationID

WIP - improved config migration 27>28

Prevent generating the unackedNotification fsWatcher in WebGUI by manual bumping the config version to #28.

fix typo

WIP - polish version bump code

syncthing/imsodin-debugAndroidWatch

update syncthing to v0.14.47-rc.3

fix NPE on first app start

fix pref condition

* updated syncthing to v0.14.47+3d02fcd notify-fix

* updated ConfigXml, FolderObs explanation, st 0.14.47-rc.4

* fixed string escape

* add restartOnWakeup setting to the UI

* restartOnWakeup = false by default on first app start and config generation

* improved logging of restartOnWakeup option to produce meaningful logs

* restartOnWakeup enabled by default
see discussion in #368

* PR improved according to review

* fix intendation - Atom Tab Indent = 4

* move configXml migration to separate function

* changeLocalDeviceName only affects "self device" - fixes #1059

* revert changeLocalDeviceName fix

* fixed changed result in migrateSyncthingOptions

* improved dismissing unackedNotificationID

* extend folder settings UI by fsWatcherEnabled checkbox

* remove FolderObserver

+ Constant.PREF_USE_TOR according to AudriusButkevicius' review added instead of static strings

* remove folderchange listener

* WIP - temporary - restApi logging

for better understanding whats going on

* prevent removingthe wrong unackedNotificationID

* fix build

* give me more log

* fix PostConfig REST request not working

due to missing fields in the folder model

* remove unused string

toast_folder_observer_stack_overflow using AndroidStudio

* fix typo

* trigger rebuild

* fix UI icon

* Revert to Syncthing to 0.14.46 and cherry-pick

* improved code according to review

* fix translation indent
@syncthing syncthing locked and limited conversation to collaborators Nov 9, 2018
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