Obsidian crash on wayland

Steps to reproduce

Run the obsidian on Wayland session on linux laptop with Ryzen integrated GPU and Nvidia GPU with the following command:

obsidian --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations

It crashes but with
obsidian --ozone-platform=x11
works fine under XWayland.

or with obsidian --disable-gpu works fine without gpu support natively.

Did you follow the troubleshooting guide? [Y]

Expected result

No crash

Actual result

$ obsidian --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=
UseOzonePlatform,WaylandWindowDecorations
2024-04-26 20:21:09 Loading main app package /usr/lib/obsidian/obsidian.asar
2024-04-26 20:21:10 Checking for update using Github
2024-04-26 20:21:11 Success.
2024-04-26 20:21:11 Latest version is 1.5.12
2024-04-26 20:21:11 App is up to date.
[5583:0427/015111.082789:ERROR:gl_display.cc(515)] EGL Driver message (Critical) : eglCreateImage failed with 0x00003003
[5583:0427/015111.082896:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_BAD_ALLOC
[5583:0427/015111.082943:ERROR:native_pixmap_egl_binding.cc(140)] Unable to initialize binding from pixmap
[5583:0427/015111.082992:ERROR:ozone_image_backing.cc(273)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5583:0427/015111.083031:ERROR:shared_image_manager.cc(227)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5583:0427/015111.083149:ERROR:gpu_service_impl.cc(1105)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5450:0427/015111.093025:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=8704
[5632:0427/015111.249509:ERROR:gl_display.cc(515)] EGL Driver message (Critical) : eglCreateImage failed with 0x00003003
[5632:0427/015111.249608:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_BAD_ALLOC
[5632:0427/015111.249687:ERROR:native_pixmap_egl_binding.cc(140)] Unable to initialize binding from pixmap
[5632:0427/015111.249738:ERROR:ozone_image_backing.cc(273)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5632:0427/015111.249799:ERROR:shared_image_manager.cc(227)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5632:0427/015111.249925:ERROR:gpu_service_impl.cc(1105)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5588:0427/015111.256450:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[5450:0427/015111.259315:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=8704
[5658:0427/015111.411168:ERROR:gl_display.cc(515)] EGL Driver message (Critical) : eglCreateImage failed with 0x00003003
[5658:0427/015111.411263:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_BAD_ALLOC
[5658:0427/015111.411304:ERROR:native_pixmap_egl_binding.cc(140)] Unable to initialize binding from pixmap
[5658:0427/015111.411361:ERROR:ozone_image_backing.cc(273)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5658:0427/015111.411408:ERROR:shared_image_manager.cc(227)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5658:0427/015111.411527:ERROR:gpu_service_impl.cc(1105)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5450:0427/015111.421406:ERROR:gpu_process_host.cc(993)] GPU process exited unexpectedly: exit_code=8704
[5588:0427/015111.523985:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

Environment

SYSTEM INFO:
Obsidian version: v1.5.12
Installer version: v1.5.12
Operating system: #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 6.8.7-arch1-1
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: Obsidian Nord v0.2.0
Snippets enabled: 0
Restricted mode: off
Plugins installed: 4
Plugins enabled: 4
1: Importer v1.6.0
2: Pocket v0.8.1
3: Git v2.24.0
4: Copilot v2.5.2


1 Like