[Bug]: Miru > 4.2.2 Broken on Nvidia Wayland (Native)
Closed this issue · 1 comments
Preflight checklist
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
- I have searched the frequently asked questions for a solution that fixes this problem, without success.
- I have checked that I'm using the latest stable version of the app.
What app version are you using?
v4.2.7
What operating system version are you using?
Linux
Expected Behavior
The App Should be Totally Functional as it was before 4.2.3 (I suppose it might be related to the Electron Version Bump from 23.x to 25.x) by enabling Native Wayland support through the Electron flag --ozone-platform-hint=auto
.
Actual Behavior
The App works through XWayland but not natively with the following log:
mattia@mattia-desktop ~/Applications> ./linux-Miru-4.2.7_0bcc1f0af7964ad3fa21f7555a9e35ca.AppImage --ozone-platform-hint=auto
/usr/bin/AppImageLauncher: /lib64/libcurl.so.4: no version information available (required by /usr/bin/../lib/x86_64-linux-gnu/appimagelauncher/libappimageupdate.so)
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.qgnomeplatform.theme: The desktop style for QtQuick Controls 2 applications is not available on the system (qqc2-desktop-style). The application may look broken.
22:00:36.741 › Checking for update
[2023-07-23 22:00:37.086] [MANGOHUD] [info] [config.cpp:118] skipping config: '/tmp/.mount_linux-joeLL8/MangoHud.conf' [ not found ]
[2023-07-23 22:00:37.086] [MANGOHUD] [info] [config.cpp:118] skipping config: '/var/home/mattia/.config/MangoHud/miru.conf' [ not found ]
[2023-07-23 22:00:37.086] [MANGOHUD] [info] [config.cpp:123] parsing config: '/var/home/mattia/.config/MangoHud/MangoHud.conf'
[69225:0723/220037.515768:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[69225:0723/220037.515856:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[69225:0723/220037.515960:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[69225:0723/220037.515994:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[69225:0723/220037.516025:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[69225:0723/220037.516054:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[69225:0723/220037.516119:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[69178:0723/220037.523808:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[2023-07-23 22:00:37.603] [MANGOHUD] [info] [config.cpp:118] skipping config: '/tmp/.mount_linux-joeLL8/MangoHud.conf' [ not found ]
[2023-07-23 22:00:37.603] [MANGOHUD] [info] [config.cpp:118] skipping config: '/var/home/mattia/.config/MangoHud/miru.conf' [ not found ]
[2023-07-23 22:00:37.603] [MANGOHUD] [info] [config.cpp:123] parsing config: '/var/home/mattia/.config/MangoHud/MangoHud.conf'
[69287:0723/220037.831126:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[69287:0723/220037.831209:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[69287:0723/220037.831298:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[69287:0723/220037.831328:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[69287:0723/220037.831350:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[69287:0723/220037.831373:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[69287:0723/220037.831419:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[69252:0723/220037.834924:ERROR:command_buffer_proxy_impl.cc(325)] GPU state invalid after WaitForGetOffsetInRange.
[69178:0723/220037.837082:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[2023-07-23 22:00:37.911] [MANGOHUD] [info] [config.cpp:118] skipping config: '/tmp/.mount_linux-joeLL8/MangoHud.conf' [ not found ]
[2023-07-23 22:00:37.911] [MANGOHUD] [info] [config.cpp:118] skipping config: '/var/home/mattia/.config/MangoHud/miru.conf' [ not found ]
[2023-07-23 22:00:37.911] [MANGOHUD] [info] [config.cpp:123] parsing config: '/var/home/mattia/.config/MangoHud/MangoHud.conf'
[69308:0723/220038.129640:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[69308:0723/220038.146272:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[69308:0723/220038.146463:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[69308:0723/220038.146493:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[69308:0723/220038.146518:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[69308:0723/220038.146545:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[69308:0723/220038.146615:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[69252:0723/220038.151091:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[69178:0723/220038.153701:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[2023-07-23 22:00:38.261] [MANGOHUD] [info] [config.cpp:118] skipping config: '/tmp/.mount_linux-joeLL8/MangoHud.conf' [ not found ]
[2023-07-23 22:00:38.261] [MANGOHUD] [info] [config.cpp:118] skipping config: '/var/home/mattia/.config/MangoHud/miru.conf' [ not found ]
[2023-07-23 22:00:38.261] [MANGOHUD] [info] [config.cpp:123] parsing config: '/var/home/mattia/.config/MangoHud/MangoHud.conf'
[2023-07-23 22:00:38.450] [MANGOHUD] [info] [config.cpp:118] skipping config: '/tmp/.mount_linux-joeLL8/MangoHud.conf' [ not found ]
[2023-07-23 22:00:38.450] [MANGOHUD] [info] [config.cpp:118] skipping config: '/var/home/mattia/.config/MangoHud/miru.conf' [ not found ]
[2023-07-23 22:00:38.450] [MANGOHUD] [info] [config.cpp:123] parsing config: '/var/home/mattia/.config/MangoHud/MangoHud.conf'
[2023-07-23 22:00:38.530] [MANGOHUD] [info] [overlay.cpp:808] Uploading is disabled (permit_upload = 0)
22:00:38.538 › Update for version 4.2.7 is not available (latest version: 4.2.7, downgrade is disallowed).
22:00:38.538 › checkForUpdatesAndNotify called, downloadPromise is null
[69252:0723/220038.540840:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
I've also tried the --enable-features=WaylandWindowDecorations
flag which made it work once but I wasn't able to reproduce it.
I'm using a Dual Monitor setup on Fedora 38/Gnome 44 with Nvidia driver version 535.86.05
Screenshots
No response
This is not a miru issue, if anything blame Nvidia.
Nvidia has always been hacky on wayland, their drivers are so messy and random to the point most wayland applications, compositors and libraries don't have official support for Nvidia drivers. There are entire communities built over time with the sole purpose of tweaking and hacking wayland so it runs on Nvidia.
I myself run wayland+Nvidia and Miru (electron apps in general) have never ran well, with electron updates being so random with Nvidia, it breaks more often than you imagine, sometimes just by downgrading my drivers and headers its enough to fix electron, and sometimes its electron itself which breaks.
All electron releases work fine on native wayland (no Nvidia). I also tested from current stable v25.3.1 up to electron v26.0.0-beta.6 on native wayland (with Nvidia) and none of the releases work natively.
So just use xwayland until it gets fixed upstream, or even better, buy an amd gpu.