Bug 312145 - Failed to parse incidence when updating calendar folder
Summary: Failed to parse incidence when updating calendar folder
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Google Resource (show other bugs)
Version: 4.10
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-24 04:39 UTC by Yuriy Vidineev
Modified: 2017-01-07 22:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Just my akonadi console creenshot (91.43 KB, image/png)
2013-01-07 16:16 UTC, Yuriy Vidineev
Details
Information from DB for pimitemid 17483 (54.25 KB, image/png)
2013-01-07 16:42 UTC, Yuriy Vidineev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy Vidineev 2012-12-24 04:39:37 UTC
After updating LibKGAPI from 0.4.2 to 0.4.4 I can't update my main google calendar. In ~/.xsession-errors:

...
akonadi_googlecalendar_resource_0(2164)/kdepimlibs (kcalcore): parse error ; string is empty? true 
akonadi_googlecalendar_resource_0(2164)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  17489 Storage collection id  67 parentCollectionId =  -452 
akonadi_googlecalendar_resource_0(2164)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: "" 
akonadi_googlecalendar_resource_0(2164)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822" 
akonadi_googlecalendar_resource_0(2164)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  "" 
akonadi_googlecalendar_resource_0(2164)/kdepimlibs (kcalcore): parse error ; string is empty? true 
akonadi_googlecalendar_resource_0(2164)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  17483 Storage collection id  67 parentCollectionId =  -453 
akonadi_googlecalendar_resource_0(2164)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: "" 
akonadi_googlecalendar_resource_0(2164)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822" 
akonadi_googlecalendar_resource_0(2164)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  "" 
...


Reproducible: Always




LibKGAPI installed from my ppa:
https://launchpad.net/~adeptg/+archive/libkgapi

Maybe something wrong with package.

There wasn't this problem with LibKGAPI 0.4.2 (but with this version my calendar was read-only: https://bugs.kde.org/show_bug.cgi?id=312089)
Comment 1 Yuriy Vidineev 2013-01-04 15:47:59 UTC
Some additional information:

I have 2 calendars in one account: one of them (with only few events) works in Kontact, second (my main) - doesn't work (Failed to parse incidence...). On my Nokia N9 and in web interface both calendars works fine.
Comment 2 Yuriy Vidineev 2013-01-04 15:56:25 UTC
akonadi_googlecalendar_resource_0(9139)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  17483 Storage collection id  67 parentCollectionId =  -169 
akonadi_googlecalendar_resource_0(9139)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: "" 

Can I determine which event in my calendar causes this problem?
Comment 3 Yuriy Vidineev 2013-01-07 14:18:36 UTC
With the "official" ubuntu raring libkgapi (http://changelogs.ubuntu.com/changelogs/pool/universe/libk/libkgapi/libkgapi_0.4.4-0ubuntu1/changelog) I have the same problem
Comment 4 Daniel Vrátil 2013-01-07 15:54:23 UTC
Can you please check what the item contains? Open Akonadi Console -> Browser, select "Generic" model, in the left list select all calendars you have (Ctrl+click) and try to find item with ID 17834.

Paste here content of "Raw Payload" tab (strip any sensitive information).
Comment 5 Yuriy Vidineev 2013-01-07 16:11:59 UTC
Thank you for your answer!
Looks like I can't see any items from my main calendar (It's just blank right panel in Akonadi Console). When I trying to do it in akonadi log:

akonadi_googlecalendar_resource_0(9820)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  17495 Storage collection id  67 parentCollectionId =  -100 
akonadi_googlecalendar_resource_0(9820)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: "" 
akonadi_googlecalendar_resource_0(9820)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822" 
akonadi_googlecalendar_resource_0(9820)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  "" 
akonadi_googlecalendar_resource_0(9820)/kdepimlibs (kcalcore): parse error ; string is empty? true 
akonadi_googlecalendar_resource_0(9820)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  17489 Storage collection id  67 parentCollectionId =  -101 
akonadi_googlecalendar_resource_0(9820)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: "" 
akonadi_googlecalendar_resource_0(9820)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822" 
akonadi_googlecalendar_resource_0(9820)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  "" 
akonadi_googlecalendar_resource_0(9820)/kdepimlibs (kcalcore): parse error ; string is empty? true 
akonadi_googlecalendar_resource_0(9820)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  17483 Storage collection id  67 parentCollectionId =  -102 
akonadi_googlecalendar_resource_0(9820)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: "" 
akonadi_googlecalendar_resource_0(9820)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822" 
akonadi_googlecalendar_resource_0(9820)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  "" 
akonadi_nepomuk_feeder(9829) FeederPluginloader::feederPluginsForMimeType: No feeder for type  "inode/directory"  found 
akonadi_googlecalendar_resource_0(9820) KGAPI::AccessManagerPrivate::nam_sendRequest: Failed to resolve service  "" 
ItemRetrieverException :  Unable to retrieve item from resource: <html>Invalid item retrieved</html>
Comment 6 Yuriy Vidineev 2013-01-07 16:16:18 UTC
Created attachment 76280 [details]
Just my akonadi console creenshot

Calendar adeptg@gmail.com doesn't work, other calendars work fine
Comment 7 Daniel Vrátil 2013-01-07 16:23:28 UTC
Ok, let's try the more hardcore approach :) In Akonadi Console, "DB Browser" tab, select "parttable" and click Refresh. Try to find row with pimitemid=17834 and paste content of "data" column.
Comment 8 Daniel Vrátil 2013-01-07 16:25:52 UTC
You can obtain value of "id" column by running query "SELECT id FROM parttable WHERE pimitemid=17834" in DB Console. They are sorted, so it will be easier to find.
Comment 9 Yuriy Vidineev 2013-01-07 16:40:14 UTC
I guess that right pimitemid 17483 (not 17834) because of error:
"akonadi_googlecalendar_resource_0(9820)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id = 17483 Storage collection id 67 parentCollectionId = -102"

Second, pimitemid =17834 looks like regular email, not calendar event.

For 17483 there is not so much information, only blank fields (I will attach screenshot)


P.S. Sorry for my English
Comment 10 Yuriy Vidineev 2013-01-07 16:42:03 UTC
Created attachment 76281 [details]
Information from DB for pimitemid 17483
Comment 11 Daniel Vrátil 2013-01-07 16:52:23 UTC
It just says RFC822 (which is actually an RFC for emails), but for some reason in Akonadi that means "content body" for any content :-)

The problem here is, that Akonadi and the Google resource does not expect the field to be empty, so it kinda breaks stuff.

I'll see if and how this is supposed to be handled. Meanwhile try removing the Akonadi Resource and adding it again. It will sync all the events again, hopefully correctly now.
Comment 12 Yuriy Vidineev 2013-01-07 17:01:29 UTC
Nice, thank you!
I tried to recreate resource few days ago - and it didn't helped. But now it helped - all works! Few days ago I had only very unstable GPRS, now I have stable internet access - maybe, it is the root of my problem.
So now all works, thank you again! Should I close this bug?
Comment 13 Daniel Vrátil 2013-01-07 18:52:09 UTC
No, keep it open. Something somewhere is still broken :-)
Comment 14 Frédéric COIFFIER 2013-02-08 14:07:57 UTC
Same problem here (with Gentoo KDE 4.10) and recreating the Akonadi resource has solved the problem.
Comment 15 Denis Kurz 2016-09-24 20:43:14 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 16 Denis Kurz 2017-01-07 22:32:22 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.