Skip to content

[BUG] Fails to launch in nixos wayland #560

Description

@Batres3

I tried running nix run github:ZenNotes/zennotes in a niri nixos environment and got the following errors:

[55178:0808/132051.408970:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.409181:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.409294:ERROR:ui/gl/gl_display.cc:638] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[55178:0808/132051.409451:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.409550:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.409616:ERROR:ui/gl/gl_display.cc:638] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[55178:0808/132051.409662:ERROR:ui/gl/gl_display.cc:673] Initialization of all EGL display types failed.
[55178:0808/132051.409712:ERROR:ui/ozone/common/gl_ozone_egl.cc:26] GLDisplayEGL::Initialize failed.
[55178:0808/132051.412491:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.412725:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.412807:ERROR:ui/gl/gl_display.cc:638] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[55178:0808/132051.412884:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.412943:ERROR:ui/gl/egl_util.cc:92] EGL Driver message (Critical) eglInitialize: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
[55178:0808/132051.412982:ERROR:ui/gl/gl_display.cc:638] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[55178:0808/132051.413018:ERROR:ui/gl/gl_display.cc:673] Initialization of all EGL display types failed.
[55178:0808/132051.413053:ERROR:ui/ozone/common/gl_ozone_egl.cc:26] GLDisplayEGL::Initialize failed.
[55178:0808/132051.415331:ERROR:components/viz/service/main/viz_main_impl.cc:189] Exiting GPU process due to errors during initialization

(ZenNotes:55091): GLib-GIO-CRITICAL **: 13:20:51.454: g_settings_schema_source_lookup: assertion 'source != NULL' failed
[55217:0808/132051.502738:ERROR:ui/gl/angle_platform_impl.cc:47] Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1097 (initialize): ANGLE Display::initialize error 12289: Could not dlopen native EGL: libEGL.so.1: cannot open shared object file: No such file or directory

And so on. I looked it up and it seems to be related to this issue and it can be fixed by running

export LD_LIBRARY_PATH=$(nix build --print-out-paths --no-link nixpkgs#libGL)/lib

But then it has an issue with fractional scaling where I can't see the full window (I have fractional scaling set to 1.5). If I force the app to open in X11 then it has no scaling or opengl issues, so I will use that for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions