GPU issue in logseq 0.15 on arch linux

I typically use logseq-desktop-bin from AUR, but have tested with Logseq’s AppImages to confirm. 0.10.14 works as expected, 0.10.15 throws a mess of errors and never gets the GUI up successfully.

(rsapi) init loggers
21:18:37.812 › Logseq App(0.10.15) Starting... 
21:18:37.822 › restore proxy settings {:type "system"}
21:18:37.822 › set proxy to {:type "system"}
[165388:1207/211838.069471:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165388:1207/211838.069561:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165388:1207/211838.069604:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165388:1207/211838.072124:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165388:1207/211838.072171:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165388:1207/211838.072227:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165388:1207/211838.072262:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165388:1207/211838.072295:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165388:1207/211838.072327:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165388:1207/211838.087079:ERROR:gpu/command_buffer/service/shared_image/shared_image_manager.cc:389] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[165388:1207/211838.087449:ERROR:components/viz/service/gl/exit_code.cc:13] Restarting GPU process due to unrecoverable error. Context was lost.
[165175:1207/211838.095090:ERROR:content/browser/gpu/gpu_process_host.cc:964] GPU process exited unexpectedly: exit_code=8704
[165589:1207/211838.222930:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165589:1207/211838.223022:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165589:1207/211838.223067:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165589:1207/211838.223117:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165589:1207/211838.223159:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165589:1207/211838.223199:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165589:1207/211838.223241:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165589:1207/211838.223290:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165589:1207/211838.223329:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165589:1207/211838.223399:ERROR:gpu/command_buffer/service/shared_image/shared_image_manager.cc:389] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[165589:1207/211838.223475:ERROR:components/viz/service/gl/exit_code.cc:13] Restarting GPU process due to unrecoverable error. Context was lost.
[165175:1207/211838.229733:ERROR:content/browser/gpu/gpu_process_host.cc:964] GPU process exited unexpectedly: exit_code=8704
[165625:1207/211838.325403:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165625:1207/211838.325494:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165625:1207/211838.325549:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165625:1207/211838.325611:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165625:1207/211838.325652:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165625:1207/211838.325693:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165625:1207/211838.325737:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[165625:1207/211838.325776:ERROR:ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc:82] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[165625:1207/211838.325814:ERROR:gpu/command_buffer/service/shared_image/shared_image_factory.cc:931] CreateSharedImage: could not create backing.
[165625:1207/211838.325878:ERROR:gpu/command_buffer/service/shared_image/shared_image_manager.cc:389] SharedImageManager::ProduceSkia: Trying to Produce a Skia representation from a non-existent mailbox.
[165625:1207/211838.325946:ERROR:components/viz/service/gl/exit_code.cc:13] Restarting GPU process due to unrecoverable error. Context was lost.
[165175:1207/211838.332216:ERROR:content/browser/gpu/gpu_process_host.cc:964] GPU process exited unexpectedly: exit_code=8704
21:18:41.204 › :electron.handler/watch-dir {:path "/home/NAME/.logseq/config"}
21:18:41.389 › :electron.handler/unwatch-dir {:path "/home/NAME/Documents/PKM"}
21:18:41.390 › :electron.handler/watch-dir {:path "/home/NAME/Documents/PKM"}

If I use –disable-gpu 0.10.15 works. This is on my desktop, with an AMD GPU; my laptop, with an integrated Intel GPU, has 0.10.15 working fine. This could potentially be an electron problem, or a problem with my broader system, but since I have it bisected to this logseq update I’m checking here first. Anyone have any ideas what could be causing this?

A fellow Logseq 0.10.15 from AUR user here.

I also have no issue launching the app from my laptop using Intel Integrated graphics, and I have an Archlinux+SwayWM (Wayland) setup.

The changelog said they bumped the bundled Electron version to 38.4.0. The log you shared shows it has something to do with Electron’s Ozone Wayland backend. Does the Logseq UI launch using Xwayland?

If you feel comfortable and have the time, you can try out the CI builds from GitHub and even experiment with the exact same electron version (maybe using demo projects) to see if you still face the issue.