"Unfortunately, DAVdroid has stopped" when sync



  • When sync is initiated (auto or manual), a dialog pops up with:
    "Unfortunately, DAVdroid has stopped"

    Calendar data does not appear to be getting updated.



  • T-Mobile HTC One with Android 4.4.2
    DAVdroid 0.5.10.1



  • adb logcat | egrep '^(E/)|(./davdroid)|(./ch.boye)'
    E/ConnectivityService( 1605): Unexpected mtu value: android.net.wifi.WifiStateTracker@425403f0
    E/NativeDaemonConnector.ResponseQueue( 1605): more buffered than allowed: 10 >= 10
    E/NativeDaemonConnector.ResponseQueue( 1605): Removing request: null (2026)
    E/NetdConnector( 1605): NDC Command {2194 rtsol wlan0} took too long (214409ms)
    E/NetdConnector( 1605): NDC Command {2195 bandwidth gettetherstats} took too long (3947ms)
    E/ConnectivityService( 1605): Unexpected mtu value: android.net.wifi.WifiStateTracker@425403f0
    E/NativeDaemonConnector.ResponseQueue( 1605): more buffered than allowed: 10 >= 10
    E/NativeDaemonConnector.ResponseQueue( 1605): Removing request: null (2068)
    E/NetdConnector( 1605): NDC Command {2208 rtsol wlan0} took too long (52577ms)
    E/ActivityThread( 2038): Failed to find provider info for com.htc.idlescreen.setting.provider
    E/ActivityThread(13351): Failed to find provider info for com.htc.vowifi
    E/ActivityThread(13351): Failed to find provider info for com.htc.vowifi
    E/ActivityThread( 2038): Failed to find provider info for com.htc.idlescreen.setting.provider
    E/SpannableStringBuilder(14342): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
    E/SpannableStringBuilder(14342): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
    I/davdroid.DavSyncAdapter(15038): Performing sync for authority com.android.calendar
    I/davdroid.AccountSettings(15038): Account settings must be updated from v0 to v1
    I/davdroid.AccountSettings(15038): Updating account settings from v0 to 1
    D/davdroid.AccountSettings(15038): Old principal URL = https://calendar.wisc.edu/dav/principals/kohlhepp%40wisc.edu/
    D/davdroid.AccountSettings(15038): Old address book path = null
    E/davdroid.AccountSettings(15038): Couldn't update account settings (DAVdroid will probably crash)!
    E/davdroid.AccountSettings(15038): java.lang.NullPointerException
    E/davdroid.AccountSettings(15038): at java.net.URI.parseURI(URI.java:353)
    E/davdroid.AccountSettings(15038): at java.net.URI.<init>(URI.java:204)
    E/davdroid.AccountSettings(15038): at java.net.URI.create(URI.java:725)
    E/davdroid.AccountSettings(15038): at java.net.URI.resolve(URI.java:1239)
    E/davdroid.AccountSettings(15038): at at.bitfire.davdroid.syncadapter.AccountSettings.update_0_1(AccountSettings.java:129)
    E/davdroid.AccountSettings(15038): at at.bitfire.davdroid.syncadapter.AccountSettings.update(AccountSettings.java:112)
    E/davdroid.AccountSettings(15038): at at.bitfire.davdroid.syncadapter.AccountSettings.update(AccountSettings.java:105)
    E/davdroid.AccountSettings(15038): at at.bitfire.davdroid.syncadapter.AccountSettings.<init>(AccountSettings.java:51)
    E/davdroid.AccountSettings(15038): at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.getSyncPairs(CalendarsSyncAdapterService.java:63)
    E/davdroid.AccountSettings(15038): at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:87)
    E/davdroid.AccountSettings(15038): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    E/ActivityManager( 1605): App crashed! Process: at.bitfire.davdroid:sync
    E/AndroidRuntime(15038): FATAL EXCEPTION: SyncAdapterThread-1
    E/AndroidRuntime(15038): Process: at.bitfire.davdroid:sync, PID: 15038
    E/AndroidRuntime(15038): java.lang.IllegalArgumentException: Host name may not be null
    E/AndroidRuntime(15038): at ch.boye.httpclientandroidlib.util.Args.notBlank(Args.java:65)
    E/AndroidRuntime(15038): at ch.boye.httpclientandroidlib.HttpHost.<init>(HttpHost.java:81)
    E/AndroidRuntime(15038): at at.bitfire.davdroid.webdav.WebDavResource.<init>(WebDavResource.java:115)
    E/AndroidRuntime(15038): at at.bitfire.davdroid.resource.RemoteCollection.<init>(RemoteCollection.java:48)
    E/AndroidRuntime(15038): at at.bitfire.davdroid.resource.CalDavCalendar.<init>(CalDavCalendar.java:38)
    E/AndroidRuntime(15038): at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.getSyncPairs(CalendarsSyncAdapterService.java:72)
    E/AndroidRuntime(15038): at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:87)
    E/AndroidRuntime(15038): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    E/UsbDebuggingManager( 1605): got -1 reading
    E/UsbDebuggingManager( 1605): Communication error:
    E/UsbDebuggingManager( 1605): java.io.IOException: No such file or directory
    E/UsbDebuggingManager( 1605): at android.net.LocalSocketImpl.connectLocal(Native Method)
    E/UsbDebuggingManager( 1605): at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:287)
    E/UsbDebuggingManager( 1605): at android.net.LocalSocket.connect(LocalSocket.java:130)
    E/UsbDebuggingManager( 1605): at com.android.server.usb.UsbDebuggingManager.listenToSocket(UsbDebuggingManager.java:75)
    E/UsbDebuggingManager( 1605): at com.android.server.usb.UsbDebuggingManager.run(UsbDebuggingManager.java:111)
    E/UsbDebuggingManager( 1605): at java.lang.Thread.run(Thread.java:864)
    E/SyncApplication(15189): Application created.
    E/MediaProvider(15250): no database for attached volume content://media/external
    E/PNP_UPDATERD( 254): inotify_add_watch failed. (No such file or directory)
    E/Prism.MastheadStatePro_( 2038): uri: content://com.htc.launcher.masthead_state/visibility
    E/Prism.MastheadStatePro_( 2038): uri: content://com.htc.launcher.masthead_state/visibility
    E/qdexternal( 252): writeHPDOption: state file '/sys/devices/virtual/graphics/fb1/hpd' not found : ret-1 err str: Permission denied
    E/InputEventModelImpl( 1952): onStartInput event aborted: com.touchtype.keyboard.inputeventmodel.ExtractedTextUnavailableException: could not obtain extracted text (class com.touchtype.keyboard.inputeventmodel.ExtractedTextUnavailableException)
    E/qdexternal( 252): writeHPDOption: state file '/sys/devices/virtual/graphics/fb1/hpd' not found : ret-1 err str: Permission denied
    E/SharedPreferencesImpl( 1807): Couldn't create directory for SharedPreferences file /data/data/com.htc.android.calculator.widget/shared_prefs/com.htc.android.calculator.widget_preferences.xml
    E/ActivityThread( 2038): Failed to find provider info for com.htc.idlescreen.setting.provider



  • I had also the "app stopped" message after upgrading to 0.5.10.1 from 0.5.9. I uninstalled it and installed it again and it looked as it worked (no more "app stopped" messages), but then it did looked like it was syncing correctly, the sync page in settings just said Sync ON but never the time of the last update for the contacts (the calendar synced correctly). I downgraded to 0.5.9 and all seems to be working fine again. The server is owncloud 6.0.2.



  • I can confirm this problem on CM 10.2



  • same for me on CM 10.1 (just upgraded from 0.5.8.1 to 0.5.10.1 via fdroid)

    03-25 15:58:11.450 I/davdroid.DavSyncAdapter(30649): Performing sync for authority com.android.calendar
    03-25 15:58:11.460 I/davdroid.AccountSettings(30649): Account settings must be updated from v0 to v1
    03-25 15:58:11.460 I/davdroid.AccountSettings(30649): Updating account settings from v0 to 1
    03-25 15:58:11.460 D/davdroid.AccountSettings(30649): Old principal URL = https://mycaldavserver.somewhere.org:12345/cal.php
    03-25 15:58:11.460 D/davdroid.AccountSettings(30649): Old address book path = null
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): Couldn't update account settings (DAVdroid will probably crash)!
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): java.lang.NullPointerException
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at java.net.URI.parseURI(URI.java:353)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at java.net.URI.<init>(URI.java:204)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at java.net.URI.create(URI.java:725)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at java.net.URI.resolve(URI.java:1239)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at at.bitfire.davdroid.syncadapter.AccountSettings.update_0_1(AccountSettings.java:129)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at at.bitfire.davdroid.syncadapter.AccountSettings.update(AccountSettings.java:112)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at at.bitfire.davdroid.syncadapter.AccountSettings.update(AccountSettings.java:105)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at at.bitfire.davdroid.syncadapter.AccountSettings.<init>(AccountSettings.java:51)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.getSyncPairs(CalendarsSyncAdapterService.java:63)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:87)
    03-25 15:58:11.470 E/davdroid.AccountSettings(30649): 	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:254)
    03-25 15:58:11.540 E/AndroidRuntime(30649): 	at at.bitfire.davdroid.webdav.WebDavResource.<init>(WebDavResource.java:115)
    03-25 15:58:11.540 E/AndroidRuntime(30649): 	at at.bitfire.davdroid.resource.RemoteCollection.<init>(RemoteCollection.java:48)
    03-25 15:58:11.540 E/AndroidRuntime(30649): 	at at.bitfire.davdroid.resource.CalDavCalendar.<init>(CalDavCalendar.java:38)
    03-25 15:58:11.540 E/AndroidRuntime(30649): 	at at.bitfire.davdroid.syncadapter.CalendarsSyncAdapterService$SyncAdapter.getSyncPairs(CalendarsSyncAdapterService.java:72)
    03-25 15:58:11.540 E/AndroidRuntime(30649): 	at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:87)
    03-25 15:58:12.882 I/ActivityManager(533): Process at.bitfire.davdroid:sync (pid 30649) has died.
    

    Note: my addressbook URI includes a port number and davdroid seems to crash in lines 126-129 of AccountSettings.java:

    		URI principalURI = new URI(v0_principalURL);
    
    		// update address book
    		String addressBookURL = principalURI.resolve(v0_addressBookPath).toASCIIString();
    


  • Same for me on nexus 5 cm11. Both Versions 0.5.10 and 0.5.10.1 have the same issue for me. I had to uninstall, install 0.5.9 and readd all accounts.

    Would be nice to see a soon fix. And this is the right chance to say thank you for this very nice piece of software ;) Keep up the good work!!!


  • developer

    Seems that this problem occurs when the settings update routine tries to update the address book URL while there's no address book selected to sync (and thus no address book URL).



  • Did anyone having this issue check DavDroid 0.5.10.2 to see if this is now working?


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.