Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915899 - app-office/obsidian-1.4.16 doesn't start with wayland flag
Summary: app-office/obsidian-1.4.16 doesn't start with wayland flag
Status: UNCONFIRMED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Rahul Sandhu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-17 17:08 UTC by Pedro
Modified: 2023-12-18 14:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.log,7.62 KB, text/x-log)
2023-10-17 17:08 UTC, Pedro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro 2023-10-17 17:08:40 UTC
Created attachment 873048 [details]
emerge --info

When running Obsidian from the launcher/desktop icon, the icon appears in the taskbar, but the window doesn't appear. The icon appears as highlighted, as if you have a background application that has a notification.

If I run the same command from console, I see some errors:
❯  /opt/Obsidian/obsidian --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations
2023-10-17 16:59:45 Loading main app package /opt/Obsidian/resources/obsidian.asar
2023-10-17 16:59:45 Checking for update using Github
2023-10-17 16:59:45 Success.
2023-10-17 16:59:45 Latest version is 1.4.16
2023-10-17 16:59:45 App is up to date.
[11691:1017/185945.324981:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[11691:1017/185945.325031:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[11691:1017/185945.325096:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[11691:1017/185945.325111:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[11691:1017/185945.325123:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[11691:1017/185945.325138:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[11691:1017/185945.325169:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11625:1017/185945.327126:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[11723:1017/185945.372457:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[11723:1017/185945.372500:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[11723:1017/185945.372560:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[11723:1017/185945.372575:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[11723:1017/185945.372586:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[11723:1017/185945.372598:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[11723:1017/185945.372623:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11625:1017/185945.374651:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[11732:1017/185945.421383:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[11732:1017/185945.421422:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[11732:1017/185945.421478:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[11732:1017/185945.421502:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[11732:1017/185945.421515:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[11732:1017/185945.421528:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[11732:1017/185945.421553:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11697:1017/185945.422870:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[11625:1017/185945.423564:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[11697:1017/185945.447208:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

If I start Obsidian without the extra parameters from console, it seems to work and I'm able to see the program window and interact with all items:
❯  /opt/Obsidian/obsidian
2023-10-17 17:01:30 Loading main app package /opt/Obsidian/resources/obsidian.asar
2023-10-17 17:01:30 Checking for update using Github
2023-10-17 17:01:30 Success.
2023-10-17 17:01:30 Latest version is 1.4.16
2023-10-17 17:01:30 App is up to date.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /usr/lib64/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)
MESA-LOADER: failed to open zink: /usr/lib64/dri/zink_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/lib64/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib64/dri, suffix _dri)

Obsidian is installed with the wayland flag, as the rest of the system/desktop:
❯  emerge -pv obsidian

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.14 s.

[ebuild   R   ~] app-office/obsidian-1.4.16::guru  USE="wayland -appindicator" L10N="es -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -en-US -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

If I reinstall the package with USE="-wayland", it works as expected.
Comment 1 Artemis Everfree 2023-10-20 00:11:24 UTC
I don't have this error on my machine with USE=wayland.

Obisidian is an electron app. Do you know if chromium works with wayland enabled on your machine? See https://wiki.gentoo.org/wiki/Chromium#Native_Wayland_support

Same question for other wayland-capable electron apps such as vscode (vscode has a special wayland .desktop file it installs).

If not, then this is probably not an obsidian-specific issue.
Comment 2 Pedro 2023-10-20 08:14:49 UTC
I've emerged chrome with default flags and I don't see any issue running it in Wayland:
❯  chromium --enable-features=UseOzonePlatform --ozone-platform=wayland
[17651:17651:1020/100235.675420:ERROR:policy_logger.cc(154)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
[17700:17700:1020/100235.807109:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[17700:17700:1020/100235.807173:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[17700:17700:1020/100235.807247:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[17700:17700:1020/100235.807263:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[17700:17700:1020/100235.807274:ERROR:shared_image_factory.cc(910)] CreateSharedImage: could not create backing.
[17700:17700:1020/100235.807292:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[17700:17700:1020/100235.807329:ERROR:gpu_service_impl.cc(1084)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[17651:17651:1020/100235.810868:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=8704
[17769:17769:1020/100235.888949:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[17769:17769:1020/100235.888999:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[17769:17769:1020/100235.889064:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[17769:17769:1020/100235.889078:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[17769:17769:1020/100235.889090:ERROR:shared_image_factory.cc(910)] CreateSharedImage: could not create backing.
[17769:17769:1020/100235.889100:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[17769:17769:1020/100235.889130:ERROR:gpu_service_impl.cc(1084)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[17651:17651:1020/100235.892742:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=8704
[17722:1:1020/100235.972681:ERROR:command_buffer_proxy_impl.cc(129)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[17787:17787:1020/100235.978738:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[17787:17787:1020/100235.978794:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[17787:17787:1020/100235.978864:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[17787:17787:1020/100235.978884:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[17787:17787:1020/100235.978898:ERROR:shared_image_factory.cc(910)] CreateSharedImage: could not create backing.
[17787:17787:1020/100235.978913:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
[17787:17787:1020/100235.978955:ERROR:gpu_service_impl.cc(1084)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[17651:17651:1020/100235.982256:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=8704
[17723:7:1020/100236.037356:ERROR:command_buffer_proxy_impl.cc(129)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.


Also no issues in running VSCode Wayland shortcut. When running it on the terminal I got the following warnings, but it opens anyway:
❯  /usr/bin/vscode --enable-features=UseOzonePlatform --ozone-platform=wayland --unity-launch
Warning: 'enable-features' is not in the list of known options, but still passed to Electron/Chromium.
Warning: 'ozone-platform' is not in the list of known options, but still passed to Electron/Chromium.
Comment 3 Artemis Everfree 2023-10-20 17:15:22 UTC
that's bizarre, especially given that chromium gives a similar list of startup errors as obsidian does.

Something I notice different between vscode and obsidian is that obisidian is launched with WaylandWindowDecorations. Can you try launching obsidian with just

/opt/Obsidian/obsidian --ozone-platform-hint=auto --enable-features=UseOzonePlatform

and see if that works?
Comment 4 Pedro 2023-10-20 17:22:02 UTC
It has the same behavior with those parameters. Obsidian launches, but stays on the task bar without poping up the window.

❯  /opt/Obsidian/obsidian --ozone-platform-hint=auto --enable-features=UseOzonePlatform
2023-10-20 17:20:59 Loading main app package /opt/Obsidian/resources/obsidian.asar
2023-10-20 17:20:59 Checking for update using Github
2023-10-20 17:20:59 Success.
2023-10-20 17:20:59 Latest version is 1.4.16
2023-10-20 17:20:59 App is up to date.
[5780:1020/192059.188392:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[5780:1020/192059.188434:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[5780:1020/192059.188490:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[5780:1020/192059.188505:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[5780:1020/192059.188516:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[5780:1020/192059.188530:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[5780:1020/192059.188564:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5716:1020/192059.191033:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[5814:1020/192059.236146:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[5814:1020/192059.236184:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[5814:1020/192059.236239:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[5814:1020/192059.236254:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[5814:1020/192059.236266:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[5814:1020/192059.236280:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[5814:1020/192059.236309:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5716:1020/192059.238200:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[5823:1020/192059.283218:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[5823:1020/192059.283268:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[5823:1020/192059.283350:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[5823:1020/192059.283374:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[5823:1020/192059.283391:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[5823:1020/192059.283410:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[5823:1020/192059.283455:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5787:1020/192059.284974:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[5716:1020/192059.286182:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[5787:1020/192059.309339:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Comment 5 Artemis Everfree 2023-10-20 17:24:35 UTC
what desktop environment do you use? I can try using it too to see if I can replicate the issue there
Comment 6 Pedro 2023-10-20 17:34:28 UTC
I'm on KDE right now:
❯  emerge -pv  kde-plasma/plasma-meta

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.12 s.

[ebuild   R    ] kde-plasma/plasma-meta-5.27.8:5::gentoo  USE="browser-integration crypt desktop-portal display-manager elogind gtk handbook kwallet legacy-systray networkmanager pulseaudio sddm -accessibility -bluetooth -colord -crash-handler -discover (-firewall) -flatpak -grub -plymouth -sdk -smart -systemd -thunderbolt -wallpapers" 0 KiB


❯  eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/17.1 (stable)
  [2]   default/linux/amd64/17.1/selinux (stable)
  [3]   default/linux/amd64/17.1/hardened (stable)
  [4]   default/linux/amd64/17.1/hardened/selinux (stable)
  [5]   default/linux/amd64/17.1/desktop (stable)
  [6]   default/linux/amd64/17.1/desktop/gnome (stable)
  [7]   default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [8]   default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr (stable)
  [9]   default/linux/amd64/17.1/desktop/plasma (stable) *
Comment 7 Neko-san 2023-12-18 07:39:01 UTC
I'm also using KDE Plasma and have the same issue, though my terminal output is far more sparse: it doesn't give me much information about why this is happening:

/opt/Obsidian/obsidian --ozone-platform-hint=auto --enable-features=UseOzonePlatform --ozone-platform=wayland
2023-12-18 07:36:51 Loading main app package /opt/Obsidian/resources/obsidian.asar
2023-12-18 07:36:51 Checking for update using Github
2023-12-18 07:36:51 Success.
2023-12-18 07:36:51 Latest version is 1.4.16
2023-12-18 07:36:51 App is up to date.
fish: Job 1, '/opt/Obsidian/obsidian --ozone-…' terminated by signal SIGSEGV (Address boundary error)
Comment 8 Rahul Sandhu 2023-12-18 10:58:42 UTC
This is really strange, I'm looking into it
Comment 9 Rahul Sandhu 2023-12-18 10:59:47 UTC
(In reply to Pedro from comment #0)
> Created attachment 873048 [details]
> emerge --info
> 
> When running Obsidian from the launcher/desktop icon, the icon appears in
> the taskbar, but the window doesn't appear. The icon appears as highlighted,
> as if you have a background application that has a notification.
> 
> If I run the same command from console, I see some errors:
> ❯  /opt/Obsidian/obsidian --ozone-platform-hint=auto
> --enable-features=UseOzonePlatform,WaylandWindowDecorations
> 2023-10-17 16:59:45 Loading main app package
> /opt/Obsidian/resources/obsidian.asar
> 2023-10-17 16:59:45 Checking for update using Github
> 2023-10-17 16:59:45 Success.
> 2023-10-17 16:59:45 Latest version is 1.4.16
> 2023-10-17 16:59:45 App is up to date.
> [11691:1017/185945.324981:ERROR:gbm_wrapper.cc(258)] Failed to export buffer
> to dma_buf: No such file or directory (2)
> [11691:1017/185945.325031:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo
> with format= RGBA_8888 and usage=SCANOUT
> [11691:1017/185945.325096:ERROR:gbm_wrapper.cc(258)] Failed to export buffer
> to dma_buf: No such file or directory (2)
> [11691:1017/185945.325111:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo
> with format= RGBA_8888 and usage=GPU_READ
> [11691:1017/185945.325123:ERROR:shared_image_factory.cc(673)]
> CreateSharedImage: could not create backing.
> [11691:1017/185945.325138:ERROR:shared_image_factory.cc(527)]
> DestroySharedImage: Could not find shared image mailbox
> [11691:1017/185945.325169:ERROR:gpu_service_impl.cc(1010)] Exiting GPU
> process because some drivers can't recover from errors. GPU process will
> restart shortly.
> [11625:1017/185945.327126:ERROR:gpu_process_host.cc(954)] GPU process exited
> unexpectedly: exit_code=8704
> [11723:1017/185945.372457:ERROR:gbm_wrapper.cc(258)] Failed to export buffer
> to dma_buf: No such file or directory (2)
> [11723:1017/185945.372500:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo
> with format= RGBA_8888 and usage=SCANOUT
> [11723:1017/185945.372560:ERROR:gbm_wrapper.cc(258)] Failed to export buffer
> to dma_buf: No such file or directory (2)
> [11723:1017/185945.372575:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo
> with format= RGBA_8888 and usage=GPU_READ
> [11723:1017/185945.372586:ERROR:shared_image_factory.cc(673)]
> CreateSharedImage: could not create backing.
> [11723:1017/185945.372598:ERROR:shared_image_factory.cc(527)]
> DestroySharedImage: Could not find shared image mailbox
> [11723:1017/185945.372623:ERROR:gpu_service_impl.cc(1010)] Exiting GPU
> process because some drivers can't recover from errors. GPU process will
> restart shortly.
> [11625:1017/185945.374651:ERROR:gpu_process_host.cc(954)] GPU process exited
> unexpectedly: exit_code=8704
> [11732:1017/185945.421383:ERROR:gbm_wrapper.cc(258)] Failed to export buffer
> to dma_buf: No such file or directory (2)
> [11732:1017/185945.421422:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo
> with format= RGBA_8888 and usage=SCANOUT
> [11732:1017/185945.421478:ERROR:gbm_wrapper.cc(258)] Failed to export buffer
> to dma_buf: No such file or directory (2)
> [11732:1017/185945.421502:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo
> with format= RGBA_8888 and usage=GPU_READ
> [11732:1017/185945.421515:ERROR:shared_image_factory.cc(673)]
> CreateSharedImage: could not create backing.
> [11732:1017/185945.421528:ERROR:shared_image_factory.cc(527)]
> DestroySharedImage: Could not find shared image mailbox
> [11732:1017/185945.421553:ERROR:gpu_service_impl.cc(1010)] Exiting GPU
> process because some drivers can't recover from errors. GPU process will
> restart shortly.
> [11697:1017/185945.422870:ERROR:command_buffer_proxy_impl.cc(128)]
> ContextResult::kTransientFailure: Failed to send
> GpuControl.CreateCommandBuffer.
> [11625:1017/185945.423564:ERROR:gpu_process_host.cc(954)] GPU process exited
> unexpectedly: exit_code=8704
> [11697:1017/185945.447208:ERROR:command_buffer_proxy_impl.cc(128)]
> ContextResult::kTransientFailure: Failed to send
> GpuControl.CreateCommandBuffer.
> 
> If I start Obsidian without the extra parameters from console, it seems to
> work and I'm able to see the program window and interact with all items:
> ❯  /opt/Obsidian/obsidian
> 2023-10-17 17:01:30 Loading main app package
> /opt/Obsidian/resources/obsidian.asar
> 2023-10-17 17:01:30 Checking for update using Github
> 2023-10-17 17:01:30 Success.
> 2023-10-17 17:01:30 Latest version is 1.4.16
> 2023-10-17 17:01:30 App is up to date.
> MESA-LOADER: failed to retrieve device information
> MESA-LOADER: failed to open nvidia-drm: /usr/lib64/dri/nvidia-drm_dri.so:
> cannot open shared object file: Permission denied (search paths
> /usr/lib64/dri, suffix _dri)
> MESA-LOADER: failed to open zink: /usr/lib64/dri/zink_dri.so: cannot open
> shared object file: Permission denied (search paths /usr/lib64/dri, suffix
> _dri)
> MESA-LOADER: failed to open kms_swrast: /usr/lib64/dri/kms_swrast_dri.so:
> cannot open shared object file: Permission denied (search paths
> /usr/lib64/dri, suffix _dri)
> MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot
> open shared object file: Permission denied (search paths /usr/lib64/dri,
> suffix _dri)
> 
> Obsidian is installed with the wayland flag, as the rest of the
> system/desktop:
> ❯  emerge -pv obsidian
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> Dependency resolution took 1.14 s.
> 
> [ebuild   R   ~] app-office/obsidian-1.4.16::guru  USE="wayland
> -appindicator" L10N="es -af -am -ar -bg -bn -ca -cs -da -de -el -en-GB
> -en-US -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko
> -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw
> -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" 0 KiB
> 
> Total: 1 package (1 reinstall), Size of downloads: 0 KiB
> 
> If I reinstall the package with USE="-wayland", it works as expected.

Does it load with XWayland?
Comment 10 Rahul Sandhu 2023-12-18 11:16:25 UTC
Could everyone try with this please?
---
OBSIDIAN_USE_WAYLAND=1 obsidian -enable-features=UseOzonePlatform -ozone-platform=wayland
---
That appears to work for me, please let me know if there are any more issues.
Comment 11 Pedro 2023-12-18 13:53:57 UTC
Got the same behaviour with this last command:
❯  OBSIDIAN_USE_WAYLAND=1 obsidian -enable-features=UseOzonePlatform -ozone-platform=wayland
2023-12-18 13:52:51 Loading main app package /opt/Obsidian/resources/obsidian.asar
2023-12-18 13:52:51 Checking for update using Github
2023-12-18 13:52:51 Success.
2023-12-18 13:52:51 Latest version is 1.4.16
2023-12-18 13:52:51 App is up to date.
[18170:1218/145251.606010:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[18170:1218/145251.606538:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[18170:1218/145251.606555:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[18170:1218/145251.606572:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[18170:1218/145251.606597:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[18104:1218/145251.626953:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[18176:1218/145251.628405:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[18203:1218/145251.675613:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[18203:1218/145251.676418:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[18203:1218/145251.676445:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[18203:1218/145251.676466:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[18203:1218/145251.676503:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[18176:1218/145251.677647:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[18104:1218/145251.686695:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[18213:1218/145251.730705:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[18213:1218/145251.731367:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[18213:1218/145251.731385:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[18213:1218/145251.731401:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[18213:1218/145251.731433:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[18104:1218/145251.753858:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
Comment 12 Neko-san 2023-12-18 14:31:49 UTC
Still crashes for me as well.
Also, to answer your question about Xwayland, yes it does run fine with Xwayland.