Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KMail Renders Blank Messages #160599

Closed
MarekPasnikowski opened this issue Feb 18, 2022 · 3 comments · Fixed by #268893
Closed

KMail Renders Blank Messages #160599

MarekPasnikowski opened this issue Feb 18, 2022 · 3 comments · Fixed by #268893

Comments

@MarekPasnikowski
Copy link
Contributor

Description

The title says it all. Here is the corresponding upstream bug report: KDE Bug Tracker .

The workaround of QT_WEBENGINE_DISABLE_WAYLAND_WORKAROUND=1 solves the problem.

Maintainers

@ttuegel @vandenoever @nyanloutre

@devurandom
Copy link

devurandom commented Oct 22, 2022

Where do you put the env var? I have it in ~/.profile and ~/.bashrc contains source .profile, but when starting KMail from the task manager it still shows the bug, while it works fine when started from a terminal. The same when placing QT_WEBENGINE_DISABLE_WAYLAND_WORKAROUND=1 in ~/.config/environment.d/99-kdebug446104.conf (cf. environment.d(5)), removing the lines from ~/.bashrc and ~/.profile, logging out and logging back in: It works fine from the terminal, but not from KDE Plasma's task manager.

@devurandom
Copy link

devurandom commented Nov 7, 2022

I confirmed (by looking at string /proc/${kmail-pid}/environ) that QT_WEBENGINE_DISABLE_WAYLAND_WORKAROUND=1 is set. Still KMail does not render the contents of emails when started from Plasma, but does so when started from a terminal (the envvar is set in both cases).

To further debug this, I compared environment variables from the different processes and used export and unset to get both environments to match as closely as possible.

In the end I found that if NIX_PROFILES=/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/dschridde /home/dschridde/.nix-profile /var/lib/flatpak/exports /home/dschridde/.local/share/flatpak/exports was set, KMail would render emails, but if it was not set, it would output:

grantlee.template: "Plugin library 'kde_grantlee_plugin' not found."
org.kde.pim.messageviewer: "Plugin library 'kde_grantlee_plugin' not found." . Searched in subdir mimetreeparser/themes/default in these locations ("/home/dschridde/.local/share", "/nix/store/r0iadjy142dwjv8shn709b2b596lcf80-kmail-22.08.2/share", "/nix/store/hbh1vssyd03kipgza9jhq16ll01mfgdc-pim-data-exporter-22.08.2/share", "/nix/store/hi803yfn16fxkxan3flyw4sbbxad81q3-kleopatra-22.08.2/share", "/nix/store/1n3nsj89invp1kcj5jhjcgbz2g08mz8z-kaddressbook-22.08.2/share", "/nix/store/jbrydf95y7c7nadi0srl5dz9dhgh4m2z-akonadi-import-wizard-22.08.2/share", "/nix/store/3d7skyq2r9aqqy69amhmjvafb3mizxs7-pim-sieve-editor-22.08.2/share", "/nix/store/5a3k6k06abh6wzpgll6hadvsnxd9gc5z-attr-2.5.1/share", "/nix/store/nx8hvigvlyzm6h59md4gi5bxpsw3panc-xz-5.2.7/share", "/nix/store/fa1slp7raq5a0wrygmcs3nig1ysi69pd-libkleo-22.08.2/share", "/nix/store/5gn5s91x87jn57fvw91ap2f20r4vpdwz-libgpg-error-1.45/share", "/nix/store/2111axif7wdziy1czxh6hvbackgjn45y-kidentitymanagement-22.08.2/share", "/nix/store/xk8kkp48czp1gh9riglz5k1kp9qsms7v-mailcommon-22.08.2/share", "/nix/store/pqvfzcri5pncybs5q4p1mx8855fkkagj-messagelib-22.08.2/share", "/nix/store/1j6pfmxrrh13655lvmraqdbpyf56nj12-libsecret-0.20.5/share", "/nix/store/jwzbvzazhsrh3kv4h1cvhsfpwb3rg8by-libksieve-22.08.2/share", "/nix/store/lcn1cllv8ccncarcbc9zhv7cza6gy0vb-libgravatar-22.08.2/share", "/nix/store/7rwszv3aq0l177zcsa5qqmg9hm35lbw4-pimcommon-22.08.2/share", "/nix/store/145hp36ckr61lbnrrh9ngzpp5byj433k-purpose-5.99.0/share", "/nix/store/2v2w2hzaf7nffqc9ibjacwbmk8qv3chd-libkdepim-22.08.2/share", "/nix/store/vqga6q96a4icc5a949candpb638l3qh9-purpose-5.99.0-bin/share", "/nix/store/f2h17swsqyb3rsw5664fq6cknnyn4sqw-kimap-22.08.2/share", "/nix/store/3wbzjr50v42r0g592a49yy0f2k6aacyw-akonadi-contacts-22.08.2/share", "/nix/store/mbp13p0g3k94qf53224ynlbj36k8jrpg-ktnef-22.08.2/share", "/nix/store/yq41xrshprwpabx3396rn26410lgj02b-kpty-5.99.0/share", "/nix/store/kli0yrdv666i2vl67hprfm6v675k1x7m-kontactinterface-22.08.2/share", "/nix/store/8j2adsskmz5fz6j7r93wb4yzid03qv7w-knotifyconfig-5.99.0/share", "/nix/store/ggnpm72fv59xvc2n33n9n0p87arqwryp-kmailtransport-22.08.2/share", "/nix/store/ny449rka6d673cvczj4sq8ihid2ar941-kmail-account-wizard-22.08.2/share", "/nix/store/di7w7l3ajrls2rjfvappdxdp1pp20ckf-kldap-22.08.2/share", "/nix/store/yc627hhpzli854q6w19y6fffn8q9da6z-kinit-5.99.0/share", "/nix/store/495ckkq4h559h5c87dmwpwrsn968fdg5-knewstuff-5.99.0/share", "/nix/store/4w1dkfv83xn1w09rlq33wllfriby2bfq-grantleetheme-22.08.2/share", "/nix/store/df66vl80h3j6a21wrpddf52g97khwy9i-kdepim-addons-22.08.2/share", "/nix/store/k1qpxmd5zscgg5qvk0lfwg27i5hxyivs-kcalutils-22.08.2/share", "/nix/store/slb05rfzm0rkffimy1ayc2c8laqq56zf-syntax-highlighting-5.99.0/share", "/nix/store/43xsp7km042jmham8panc7q6qacr6i78-kparts-5.99.0/share", "/nix/store/n4s4q7r6xkzyxgwcspgnf5g48zxyci6m-kparts-5.99.0-bin/share", "/nix/store/jkvqq7y1vm7r96i567ydj6jyv97zwi4g-kpimtextedit-22.08.2/share", "/nix/store/c8mzpv2wi3g35j93aq9qw6xzniwcv6vk-kemoticons-5.99.0-bin/share", "/nix/store/xyc11g56m2664gnkndj6hp08i50mqc10-akonadi-search-22.08.2/share", "/nix/store/g38s6d5v1qnxxwaxl4g14rl9s9g1pfvp-plasma-framework-5.99.0/share", "/nix/store/9hgqpag9cs88qazi4akpasdl4iyfamis-kcmutils-5.99.0/share", "/nix/store/mvcdwxdn3j7paw6gdml50wj4m1z15gqc-kdeclarative-5.99.0/share", "/nix/store/74mik9ihisjcbx8y99fhdlkw96yqy970-kpackage-5.99.0/share", "/nix/store/4w8c9wnag95ps5hm711xdw3rs93kxcpf-kpackage-5.99.0-bin/share", "/nix/store/176h84wv23plyhsigyindgr48riny4jh-krunner-5.99.0-bin/share", "/nix/store/vi59gqkzwccf0w8gz3ssnzsc61ivlzda-plasma-framework-5.99.0-bin/share", "/nix/store/bkbb813g132crm9239wj339qml5bxibh-kirigami2-5.99.0/share", "/nix/store/knf5ni6r3pwlhw1y8ji8zx0ciaggw8hg-kcmutils-5.99.0-bin/share", "/nix/store/9si2nl38v1nx7wa22f0hk4wc2p3awlmn-kmime-22.08.2/share", "/nix/store/0lz3dyiwlgsi2s1f3r1d81jd241115pa-kcontacts-5.99.0/share", "/nix/store/f97fn9d66i2s4nmrdr5f22wiwjrfrn65-iso-codes-4.11.0/share", "/nix/store/46dhnd4cxlva85xdaxsjhhvgxcvwnnl2-akonadi-mime-22.08.2/share", "/nix/store/7pgqndmag1zab75ysqqvrbpk0n51pvy5-akonadi-22.08.2/share", "/nix/store/ds2fkslmgppm38sidqzlqkm7shwhahg9-kdesignerplugin-5.99.0/share", "/nix/store/dh4c0wcf6mwbr41gbjpzlm3gg6zkjdas-kwallet-5.99.0/share", "/nix/store/s8l63hcldsc0awxzgssicylixnbk7kpg-kwallet-5.99.0-bin/share", "/nix/store/sklbxhf2qsb5qm283bkhavvdi0fmr7f7-knotifications-5.99.0/share", "/nix/store/vhq7l3n4asmxb61m8dpinz77hgs42flz-kded-5.99.0/share", "/nix/store/g69i1ify8k664fcwgbl85l54phhvlvpz-solid-5.99.0/share", "/nix/store/kbmhv929ip0qchi4z6j84gpx3m9f78vp-kjobwidgets-5.99.0/share", "/nix/store/vz5yrpzyqpv2hb0hi6rxj1q13ym0155q-kjobwidgets-5.99.0-bin/share", "/nix/store/s5w1gpd5rdvw37h87kb8kny9ichs1hv2-kbookmarks-5.99.0/share", "/nix/store/c52xgznk0pwm5rmpwcrxa4k47wm00q67-kxmlgui-5.99.0/share", "/nix/store/ha793l4psb3r9h1gy51xkwzqy0bwj7nc-ktextwidgets-5.99.0/share", "/nix/store/sacljksyq9py4pv57a4mjpa214lwcnwh-sonnet-5.99.0/share", "/nix/store/7wf67sv0z533v9k5j6h5s7sy1446zq2h-kservice-5.99.0/share", "/nix/store/8xc0zr1qfyjirysf82zx4pkpzy0mj3i4-kservice-5.99.0-bin/share", "/nix/store/cipsmxl8765m803p9p8sqkjl0wsksgqg-kiconthemes-5.99.0/share", "/nix/store/jlxql53xndizl75px7cvhpg6p84125i2-kdbusaddons-5.99.0/share", "/nix/store/8x3n01sfhxc83qcnryqlwbm2gajnwbby-kguiaddons-5.99.0/share", "/nix/store/93whh6j9f618pqp77b90cszbp2840xsb-kcodecs-5.99.0/share", "/nix/store/ilhhj2ndal9wjqpvdnwq6hrsfq8yx7ck-kcoreaddons-5.99.0/share", "/nix/store/8rk0rd64igkf09ayqjpl6fs00a93p918-kcoreaddons-5.99.0-bin/share", "/nix/store/b6ijj02mlapbynbmwl2zyryipr8ghwy5-kconfig-5.99.0/share", "/nix/store/xlay3lx621q881axgldslj8xqv7h5vrb-kio-5.99.0/share", "/nix/store/bziwmqb7877q4a3qn07ja28zapi4jpck-knotifications-5.99.0-bin/share", "/nix/store/5ky8v4md26pmy3773jcclxrnw7h5k54i-phonon-4.11.1/share", "/nix/store/jx03nwiw2dad8vi5nbyq1prsjmqjjm1y-kglobalaccel-5.99.0/share", "/nix/store/9lb2clw5wkyyn5n3zbscra3sg0iagvy1-kitemviews-5.99.0/share", "/nix/store/z6sz6qa084kw119jfwi7avgvz4i5qf9c-kwindowsystem-5.99.0/share", "/nix/store/hlg9mwiyj2kz7fsif11nfp9x2l1825s6-kconfigwidgets-5.99.0/share", "/nix/store/slv1a7g2ms2rqdpr0my8q78f02kpjh00-kauth-5.99.0/share", "/nix/store/6x12s7mcfpms268k16fs00nm5vsxhjhp-kcompletion-5.99.0/share", "/nix/store/45iwbc558klp4q3jzqh38pslv4gcyk24-kwidgetsaddons-5.99.0/share", "/nix/store/izvarj1m0mkgwazcd4fdf1591hjd8cqk-kaccounts-integration-22.08.2/share", "/nix/store/rcphlfsz29vlcn30lfa5v1i1kg4zcd1h-flex-2.6.4/share", "/nix/store/vmx659n6v4hwsaa1srip54v812kicql6-gnum4-1.4.19/share", "/nix/store/hirgcsy1dlgsvk0fzz7g5zpkf2pavrl8-bison-3.8.2/share", "/nix/store/86f0dfvl6g1jbfmrw2ciphzh4vpqvnr4-kdoctools-5.99.0/share", "/nix/store/bhyzhr5116pjmjlilpsdysq6yvz34w4p-ki18n-5.99.0/share", "/nix/store/8ij41s8wskpjr3vydz1zqgpcdvs01vy6-fontconfig-2.14.0-lib/share", "/nix/store/z5qg6m93yv2wsij772rsljah3ahw1m8b-systemd-251.5/share", "/nix/store/phl7g6rn4qhl2pkm76167c5k6kp3jyzs-glib-2.74.0/share", "/nix/store/x9cfvkh726wqgc1rj63vyz9ycdjsl5ca-gettext-0.21/share", "/nix/store/ch1wps03skraiz6b0jrvmbg2rsj7ha1p-dbus-1.14.4/share", "/nix/store/2izis5n0s1ajddlgzc6q1hxa8g7y7f2y-plasma-workspace-5.26.2/share", "/nix/store/16kvx3l6shnygzxs0ni66dd05x3g80j0-pipewire-0.3.59-lib/share", "/nix/store/gqjxarr1d6ymgqvp7kxdq622dpypljvr-exiv2-0.27.5/share", "/nix/store/nng516kni2psw204dzs9jsw0bg3fxi03-kpipewire-5.26.2/share", "/nix/store/dlc32p5vnm2shfy3rdpfzvdzsqw0pv5m-appstream-qt-0.15.5/share", "/nix/store/lfjhshx5j330rwjyyhkx2s7ki866mj0w-kholidays-5.99.0/share", "/nix/store/1jscm3l28sdydz4p6bw563x56p778mm2-networkmanager-1.40.2/share", "/nix/store/h3gwbs4jxsgi756lhmxh26746r3mbza3-gnutls-3.7.8/share", "/nix/store/vy21zhmp6v8p35qwxlk3nnyaamljgszc-libqalculate-4.4.0/share", "/nix/store/jnhjnnq34xjrrndag0lsga36276fd313-libksysguard-5.26.2/share", "/nix/store/145iba1mhxjxs1dibq79vxjfb0payjxq-libksysguard-5.26.2-bin/share", "/nix/store/x0h72ycfbkrk25r86846yik0g9z55bcz-libkscreen-5.26.2/share", "/nix/store/j9gywkz88h126cdp3mq0iig3anz79jxq-kxmlrpcclient-5.99.0/share", "/nix/store/vy5ff8hsnxhzrlz71msx66461ihqg2rz-kwin-5.26.2.1/share", "/nix/store/yn7afxxxqwk8741w7pjz7mhbf9am9ij9-breeze-qt5-5.26.2/share", "/nix/store/g268dmqc057vss31fa02w2rbq4cdpq0m-kdecoration-5.26.2/share", "/nix/store/0snk0b09b2k9md9gas7cf7qbna5l6yf5-breeze-qt5-5.26.2-bin/share", "/nix/store/gl0mkyf9q4l3in5ki7k22jcrssx2mxl3-frameworkintegration-5.99.0-bin/share", "/nix/store/rzz7fw1x17iyv0xscxmksj7l8fqpbzx2-ktexteditor-5.99.0/share", "/nix/store/f4ga159gh7q80q5hb1a7w12nwqifr8da-ktexteditor-5.99.0-bin/share", "/nix/store/agj19gkncbcyh91mh01ry8sv722rswzi-kscreenlocker-5.26.2/share", "/nix/store/f7kr4hfp5a0xbq8jrc3r9dbnr68yn2jm-kpeople-5.99.0/share", "/nix/store/p3dclwajhmddajnlssn8yjkpmr3lphwb-kjsembed-5.99.0/share", "/nix/store/g18z0lkcv29jvfh8x2kam9mf7f70jssr-kdesu-5.99.0/share", "/nix/store/g50br00r84z0kga1wd740xzxbiv3h5rp-kdelibs4support-5.99.0/share", "/nix/store/qihs7q7j1b332z0jyhp78xnny9ymzzsc-kunitconversion-5.99.0/share", "/nix/store/w74h3v0dshky01xl09j2cbqmcblsiri0-baloo-5.99.0/share", "/nix/store/64vjhw2jb9fplwc5czfcisp7159iwww1-kfilemetadata-5.99.0/share", "/nix/store/c2iwcm67jp2zsvznvhi6bzw0kx2i1xl3-linux-pam-1.5.2/share", "/nix/store/27qkkgv5a5xf1pqbz3r90vfxvnkyhin5-desktops/share", "/home/dschridde/.local/share/flatpak/exports/share", "/var/lib/flatpak/exports/share", "/home/dschridde/.nix-profile/share", "/etc/profiles/per-user/dschridde/share", "/nix/var/nix/profiles/default/share", "/run/current-system/sw/share")

I am running BUILD_ID="22.11.20221105.3bacde6" (using the github:NixOS/nixpkgs/nixos-unstable flake).

This bug is probably a duplicate of #96255 and #41426 and maybe somehow related to #129442.

Setting the following in /etc/nixos/configuration.nix solved the problem for me:

 environment.sessionVariables = {
    # https://github.com/NixOS/nixpkgs/issues/41426
    # https://github.com/NixOS/nixpkgs/issues/96255
    # https://github.com/NixOS/nixpkgs/issues/160599
    NIX_PROFILES = "${lib.concatStringsSep " " (lib.reverseList config.environment.profiles)}";
};

Mic92 added a commit to Mic92/nixpkgs that referenced this issue Nov 21, 2023
This fixes a 5 year old bug (old enough to go to school) where kmail was
not able show emails (also appeared in kontact).

fixes NixOS#160599

The solution is not pretty but effective and involves
working around the broken search path of kde related libraries.
@Mic92
Copy link
Member

Mic92 commented Nov 21, 2023

I gave kde a try again after 5 years and was surprised this was still not fixed :)
With some strace I was able to find a way to make it load. I don't understand the whole problem space but here is a patch that fixes the issue: #268893

Mic92 added a commit to Mic92/nixpkgs that referenced this issue Nov 22, 2023
This fixes a 5 year old bug (old enough to go to school) where kmail was
not able show emails (also appeared in kontact).

fixes NixOS#160599

The solution is not pretty but effective and involves
working around the broken search path of kde related libraries.
github-actions bot pushed a commit to Mic92/nixpkgs that referenced this issue Nov 26, 2023
This fixes a 5 year old bug (old enough to go to school) where kmail was
not able show emails (also appeared in kontact).

fixes NixOS#160599

The solution is not pretty but effective and involves
working around the broken search path of kde related libraries.
Mic92 added a commit to Mic92/nixpkgs that referenced this issue Nov 26, 2023
This fixes a 5 year old bug (old enough to go to school) where kmail was
not able show emails (also appeared in kontact).

fixes NixOS#160599

The solution is not pretty but effective and involves
working around the broken search path of kde related libraries.
Mic92 added a commit to Mic92/nixpkgs that referenced this issue Nov 29, 2023
This fixes a 5 year old bug (old enough to go to school) where kmail was
not able show emails (also appeared in kontact).

fixes NixOS#160599

The solution is not pretty but effective and involves
working around the broken search path of kde related libraries.
Mic92 added a commit that referenced this issue Dec 1, 2023
This fixes a 5 year old bug (old enough to go to school) where kmail was
not able show emails (also appeared in kontact).

fixes #160599

The solution is not pretty but effective and involves
working around the broken search path of kde related libraries.
Mic92 added a commit to Mic92/nixpkgs that referenced this issue Dec 3, 2023
This fixes a 5 year old bug (old enough to go to school) where kmail was
not able show emails (also appeared in kontact).

fixes NixOS#160599

The solution is not pretty but effective and involves
working around the broken search path of kde related libraries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants