Hi,
I’d like to run joplin-desktop
. But I see a corruped desktop when when I try.
When I run this on a custom debian installation with nix-the-package-manager installed from apt
:
$ nix shell nixpkgs#joplin-desktop -c joplin-desktop
I expect to see Joplin open (like it does on a another machine running NixOS).
But I actually see this screenshot:
It initially starts out as one window, but since shows an empty window in “three copies” like this, and corrupts the display in general (I actually only have one terminal open). It also shows the “Vanilla Joplin log messages” shown below.
Tried nixGL
I found GitHub - nix-community/nixGL: A wrapper tool for nix OpenGL application [maintainer=@guibou] where README.md
says:
NixGL solve the “OpenGL” problem with nix.
I don’t know what the “OpenGL” problem is, but it reduced the log output to what is shown in “nixGL log messages” below, by running:
$ nix shell --impure nixpkgs#joplin-desktop github:nix-community/nixGL -c nixGL joplin-desktop
but the screen still looks similarly corrupted. (This did fix upstart of another GUI application that didn’t previously work…)
Tried setting up /run/opengl-driver/lib/dri
One of the error messages was that /run/opengl-driver/lib/dri/iris_dri.so
didn’t exist. And true, not even /run/opengl-driver
existed. So I tried:
$ sudo mkdir -p /run/opengl-driver/lib/
$ sudo ln -s /usr/lib/x86_64-linux-gnu/dri /run/opengl-driver/lib/
Now /run/opengl-driver/lib/dri/iris_dri.so
exists, but the 3 log messages like this persist even now that the file exists:
MESA-LOADER: failed to open iris: /run/opengl-driver/lib/dri/iris_dri.so: cannot open shared object file
Error messages: Failed to load module “(xapp|canberra)-gtk3-module”
There were error messages like that. But nix shell nixpkgs#vim-full -c gvim
shows them too, and gvim
seems to work fine, so I assume that is not it.
What now?
Can I do something to get joplin-desktop to work?
Details
$ nix registry list | grep nixpkgs
global flake:nixpkgs github:NixOS/nixpkgs/nixpkgs-unstable
(I also tried github:NixOS/nixpkgs/nixos-23.11
)
Vanilla Joplin log messages
$ nix shell nixpkgs#joplin-desktop -c joplin-desktop
Sentry: Initialized with autoUploadCrashDumps: false
Gtk-Message: 12:29:09.962: Failed to load module "xapp-gtk3-module"
Gtk-Message: 12:29:09.979: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:29:09.980: Failed to load module "canberra-gtk-module"
[1029889:0613/122910.004514:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029889:0613/122910.004609:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029889:0613/122910.004631:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1029889:0613/122910.004792:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029889:0613/122910.004823:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029889:0613/122910.004842:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1029889:0613/122910.004859:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1029889:0613/122910.004880:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1029889:0613/122910.005771:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029889:0613/122910.005810:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029889:0613/122910.005830:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1029889:0613/122910.005947:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029889:0613/122910.005971:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029889:0613/122910.005988:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1029889:0613/122910.006005:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1029889:0613/122910.006021:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1029889:0613/122910.007136:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1029853:0613/122910.022051:ERROR:platform_font_skia.cc(252)] Could not find any font: Cantarell, sans. Falling back to the default
[1029913:0613/122910.052654:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029913:0613/122910.052750:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029913:0613/122910.052783:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1029913:0613/122910.052929:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029913:0613/122910.052955:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029913:0613/122910.052973:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1029913:0613/122910.052990:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1029913:0613/122910.053010:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1029913:0613/122910.053824:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029913:0613/122910.053868:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029913:0613/122910.053886:ERROR:gl_display.cc(790)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[1029913:0613/122910.054004:ERROR:angle_platform_impl.cc(44)] Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1066 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[1029913:0613/122910.054027:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[1029913:0613/122910.054044:ERROR:gl_display.cc(790)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[1029913:0613/122910.054061:ERROR:gl_display.cc(824)] Initialization of all EGL display types failed.
[1029913:0613/122910.054078:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[1029913:0613/122910.086222:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
MESA-LOADER: failed to open iris: /run/opengl-driver/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /run/opengl-driver/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /run/opengl-driver/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
(@joplinapp-desktop:1029853): Gdk-WARNING **: 12:29:11.943: Native Windows wider or taller than 32767 pixels are not supported
(@joplinapp-desktop:1029853): Gdk-WARNING **: 12:29:11.944: Native Windows wider or taller than 32767 pixels are not supported
(@joplinapp-desktop:1029853): Gdk-WARNING **: 12:29:11.954: Native Windows wider or taller than 32767 pixels are not supported
nixGL log messages
$ nix shell --impure nixpkgs#joplin-desktop github:nix-community/nixGL -c nixGL joplin-desktop
Sentry: Initialized with autoUploadCrashDumps: false
Gtk-Message: 12:34:20.349: Failed to load module "xapp-gtk3-module"
Gtk-Message: 12:34:20.366: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:34:20.367: Failed to load module "canberra-gtk-module"
[1038022:0613/123420.407347:ERROR:platform_font_skia.cc(252)] Could not find any font: Cantarell, sans. Falling back to the default
did not find extension DRI_Mesa version 1
failed to bind extensions
did not find extension DRI_Mesa version 1
failed to bind extensions
did not find extension DRI_Mesa version 1
failed to bind extensions
(@joplinapp-desktop:1038022): Gdk-WARNING **: 12:34:22.333: Native Windows wider or taller than 32767 pixels are not supported
(@joplinapp-desktop:1038022): Gdk-WARNING **: 12:34:22.334: Native Windows wider or taller than 32767 pixels are not supported
(@joplinapp-desktop:1038022): Gdk-WARNING **: 12:34:22.344: Native Windows wider or taller than 32767 pixels are not supported