[kdepim] [Bug 507319] New: org.kde.pim.pimeventsplugin is get KCalendarCore::Incidence::Ptr payload from calendar items in Akonadi

Thomas Baag bugzilla_noreply at kde.org
Mon Jul 21 18:17:36 BST 2025


https://bugs.kde.org/show_bug.cgi?id=507319

            Bug ID: 507319
           Summary: org.kde.pim.pimeventsplugin is get
                    KCalendarCore::Incidence::Ptr payload from calendar
                    items in Akonadi
    Classification: Applications
           Product: kdepim
      Version First 6.4.3
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdepim-bugs at kde.org
          Reporter: bugs.kde.org at spam.b2ag.de
  Target Milestone: ---

SUMMARY

Hi, since one of the latest commits (or releases in KDE terminology) the
rendering of calendar items in the "Digital Clock" applet stopped working.
After some digging I ended up in C++ template hell. Joy and fun for everyone.

I've found that Plasmashell retrieves the Akonadi items as expected but fails
to transform the payload to a  KCalendarCore::Incidence::Ptr type. The check
failing lives in the kdepim-addons package
"plugins/plasma/pimeventsplugin/eventmodel.cpp".

Viewing the items in question (so all calendar items because it effects every
calendar item from every calendar source I tested) in Akonadiconsole,
Merkuro-Calendar or Kontact works without issues. 

Relevant part of debug log shows something like this:
plasmashell[pid]: org.kde.pim.pimeventsplugin: Populating events from
collection "CollectionId"
plasmashell[pid]: org.kde.pim.pimeventsplugin: Batch: received "up to 20 it
seems" items
plasmashell[pid]: org.kde.pim.pimeventsplugin: Item "a" has no payload
plasmashell[pid]: org.kde.pim.pimeventsplugin: Item "b" has no payload
...
plasmashell[pid]: org.kde.pim.pimeventsplugin: Item "t" has no payload
Continuing for every item in the batch.

STEPS TO REPRODUCE
1. Create an event in Merkuro Calendar or Kontact or sync Calendars with
Nextcloud or whatever
2. Activate "Calendar Events" plugin in "Digital Clock Settings" of the Plasma
clock applet
3. Make sure the Calendar for which you created the event is checked in the
"Calendar Events" tab of the clock applet

OBSERVED RESULT
Event is not shown. Code was released without thorough testing. Again.

EXPECTED RESULT
Events in selected calendars from "Calendar Events" should be shown like events
from other plugins (like the Holyday plugin)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS unstable
KDE Plasma Version:  25.04.3
KDE Frameworks Version: 6.16?
Qt Version: 6.9?

ADDITIONAL INFORMATION

I hacked around in "eventmodel.cpp", added some more debug output and tried to
trigger a Akonadi::PayloadException which looked like this:
plasmashell[pid]: org.kde.pim.pimeventsplugin: Item 76681 has no payload of
type KCalendarCore::Incidence::Ptr. Item mimeType is
"application/x-vnd.akonadi.calendar.event"
plasmashell[pid]: terminate called after throwing an instance of
'Akonadi::PayloadException'
plasmashell[pid]:   what():  Akonadi::PayloadException: Wrong Item payload type
(requested: sp(2)<KCalendarCore::Incidence*>; present: sp(0)<QByteArray>,
itemId: 76681)
... boring stacktrace ...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list