crash on first sync if you don't update your preferences
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Tomdroid |
Fix Released
|
Medium
|
Olivier Bilodeau |
Bug Description
Tomdroid 0.4.1
Samsung Galaxy S Captivate
At first I was crashing tomdroid when hitting the sync button without setting preferences properly.
Then when I was logging with adb logcat, I couldn't get it to crash anymore but I was getting a "There was an error trying to parse your note collection. ..." instead.
Here's the stack trace:
W/System.err( 9576): java.lang.
W/System.err( 9576): at org.apache.
W/System.err( 9576): at org.apache.
W/System.err( 9576): at org.apache.
W/System.err( 9576): at org.apache.
W/System.err( 9576): at org.apache.
W/System.err( 9576): at org.tomdroid.
W/System.err( 9576): at org.tomdroid.
W/System.err( 9576): at org.tomdroid.
W/System.err( 9576): at java.util.
W/System.err( 9576): at java.util.
W/System.err( 9576): at java.lang.
V/SyncService( 9576): sync progress: 30
E/SnowySyncService( 9576): Problem parsing the server response
E/SnowySyncService( 9576): org.json.
E/SnowySyncService( 9576): at org.json.
E/SnowySyncService( 9576): at org.json.
E/SnowySyncService( 9576): at org.json.
E/SnowySyncService( 9576): at org.tomdroid.
E/SnowySyncService( 9576): at java.util.
E/SnowySyncService( 9576): at java.util.
E/SnowySyncService( 9576): at java.lang.
Related branches
Changed in tomdroid: | |
status: | Fix Committed → Fix Released |
I was able to reproduce first crash by uninstalling / reinstalling. Here's the stack trace:
D/ ( 9783): unable to unlink '/data/ data/org. tomdroid/ shared_ prefs/org. tomdroid_ preferences. xml.bak' : No such file or directory (errno=2)
...
V/WindowManager( 2249): Dsptch > Window{48104a18 org.tomdroid/ org.tomdroid. ui.Tomdroid paused=false} org.tomdroid. ui.Tomdroid paused=false}
...
V/WindowManager( 2249): Dsptch > Window{48104a18 org.tomdroid/
...
E/AndroidRuntime( 9783): java.lang. NullPointerExce ption sync.sd. SdCardSyncServi ce.sync( SdCardSyncServi ce.java: 103) sync.SyncServic e.startSynchron ization( SyncService. java:75) sync.SyncManage r.startSynchron ization( SyncManager. java:64) ui.Actionbar$ 1.onClick( Actionbar. java:64) view.View. performClick( View.java: 2417) view.View. onTouchEvent( View.java: 4232) view.View. dispatchTouchEv ent(View. java:3762) view.ViewGroup. dispatchTouchEv ent(ViewGroup. java:884) view.ViewGroup. dispatchTouchEv ent(ViewGroup. java:884) view.ViewGroup. dispatchTouchEv ent(ViewGroup. java:884) view.ViewGroup. dispatchTouchEv ent(ViewGroup. java:884) internal. policy. impl.PhoneWindo w$DecorView. superDispatchTo uchEvent( PhoneWindow. java:1713) internal. policy. impl.PhoneWindo w.superDispatch TouchEvent( PhoneWindow. java:1131) app.Activity. dispatchTouchEv ent(Activity. java:2070) internal. policy. impl.PhoneWindo w$DecorView. dispatchTouchEv ent(PhoneWindow .java:1697) view.ViewRoot. handleMessage( ViewRoot. java:1691) os.Handler. dispatchMessage (Handler. java:99) os.Looper. loop(Looper. java:123) app.ActivityThr ead.main( ActivityThread. java:4363) reflect. Method. invokeNative( Native Method) reflect. Method. invoke( Method. java:521) internal. os.ZygoteInit$ MethodAndArgsCa ller.run( ZygoteInit. java:862) internal. os.ZygoteInit. main(ZygoteInit .java:620) system. NativeStart. main(Native Method)
E/AndroidRuntime( 9783): at org.tomdroid.
E/AndroidRuntime( 9783): at org.tomdroid.
E/AndroidRuntime( 9783): at org.tomdroid.
E/AndroidRuntime( 9783): at org.tomdroid.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at com.android.
E/AndroidRuntime( 9783): at com.android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at com.android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at android.
E/AndroidRuntime( 9783): at java.lang.
E/AndroidRuntime( 9783): at java.lang.
E/AndroidRuntime( 9783): at com.android.
E/AndroidRuntime( 9783): at com.android.
E/AndroidRuntime( 9783): at dalvik.