Obsidian crashes when forced to run on wayland native

Steps to reproduce

Text:

1. Install either the Flatpak or Appimage for Obsidian (v 0.13.14)
2. Run flatpak override --user --env=OBSIDIAN_USE_WAYLAND=1 md.obsidian.Obsidian for the flatpak version
3. Run Obsidian 

Expected result

Open the Obsidian application.

Actual result

Obsidian “opens”, as in a process is opened with Obsidian, however there is no actual window and activity stops (after a few seconds, no more CPU usage). Same situation happens when executing the Appimage. Running from the terminal:

-- For Flatpak --
[3 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/obsidian --type=zygote
2022-01-02 22:17:23 Loading main app package /app/resources/obsidian.asar
2022-01-02 22:17:24 Checking for update using Github
2022-01-02 22:17:24 Success.
2022-01-02 22:17:24 Latest version is 0.13.14
2022-01-02 22:17:24 App is up to date.

-- For Appimage --
2022-01-02 22:07:16 Loading main app package /tmp/.mount_ObsidiEsMZvq/resources/obsidian.asar
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
2022-01-02 22:07:16 Checking for update using Github
2022-01-02 22:07:16 Success.
2022-01-02 22:07:16 Latest version is 0.13.14
2022-01-02 22:07:16 App is up to date.

Afterwards, it just hangs.

Environment

  • Operating system: Opensuse Tumbleweed (VERSION_ID=20211215)
  • DE: GNOME 41.2 (Wayland Session)
  • Obsidian Version: 0.13.14
  • Debug info:
running journalctl -e:
Jan 02 17:20:07 localhost.localdomain systemd[1724]: Started app-flatpak-md.obsidian.Obsidian-13225.scope.
Jan 02 17:20:07 localhost.localdomain systemd[1724]: Started app-flatpak-md.obsidian.Obsidian-13251.scope.
Jan 02 17:21:06 localhost.localdomain systemd[1724]: app-flatpak-md.obsidian.Obsidian-13225.scope: Consumed 1.999s CPU time.*

* Hit CTRL-D

Flatpak is community maintained. we don’t provide support for it.

Oh my apologies. However I downloaded the Appimage from the official website and the same result produces (I added the output as well).

I suggest you google where

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

comes from.

I’m experiencing a very similar issue on either AppImage or Flatpak installed versions.

[[email protected] Applications]$ ./Obsidian-0.13.31.AppImage  --enable-features=UseOzonePlatform --ozone-platform=wayland
2022-03-18 18:16:36 Loading updated app package /home/rickbowman/.config/obsidian/obsidian-0.13.33.asar
[8764:0318/141636.874667:ERROR:gpu_init.cc(454)] Passthrough is not supported, GL is egl, ANGLE is 
[8764:0318/141636.894228:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[8713:0318/141636.943937:ERROR:cursor_loader.cc(116)] Failed to load a platform cursor of type kNull
Segmentation fault (core dumped)

This issue is also being reported here Crash on startup with OBSIDIAN_USE_WAYLAND=1 · Issue #19 · flathub/md.obsidian.Obsidian · GitHub but again happens consistently on both versions to me.

This is an upstream issue between electron and wayland. Don’t force obsidian in wayland native mode until the issue is fixed upstream.

https://github.com/electron/electron/issues/32487

hey, just a heads up. this has been fixed upstream with electron versions 17.3.1 and 18.0.1

wasn’t sure if It was better to make a new post or necrobump this one

1 Like

Looking forward to seeing the updated Electron make it into Obsidian builds soon. Its hard to look at it all blurry from XWayland scaling!! Any news on how long until this might get upgraded?

This will be fixed in 0.14.5. You will need to download and reinstall obsidian from the website.

1 Like

this has made it’s way to the flatpak version also. I just verified it’s working locally

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.