drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

drawio snap 28.0.6 does not open with systemd-homed on Ubuntu 25.04

Open stuart12 opened this issue 4 months ago • 0 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug When I run /snap/bin/drawio using an account managed by systemd-homed no window opens and this error is shown in the terminal: A system error occurred: uv_os_get_passwd returned ENOENT. If I run /snap/bin/drawio on the same machine using an account not managed by systemd-homed, drawio works correctly. I have the same problem with the snap element-desktop 1.11.109.

A JavaScript error occurred in the main process
Uncaught Exception:
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
    at Object.userInfo (node:os:305:11)
    at file:///snap/drawio/252/resources/app.asar/node_modules/atomically/dist/constants.js:10:29
    at ModuleJob.run (node:internal/modules/esm/module_job:329:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
    at async node:electron/js2c/browser_init:2:135156
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:132:5)

To Reproduce Steps to reproduce the behavior:

  1. login an account managed by systemd-homed
  2. open a terminal
  3. run /snap/bin/drawio
  4. See error: A system error occurred: uv_os_get_passwd returned ENOENT

Expected behavior drawio opens a window.

Screenshots No window is opened

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io snap version 28.0.6

Desktop (please complete the following information):

  • Linux 6.14.0-28-generic #28-Ubuntu, Ubuntu 25.04

Additional context

% uname -srvmpio; cat /etc/issue; systemctl --version; sysctl kernel.apparmor_restrict_unprivileged_userns; snap info drawio; /snap/bin/drawio 
Linux 6.14.0-28-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 23 12:05:14 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 25.04 \n \l

systemd 257 (257.4-1ubuntu3.1)
+PAM +AUDIT +SELINUX +APPARMOR +IMA +IPE +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF -XKBCOMMON -UTMP +SYSVINIT +LIBARCHIVE
kernel.apparmor_restrict_unprivileged_userns = 0
name:      drawio
summary:   draw.io
publisher: draw.io (jgraph✓)
store-url: https://snapcraft.io/drawio
license:   unset
description: |
  draw.io desktop
commands:
  - drawio
snap-id:      84JReQ8pcNGJyAbT0gSDiW7OpDkrdaXp
tracking:     latest/stable
refresh-date: 6 days ago, at 16:28 CEST
channels:
  latest/stable:    28.0.6 2025-07-23 (252) 131MB -
  latest/candidate: ↑                             
  latest/beta:      ↑                             
  latest/edge:      28.0.6 2025-07-22 (252) 131MB -
installed:          28.0.6            (252) 131MB -
2025/08/23 11:41:49.193395 cmd_run.go:1412: WARNING: cannot start document portal: Message recipient disconnected from message bus without replying
A JavaScript error occurred in the main process
Uncaught Exception:
SystemError [ERR_SYSTEM_ERROR]: A system error occurred: uv_os_get_passwd returned ENOENT (no such file or directory)
    at Object.userInfo (node:os:305:11)
    at file:///snap/drawio/252/resources/app.asar/node_modules/atomically/dist/constants.js:10:29
    at ModuleJob.run (node:internal/modules/esm/module_job:329:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:644:26)
    at async node:electron/js2c/browser_init:2:135156
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:132:5)

(drawio:982211): Gtk-WARNING **: 11:41:49.628: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(drawio:982211): Gtk-WARNING **: 11:41:49.630: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(drawio:982211): Gtk-WARNING **: 11:41:49.631: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name
[982211:0823/114149.677450:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.Secret.Service.ReadAlias: object_path= /org/freedesktop/secrets: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.576" (uid=60262 pid=982211 comm="/snap/drawio/252/drawio --no-sandbox" label="snap.drawio.drawio (enforce)") interface="org.freedesktop.Secret.Service" member="ReadAlias" error name="(unset)" requested_reply="0" destination="org.freedesktop.secrets" (uid=60262 pid=8656 comm="/usr/bin/gnome-keyring-daemon --foreground --compo" label="unconfined")
libGL error: MESA-LOADER: failed to open radeonsi (search paths /snap/drawio/252/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /snap/drawio/252/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: swrast
[982318:0823/114149.701830:ERROR:ui/gl/angle_platform_impl.cc:49] Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[982318:0823/114149.701977:ERROR:ui/gl/gl_display.cc:408] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[982318:0823/114149.702019:ERROR:ui/gl/gl_display.cc:680] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[982318:0823/114149.702717:ERROR:ui/gl/angle_platform_impl.cc:49] Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[982318:0823/114149.702779:ERROR:ui/gl/gl_display.cc:408] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[982318:0823/114149.702821:ERROR:ui/gl/gl_display.cc:680] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[982318:0823/114149.702860:ERROR:ui/gl/gl_display.cc:715] Initialization of all EGL display types failed.
[982318:0823/114149.702899:ERROR:ui/ozone/common/gl_ozone_egl.cc:26] GLDisplayEGL::Initialize failed.
[982318:0823/114149.705018:ERROR:ui/gl/angle_platform_impl.cc:49] Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[982318:0823/114149.705064:ERROR:ui/gl/gl_display.cc:408] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[982318:0823/114149.705091:ERROR:ui/gl/gl_display.cc:680] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[982318:0823/114149.705643:ERROR:ui/gl/angle_platform_impl.cc:49] Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1079 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[982318:0823/114149.705688:ERROR:ui/gl/gl_display.cc:408] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[982318:0823/114149.705723:ERROR:ui/gl/gl_display.cc:680] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[982318:0823/114149.705757:ERROR:ui/gl/gl_display.cc:715] Initialization of all EGL display types failed.
[982318:0823/114149.705791:ERROR:ui/ozone/common/gl_ozone_egl.cc:26] GLDisplayEGL::Initialize failed.
[982318:0823/114149.706606:ERROR:components/viz/service/main/viz_main_impl.cc:184] Exiting GPU process due to errors during initialization

(drawio:982211): Gtk-WARNING **: 11:41:49.734: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(drawio:982211): Gtk-WARNING **: 11:41:49.736: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(drawio:982211): Gtk-WARNING **: 11:41:49.736: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name
MESA-LOADER: failed to open radeonsi (search paths /snap/drawio/252/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open kms_swrast (search paths /snap/drawio/252/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast (search paths /snap/drawio/252/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load swrast driver
^C% 

GNOME 48 using Wayland.

stuart12 avatar Aug 23 '25 09:08 stuart12