39aldo39/Radicale-DecSync

Crash after adding and deleting a calendar from Radicale Web GUI

tomasz1986 opened this issue · 1 comments

First of all, thank you for developing this plugin.

After adding a new calendar through the Radicale Web GUI, and then deleting it, Radicale crashes with the following error. Afterwards, it also crashes immediately on start. It does not crash anymore after the calendar folder is deleted manually.

DecSync: Get static info in C:\DecSync for syncType calendars and collection 83beeed6-a033-efe9-00dd-e5b6b8150415
', currentPosition=2, tokenClass=9, tokenPosition=1, offset=0)r has not consumed the whole input: JsonReader(source='e]
        at kfun:kotlin.Throwable.<init>(kotlin.String?;kotlin.Throwable?)kotlin.Throwable (000000005a8c13e0)
        at kfun:kotlinx.serialization.json.Json.parse(kotlinx.serialization.DeserializationStrategy<#GENERIC>;kotlin.String)Generic (000000005a93cb20)
        at kfun:kotlinx.serialization.json.Json.parseJson(kotlin.String)kotlinx.serialization.json.JsonElement (000000005a93d050)
        at kfun:org.decsync.library.Decsync.Entry.Companion.fromLine$libdecsync(kotlin.String)kotlin.collections.List<org.decsync.library.Decsync.Entry> (000000005a952930)
        at kfun:org.decsync.library.getStaticInfo(kotlin.String?;kotlin.String;kotlin.String?;kotlin.String;kotlinx.cinterop.CPointer<kotlinx.cinterop.ByteVarOf<kotlin.Byte>>;kotlin.Int) (000000005a962050)
        at decsync_so_get_static_info (000000005a8bd010)
        at  (00007ffd251f4420)
        at  (00007ffd251f4060)
        at  (00007ffd251f4030)
        at  (00007ffd1d323eb0)
        at  (00007ffd1d323a80)
        at  (00007ffd1d3238d0)
        at  (00007ffd05578f7c)
        at  (00007ffd055b5760)
        at  (00007ffd055b15e1)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd0556e54b)
        at  (00007ffd05602108)
        at  (00007ffd055b5760)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055a2db2)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b15e1)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b3195)
        at  (00007ffd055c96f4)
        at  (00007ffd05658740)
        at  (00007ffd056586c8)
        at  (00007ffd055b4894)
        at  (00007ffd055b5760)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055a2db2)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b15e1)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b3195)
        at  (00007ffd055a2fd5)
        at  (00007ffd055790e8)
        at  (00007ffd05578f7c)
        at  (00007ffd055b5760)
        at  (00007ffd055b15e1)
        at  (00007ffd055b328e)
        at  (00007ffd05622544)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055a2db2)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b15e1)
        at  (00007ffd055b328e)
        at  (00007ffd055a2fd5)
        at  (00007ffd055790e8)
        at  (00007ffd05578f7c)
        at  (00007ffd055b5760)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b41b9)
        at  (00007ffd055b5760)
        at  (00007ffd055b3195)
        at  (00007ffd055a30b2)
        at  (00007ffd055790e8)
        at  (00007ffd055c9238)
        at  (00007ffd055bf970)
        at  (00007ffd055bf92c)
        at  (00007ffd32ef1fc0)
        at  (00007ffd35d47960)
        at  (00007ffd36b6a240)

Thanks for the report! I have pushed an update that should fix the issue. You can update by executing pip3 install --upgrade radicale_storage_decsync.