-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
element-desktop-1.11.33 crashes on startup with Wayland #238416
Comments
I've also had the same issue. |
Same issue here. It looks like the only upstream change is a bump to |
Related to Electron 25 bump in #237070. See element-hq/element-desktop#1026 for upstream issue |
is there any workaround for it yet? |
I've just been running |
I also encountered a similar problem, element-desktop doesn't crash (on wayland) but does not display anything (23.11.20230621.faee04a) (last known working: 23.11.20230606.0ce0c73, running it results in "DRI driver not from this Mesa build ('23.1.2' vs '23.1.1') failed to bind extensions" warnings, but it works) |
You might need to log out and log back in after updating or restart. That message means you've activated a config with Mesa 23.1.2 but tried to run element-desktop compiled against Mesa 23.1.1 (e.g. the element-desktop before you updated, possibly from old cached path/desktop entry in your DE) |
well, that's not the issue, I just run the last known good executable, which is built against an older version of nixpkgs... and somehow appears to hardcode the DRI driver location... |
Oh I didn't read your initial message very well. Do you get the "doesn't crash but doesn't display anything" behavior with element-desktop from the same nixpkgs revision your system is built with then? (Also Mesa on NixOS impurely loads DRI drivers from |
I also have this variation of the problem: element-desktop starts, shows notifications, shows a tray icon, and even shows the 'show/hide or quit' window when right-clicking the tray icon, but does not show the main window. I tried to bisect but it seems it (also) depends on some state on the filesystem. The console shows a bunch of errors around the GPU, but I haven't checked whether those are also there when it does work:
```
[18594:0626/140645.390284:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[18594:0626/140645.390414:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[18594:0626/140645.395204:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[18594:0626/140645.395326:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[18594:0626/140645.395428:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[18594:0626/140645.395491:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[18594:0626/140645.395612:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[18601:0626/140645.398349:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[18538:0626/140645.416222:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[18644:0626/140645.540218:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[18644:0626/140645.540437:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[18644:0626/140645.547579:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[18644:0626/140645.547741:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[18644:0626/140645.547865:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[18644:0626/140645.547970:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[18644:0626/140645.548152:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[18538:0626/140645.571907:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[18669:0626/140645.652603:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[18669:0626/140645.652776:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[18669:0626/140645.656626:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[18669:0626/140645.656780:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[18669:0626/140645.656919:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[18669:0626/140645.657126:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[18669:0626/140645.657396:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[18538:0626/140645.672915:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[18601:0626/140645.740591:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
```
|
@raboof. I encountered the same behavior. |
Today it works for me, and indeed no DMA/GPU errors |
I noticed that it starts quite reliably when I have my laptop on the "performance" power profile, while it fails to start up quite reliably on "powersave". Smells like some sort of race condition... I've also noticed that it renders pretty slowly and eats a lot of CPU -- which leads me to suspect it's not using GPU-accelerated rendering? No relevant errors on stdout/stderr though. |
Can everyone share what Wayland compsitor they are using, what GPU driver they are using, and what NixOS channel they are using (e.g. unstable or 23.05)? I'm wondering if the behavior differs based on compositor I'm on Sway, i915, nixos-unstable |
I'm using volare (99% sway, 1% funky stuff) on nixos-unstable. TBH I don't know how to tell which GPU driver I'm using - lspci shows I have an Intel controller using the i915 kernel module and an NVIDIA 3D controller using nouveau. |
Sway, radeon, nixos-unstable |
Sway, amdgpu (according to (also: I'm sure it's not related, but for completeness I should mention I have a slightly patched wlroots: see talex5/wayland-proxy-virtwl#55 (comment)) |
Sway, i915, nixos-23.05 |
Just experienced this reliably independent of the power profile on a new machine (which is however identical to the other one...). Running it under strace to try and work out the problem doesn't reproduce it, so +1 on my previous suspicion that it's a race condition 🙄 |
It does seem that making a sway window rule to float Element (and also removing the It also seems Element isn't the only app affected by this, so it's definitely an upstream Electron issue (it's always an Electron issue...) |
Just to confirm this, I'm on sway, amdgpu, nixos-unstable (645ff62 to be exact) and also had this issue. Using |
Should we change the package to use 24 by default, although that diverges from what upstream uses https://github.com/vector-im/element-desktop/blob/4e69dda7d23028c141dc05467ce4a67f2781dcdb/package.json#L93 ? |
While using 24 might work on amdgpu, it seems to still be broken on nvidia (with sway, nixos-unstable). With
which someone else reported happening with webcord: SpacingBat3/WebCord#433. The same error was reported in this repo in April: #224332 (comment) Edit: It does seem to work with |
Experience report for 1.11.35:
stdout/stderr logs: nvidia-no-no.txt amdgpu-no-no.txt The i915 logs are identical to the amdgpu logs so there's no reason to upload those. Disclaimer: I have no idea what Note: If you're looking at this and thinking "but I don't see my compositor on the list, what do I do!?", the answer is the compositor is most likely irrelevant and all you need to focus on is the GPU driver. I only included it in the unlikely event that it does matter. |
I can confirm I can reproduce one of those combinations: Driver: Nvidia
Any other combination either results in no window or a black window. I'm on nixos unstable using the nvidia driver from However I do get horrible flicker. |
Electron 24 is specified as an override to the `element-desktop` package. See NixOS/nixpkgs#238416 (comment) for details.
I'm experiencing the same thing on river, amd and unstable. Downgrading electron to 24 allows me to use the app for now. |
Supposedly, according to the linked element-desktop issue linked higher up in this thread, Electron 26 fixes this. If anyone wants to test (It seemed racy to begin with for the last several Electron versions, though, so I wouldn't be surprised if it was just "fixed" in that it no longer occurs with the current version rather than actually fixed) |
I've changed my override to explicitly use |
Report: element package from nixpkgs master and |
FWIW, same experience here except on Hyprland instead of Sway. |
same here |
Element 1.11.51 is out using electron 27, and it still does not work on nixos with wayland. |
Presumably you mean specifically with the NVIDIA proprietary drivers? |
Correct, sorry, got lazy yesterday, let me add more detail like my previous comment. I saw that the develop branch of element-desktop is using Electron v28. So I tested with it, and it works pretty well!
...
home.packages = [
(edge.element-desktop.override {electron = pkgs.electron_28;})
];
... |
any updates on this? im having the same errors |
So over the past year the exact behavior has changed week-to-week as I update unstable and upstream packages change. Currently:
element-desktop is running fine. No flickering, no missing screen, etc. Just works |
Describe the bug
After updating to the latest element-desktop-wayland, it crashes on startup.
NIXOS_OZONE_WL=1 /nix/store/iqmzwvjhn1kqwhikifq4xy9w2gdx33l5-element-desktop-1.11.32/bin/element-desktop
worksNIXOS_OZONE_WL=1 /nix/store/2a735sj7xw7gbnq6pamwq2hd0bfajvsc-element-desktop-1.11.33/bin/element-desktop
crashesSteps To Reproduce
Just run it:
The messages displayed are the same for the working and failing versions, except for the SIGSEGV line in the failing one.
coredumpctl debug
doesn't seem helpful:Notify maintainers
@Ma27 @fadenb @mguentner @Ekleog @Ralith @dandellion @sumnerevans
Metadata
Commit 9b19034 doesn't work, while the previous commit does.
The text was updated successfully, but these errors were encountered: