Nixpkgs: KDE / KOrganizer Dependencies Missing

Created on 13 Apr 2018  路  5Comments  路  Source: NixOS/nixpkgs

Issue description

Kontact / KOrganizer / KDE-PIM, when installed, crashes upon use:
i.e. In KOrganizer, adding an event/task/journal, causes a crash. (see Technical details)

KOrganizer only works after installing everything from nixos.kdeApplications and nixos.kdeFrameworks
nix-env -iA nixos.kdeApplications nixos.kdeFrameworks

I attempted to compare Debian's dependency graph for KOrganizer and install the equivalently named packages in NixOS, to no avail.

Steps to reproduce

nano /etc/nixos/configuration.nix
Add korganizer to systemPackages, use Plasma5 as Desktop-Manager & SDDM as Display-Manager

nixos-rebuild switch
korganizer

Add new event, type Title, hit OK, crashes with output below

There is not a proper DrKonqi / KCrash report to associate with this, as neither system are considered dependencies of any other package, as far as I can tell, and must be installed manually.

Technical details

TTY Output:

org.kde.pim.kidentitymanagement: IdentityManager: There was no default identity. Marking first one as default.
kf5.kservice.services: KServiceTypeTrader: serviceType "KOrganizer/Part" not found
org.kde.pim.kidentitymanagement: IdentityManager: There was no default identity. Marking first one as default.
org.kde.pim.incidenceeditor: free slot calculation: invalid range. range(  0 ) / mSlotResolutionSeconds( 900 ) =  0
terminate called after throwing an instance of 'Akonadi::PayloadException'
  what():  Akonadi::PayloadException: Wrong payload type (requested: sp(0)<QByteArray>; present: sp(2)<KCalCore::Incidence*>
org.kde.pim.akonadiserver: Protocol exception: Socket disconnected

nix-shell -p nix-info --run "nix-info -m" Results:

  • system: "x86_64-linux"
  • host os: Linux 4.14.32, NixOS, 18.03.131802.4b4bbce199d (Impala)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.0
  • channels(shor): ""
  • channels(root): "nixos-18.03"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
stale qkde

Most helpful comment

@ttuegel @vandenoever There doesn't seem to be any documentation on how to properly install KDE applications. Would it make sense to have meta-packages like kontact that installed all necessary dependencies?

All 5 comments

After a long debugging session I found out that kdeApplications.akonadi-mime was missing.
In my case it was not only required to install it into my own profile (~/.nix-profile) but also in environment.systemPackages since it looked into /run/current-system/sw/share/mime/types before it checks the other directory.

I confirm that following Mic92's suggestion to install kdeApplication.akonadi-mime in the environment.systemPackages fixes the Korganizer crashing issue when making calendar entries on my system too (18.03). Doing so adds the following entries to /run/current-system/sw/share/mime/types:

application/x-vnd.akonadi.calendar.event
application/x-vnd.akonadi.calendar.freebusy
application/x-vnd.akonadi.calendar.journal
application/x-vnd.akonadi.calendar.todo
application/x-vnd.akonadi.collection.virtual
application/x-vnd.kde.contactgroup

Thanks for taking the time to figure out a solution Mic92!

John

Still receiving this error message after above suggestion:

terminate called after throwing an instance of 'Akonadi::PayloadException'
  what():  Akonadi::PayloadException: Wrong payload type (requested: sp(0)<QByteArray>; present: sp(2)<KCalCore::Incidence*>

@ttuegel @vandenoever There doesn't seem to be any documentation on how to properly install KDE applications. Would it make sense to have meta-packages like kontact that installed all necessary dependencies?

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

7c6f434c picture 7c6f434c  路  66Comments

worldofpeace picture worldofpeace  路  103Comments

globin picture globin  路  65Comments

fdietze picture fdietze  路  144Comments

thoughtpolice picture thoughtpolice  路  71Comments