Skip to content

libEGL.so.1: undefined reference to wl_proxy_* #16779

Closed

Description

@D01B0EB

Issue description

I use nixos-unstable.
All pygtk dependents, for examples, keepnote, zim, deluge are crashes while starting.

[ERROR   ] 19:15:14 ui:168 /run/opengl-driver/lib/libEGL.so.1: undefined symbol: wl_proxy_marshal_constructor_versioned
Traceback (most recent call last):
  File "/nix/store/zdfdvrym0f600nm4y5x73hisrfcj672m-python2.7-deluge-1.3.12/lib/python2.7/site-packages/deluge/ui/ui.py", line 149, in __init__
    from deluge.ui.gtkui.gtkui import GtkUI
  File "/nix/store/zdfdvrym0f600nm4y5x73hisrfcj672m-python2.7-deluge-1.3.12/lib/python2.7/site-packages/deluge/ui/gtkui/__init__.py", line 1, in <module>
    from gtkui import start
  File "/nix/store/zdfdvrym0f600nm4y5x73hisrfcj672m-python2.7-deluge-1.3.12/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 50, in <module>
    reactor = gtk2reactor.install()
  File "/nix/store/7wimwv66ag4nra00x23cf949yj01y03w-python2.7-Twisted-15.5.0/lib/python2.7/site-packages/twisted/internet/gtk2reactor.py", line 99, in install
    reactor = Gtk2Reactor(useGtk)
  File "/nix/store/7wimwv66ag4nra00x23cf949yj01y03w-python2.7-Twisted-15.5.0/lib/python2.7/site-packages/twisted/internet/gtk2reactor.py", line 71, in __init__
    import gtk as _gtk
  File "/nix/store/3q4x6pp8686jb933h153ssf60zwx1pjh-python2.7-pygtk-2.24.0/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: /run/opengl-driver/lib/libEGL.so.1: undefined symbol: wl_proxy_marshal_constructor_versioned

Steps to reproduce

Try run from nixos-unstable channel.

Technical details

  • System: 16.09pre85931.125ffff (Flounder)
  • Nix version: nix-env (Nix) 1.11.2
  • Nixpkgs version: "16.09pre85931.125ffff"

Activity

  1. D01B0EB commented on Jul 7, 2016

    @D01B0EB
    Author

    I guess that this start happened after updating Mesa to 11.2.2

  2. changed the title [-]nixos-unstable: all pygtk dependents crashes while starting: ImportError: /run/opengl-driver/lib/libEGL.so.1: undefined symbol: wl_proxy_marshal_constructor_versioned[/-] [+]nixos-unstable: all pygtk dependents crash while starting[/+] on Jul 7, 2016
  3. added
    0.kind: bug
    6.topic: python
    on Jul 7, 2016
  4. FRidh commented on Jul 12, 2016

    @FRidh
    Member

    I am running 65ac26e and just tested deluge and didn't encounter the issue. What video driver are you using? I use intel.

  5. D01B0EB commented on Jul 12, 2016

    @D01B0EB
    Author

    I use Intel also.

    [    58.071] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20150731
    ...
    [    58.080] (--) intel(0): Integrated Graphics Chipset: Intel(R) GM45
    

    The kernel I have not switched:

    Linux nixos 4.3.6 #1-NixOS SMP Fri Feb 19 22:35:24 UTC 2016 x86_64 GNU/Linux
    

    Temporary I have rebooted to nixos-16.03 back.

  6. larkery commented on Jul 13, 2016

    @larkery
    Contributor

    This bug also affects some other packages; for example, taffybar produces

    Error occurred while loading configuration file.
    Error: /run/opengl-driver/lib/libEGL.so.1: undefined reference to `wl_proxy_get_version'
    /run/opengl-driver/lib/libEGL.so.1: undefined reference to `wl_proxy_marshal_constructor_versioned'
    collect2: error: ld returned 1 exit status
    
  7. FRidh commented on Jul 29, 2016

    @FRidh
    Member

    @vcunat do you have any ideas what could cause this?

  8. vcunat commented on Jul 29, 2016

    @vcunat
    Member

    A quick google found that updating wayland might solve the problem: https://forum.voidlinux.eu/t/solved-package-mpv-dependencies-seems-to-be-broken/422/2 EDIT: it's possible the problem is only caused by some combinations of nixpkgs and nixos versions.

  9. srhb commented on Sep 1, 2016

    @srhb
    Contributor

    pidgin and thunderbird are also affected by this on 16.09pre90254.6b20d5b (Flounder)

    I'm not using Wayland.

  10. domenkozar commented on Sep 2, 2016

    @domenkozar
    Member

    Maybe fixed in 49d59ce ?

  11. vcunat commented on Sep 2, 2016

    @vcunat
    Member

    No, that seems very unlikely to me.

  12. vcunat commented on Sep 2, 2016

    @vcunat
    Member

    @Ptival: what's your nixos-version and from which version is your xfce4-terminal?

  13. Ptival commented on Sep 2, 2016

    @Ptival
    Contributor
    nixos-version
    16.09pre90254.6b20d5b (Flounder)
    

    I believe it's xfce4-terminal-0.6.3.

  14. added this to the 16.09 milestone on Sep 2, 2016
  15. 69 remaining items

  16. Rotsor commented on Dec 31, 2016

    @Rotsor
    Contributor

    @vcunat yes, but that (apparently) breaks kde so it can't go into master, which is a shame. I was thinking that if mesa-without-wayland breaks fewer things (I have no idea) then it has a chance of going into master.

  17. removed this from the 16.09 milestone on Jan 20, 2017
  18. added a commit that references this issue on Aug 29, 2017
  19. peterhoeg commented on Nov 1, 2017

    @peterhoeg
    Member

    Is this still an issue @danykey ?

  20. vcunat commented on Nov 1, 2017

    @vcunat
    Member

    Well, we haven't sorted this out, really. The impurity hits us here, due to the fact that we want to load two arbitrary closures into a single process. For now I see no easy solution, except to avoid mixing "too different" versions for libGL runtime dependencies.

  21. dezgeg commented on Nov 3, 2017

    @dezgeg
    Contributor

    I created a higher-level bug to track the underlying problem: #31189, so closing this specific issue.

  22. apteryks commented on Nov 14, 2021

    @apteryks

    I'm now fairly confident that adopting libglvnd is the way to go; I'm looking into details ATM. I believe it will result into various GL-related improvements (including multi-vendor setups, non-NixOS, closure sizes, etc.). Some users report (slight) performance degradation, but I suppose we'll bear it and hope upstream will reduce that in future. EDIT: note that libglvnd is most likely far too big change to make it into 16.09.

    I'm curious, in retrospect, did libglvnd improve things?

  23. vcunat commented on Nov 14, 2021

    @vcunat
    Member

    I'm quite confident that it didn't solve the whole problem. An approach like libcapsule might. (see the last linked issue)

  24. apteryks commented on Nov 18, 2021

    @apteryks

    I'm quite confident that it didn't solve the whole problem. An approach like libcapsule might. (see the last linked issue)

    Specifically about #31189, did it "not solve the whole problem", or did it cause it? Seems that if you previously were linking purely to mesa you would not have hit that issue, right?

  25. vcunat commented on Nov 18, 2021

    @vcunat
    Member

    No, we were always injecting libGL impurely. EDIT: originally by setting $LD_LIBRARY_PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions