You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
qt5 impurities break some apps, reporting symbol lookup errors #17448
@ttuegel: I'm getting this on and off for quite a long time. I thought it should've been resolved around #16255 and similar tickets, but apparently not, as it still happens for me on current 16.09 with a couple commits on top.
changed the title [-]qt5 impurities break some apps with symbol lookup errors[/-][+]qt5 impurities break some apps, reporting symbol lookup errors[/+]on Sep 11, 2016
I don't mean to push you, but if you have some ideas... I suspect you know significantly more than me about this, and I'd really like to resolve issues like this.
I don't mean to push you, but if you have some ideas... I suspect you know significantly more than me about this, and I'd really like to resolve issues like this.
At a minimum, it needs to be wrapped with wrapQtProgram. That should reset the environment variables that cause the problem.
I should mention that I'm still getting the same error also when running konsole-16.08.0 (EDIT: also many other core KDE apps, e.g. kate and gwenview but not okular).
@ttuegel: various KDE apps in ~/.nix-profile, certainly, including some outdated ones (and lots of other packages as well). My systemPackages is relatively small and I no longer enable KDE in NixOS config.
various KDE apps in ~/.nix-profile, certainly, including some outdated ones
Unfortunately, you need to remove the outdated ones to stop the impurity. Desktop applications are necessarily impure, otherwise they could not have themes, icons, input methods, etc. The solution to the Qt 5 impurity in this case was to stop polluting the profile with things that shouldn't be shared.
"Solution": get rid of (older/incompatible) ~/.nix-profile/lib/libQt5*. That may not be very easy, as KDE apps unfortunately (still) propagate it into the profile.
Hmm, it would be nice if we had an "installation mode" that doesn't create such interferences/plugs/etc. I've come to rely on such behavior with nix.
Do you think it's really needed for KDE stuff to have (so many) propagatedUserEnvPackages? Perhaps just adding most of them to the wrapper would be enough? It seems like (most of) #15498 all over again.
get rid of (older/incompatible) ~/.nix-profile/lib/libQt5*. That may not be very easy, as KDE apps unfortunately (still) propagate it into the profile.
As far as I know, there are no KDE 5 applications that still do this; however, every Qt 5 application is sensitive to garbage left-over from the older, ill-behaved packages.
Hmm, it would be nice if we had an "installation mode" that doesn't create such interferences/plugs/etc. I've come to rely on such behavior with nix.
Unfortunately, the Nix philosophy is fundamentally incompatible with desktop software.
Do you think it's really needed for KDE stuff to have (so many) propagatedUserEnvPackages? Perhaps just adding most of them to the wrapper would be enough? It seems like (most of) #15498 all over again.
The only things that still get propagated are service definitions, e.g. for D-Bus, and there's no way around that.
Again, as far as I know there are no applications currently in Nixpkgs which propagate junk into the user environment. If you can provide counterexamples to this claim, I will happily remove them.
Every one of those packages provides a service definition, .desktop file, theme, MIME type, or some other type of shared data. None of them provides a Qt plugin which could cause the segfault you're seeing.
If I understand correctly, there's not much we can do about this now -- the bug is fixed but all the leftovers from old times need to be updated. I suppose we can close this?
Activity
vcunat commentedon Sep 11, 2016
I'm getting the same with vlc:
That's clearly due to an impurity as
@ttuegel: I'm getting this on and off for quite a long time. I thought it should've been resolved around #16255 and similar tickets, but apparently not, as it still happens for me on current 16.09 with a couple commits on top.
[-]robomongo does not start[/-][+]qt5 impurities break some apps with symbol lookup errors[/+][-]qt5 impurities break some apps with symbol lookup errors[/-][+]qt5 impurities break some apps, reporting symbol lookup errors[/+]vcunat commentedon Sep 11, 2016
I don't mean to push you, but if you have some ideas... I suspect you know significantly more than me about this, and I'd really like to resolve issues like this.
ttuegel commentedon Sep 11, 2016
At a minimum, it needs to be wrapped with
wrapQtProgram. That should reset the environment variables that cause the problem.vcunat commentedon Sep 11, 2016
Unfortunately, using it to wrap the
vlcexecutable didn't seem to have affected the crash.vcunat commentedon Sep 11, 2016
I should mention that I'm still getting the same error also when running
konsole-16.08.0(EDIT: also many other core KDE apps, e.g. kate and gwenview but not okular).ttuegel commentedon Sep 11, 2016
@vcunat What do you have installed in your profiles?
vcunat commentedon Sep 11, 2016
@ttuegel: various KDE apps in
~/.nix-profile, certainly, including some outdated ones (and lots of other packages as well). MysystemPackagesis relatively small and I no longer enable KDE in NixOS config.ttuegel commentedon Sep 11, 2016
Unfortunately, you need to remove the outdated ones to stop the impurity. Desktop applications are necessarily impure, otherwise they could not have themes, icons, input methods, etc. The solution to the Qt 5 impurity in this case was to stop polluting the profile with things that shouldn't be shared.
vcunat commentedon Sep 11, 2016
"Solution": get rid of (older/incompatible)
~/.nix-profile/lib/libQt5*. That may not be very easy, as KDE apps unfortunately (still) propagate it into the profile.Hmm, it would be nice if we had an "installation mode" that doesn't create such interferences/plugs/etc. I've come to rely on such behavior with nix.
Do you think it's really needed for KDE stuff to have (so many)
propagatedUserEnvPackages? Perhaps just adding most of them to the wrapper would be enough? It seems like (most of) #15498 all over again.ttuegel commentedon Sep 11, 2016
As far as I know, there are no KDE 5 applications that still do this; however, every Qt 5 application is sensitive to garbage left-over from the older, ill-behaved packages.
Unfortunately, the Nix philosophy is fundamentally incompatible with desktop software.
The only things that still get propagated are service definitions, e.g. for D-Bus, and there's no way around that.
Again, as far as I know there are no applications currently in Nixpkgs which propagate junk into the user environment. If you can provide counterexamples to this claim, I will happily remove them.
vcunat commentedon Sep 11, 2016
ttuegel commentedon Sep 11, 2016
Every one of those packages provides a service definition,
.desktopfile, theme, MIME type, or some other type of shared data. None of them provides a Qt plugin which could cause the segfault you're seeing.abbradar commentedon Oct 8, 2016
If I understand correctly, there's not much we can do about this now -- the bug is fixed but all the leftovers from old times need to be updated. I suppose we can close this?
nixos-discourse commentedon Mar 30, 2020
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/please-fix-all-packages-which-were-broken-by-the-qt-wrapping-changes/6444/22