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.

[rickbowman@fedora 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