Calendar dies when adding new Appointment

  • When I try to add a new Appointment to my calendar, the calendar dies on me.
    To be exact: I click on the “+” for adding an appointment, and in there I activate the pulldown-menu in the top-left to change the calendar-provider. As soon as I select davdroid, the “Add Appointment” crashes.

    Everything else works great, including Syncing, Editing of Appointments and all of Carddav.

    I’m on an HTC One with Android 4.4.2 (custom rom, but based on HTC’s sense-ui) using v0.5.9 of davdroid and radicale v0.7 as server.
    When installing the google calendar from the market, this error does not occure. So it is only the combination of the htc-calendar with davdroid-provider on adding.

    Sorry, that I could not try any other third-party calendar providers. I don’t know any that do not require some registration / account or stuff. The shipped calendar providers work fine.
    If there is a pointer to a neat third-party calendar provider that is “light”, I can check against this as well.

    Here is the relevant logcat:
    E/ActivityManager( 919): App crashed! Process:
    E/AndroidRuntime( 8497): FATAL EXCEPTION: main
    E/AndroidRuntime( 8497): Process:, PID: 8497
    E/AndroidRuntime( 8497): java.lang.NullPointerException
    E/AndroidRuntime( 8497): at
    E/AndroidRuntime( 8497): at
    E/AndroidRuntime( 8497): at$1.onItemClick(
    … etc etc etc

  • Ammendment: Google-Calendar works for creating, but not for viewing appointments. So I have google-calendar for creating and htc-calendar for editing and viewing appointments. The upper original post would be the more relevant to me personally. 😉

    Here is the relevant logcat from google-calendar:
    E/chromium(21930): [] Failed to load /data/data/
    E/chromium(21930): Some features may not be available.
    E/DatabaseUtils( 1309): Writing exception to parcel
    E/DatabaseUtils( 1309): java.lang.IllegalArgumentException: the bind value at index 1 is null
    E/DatabaseUtils( 1309): at android.database.sqlite.SQLiteProgram.bindString(
    E/DatabaseUtils( 1309): at android.database.sqlite.SQLiteProgram.bindAllArgsAsStrings(
    E/DatabaseUtils( 1309): at android.database.sqlite.SQLiteDirectCursorDriver.query(
    E/DatabaseUtils( 1309): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(
    E/DatabaseUtils( 1309): at android.database.sqlite.SQLiteQueryBuilder.query(
    E/DatabaseUtils( 1309): at android.database.sqlite.SQLiteQueryBuilder.query(
    E/DatabaseUtils( 1309): at
    E/DatabaseUtils( 1309): at
    E/DatabaseUtils( 1309): at
    E/DatabaseUtils( 1309): at android.content.ContentProvider.query(
    E/DatabaseUtils( 1309): at android.content.ContentProvider$Transport.query(
    E/DatabaseUtils( 1309): at android.content.ContentProviderNative.onTransact(
    E/DatabaseUtils( 1309): at android.os.Binder.execTransact(
    E/DatabaseUtils( 1309): at Method)
    E/ActivityManager( 919): App crashed! Process:
    E/AndroidRuntime(21930): FATAL EXCEPTION: main
    E/AndroidRuntime(21930): Process:, PID: 21930
    E/AndroidRuntime(21930): java.lang.NullPointerException
    E/AndroidRuntime(21930): at android.text.SpannableStringBuilder.append(
    E/AndroidRuntime(21930): at$QueryHandler.onQueryComplete(
    E/AndroidRuntime(21930): at
    E/AndroidRuntime(21930): at android.os.Handler.dispatchMessage(
    E/AndroidRuntime(21930): at android.os.Looper.loop(
    E/AndroidRuntime(21930): at
    E/AndroidRuntime(21930): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime(21930): at java.lang.reflect.Method.invoke(
    E/AndroidRuntime(21930): at$
    E/AndroidRuntime(21930): at
    E/AndroidRuntime(21930): at dalvik.system.NativeStart.main(Native Method)
    E/ActivityThread( 1294): Failed to find provider info for

  • developer

    Please test with other calendars. Can you point me to the source code of your custom ROM / calendar apps (in the version you use them) because otherwise, the stack trace with the code line numbers doesn’t help.

    I’d need a specific field(s) in the calendar entries that causes the calendars to crash, then I can see if DAVdroid would have to set these fields.

  • Sure…
    This is the mod with my default (HTC) calendar:
    (Currently I’m on 5.7.0)
    This is the google-calendar from the second post:

    Do you have another calendar in mind that I should test ? Or another calendar-backend ?

  • developer

    I’d actually need the real source code in exactly the version you use, particularly the class containing I guess that the source code is not available for the public, so I can’t debug this HTC problem.

    For the Android calendar, I’d also need the source code of exactly the version you use. Maybe there’s a support group for the Android calendar, as it seems to be a problem there?

  • developer

    Any news on this?

  • Well, I cannot get to the sources of the htc-calendar.
    If you can give me some clues, how to bisect the problem (e.g. less or additional fields compiled into the sync-provider) let me know.

    Regarding the Google-Calendar, it’s the latest version from the AppStore: in version 201308023
    I don’t know, what else I could do here.

  • developer

    Did you try to delete all data of the calendars app and storage (in the Settings/Apps activity)? But be careful, it will delete all your calendar data.

    I’ll close this issue for now because I don’t think it’s a DAVdroid problem. If you find out anything new, please feel free to post here again nevertheless.

Similar topics

  • 2
  • 1
  • 5