You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opening detached devtools on Wayland causes a crash #48430
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
38.2.0
What operating system(s) are you using?
Ubuntu
Operating System Version
Ubuntu 24.04
What arch are you using?
x64
Last Known Working Electron version
38.0.0-alpha.3 (broken in 38.0.0-alpha.4)
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
Dev tools should open in it's own window when running win.webContents.openDevTools({ mode: 'detach' }).
Actual Behavior
Electron running under Wayland completely crashes when win.webContents.openDevTools({ mode: 'detach' }) is called or the dev tools are already set to open detached based on user settings. Note: it does work as expected when running under X11.
Based on a quick test just now seems to have started with Electron 38.0.0, if I use --ozone-platform=wayland --enable-features=UseOzonePlatform in older than Electron 38.0.0 it works fine.
Would you be able to also go through the alpha/beta/nightly versions of v38 to find which one broke it? (Enable nightlies in the Electron Fiddle settings. Then you can easily go through them.)
This will allow us to find the commit that broke it.
Looks like it broke in 38.0.0-alpha.4 (though the flags --ozone-platform=wayland --enable-features=UseOzonePlatform are needed) prior to that release it works fine though the title bar is styled incorrectly.
Also confirming 38.2.1 does not fix the issue just to save a hop 😉
Doesn't seem to, it seems to work as expected using Chrome 141 when using the flags. As a hunch I also tested Electron 39.0.0-beta.1 and it crashes when using the flags.
I can confirm that this issue happens in Electron 38.2.1 but works fine in Chromium 140.0.7339.207, which is pretty close to the chromium version electron uses. Both running through Wayland, confirmed via xprop. I'm on Fedora Linux
Activity
nikwen commentedon Oct 1, 2025
Thanks for reporting!
Would you be able to test which (minor or patch) version of Electron broke this?
UndefinedOffset commentedon Oct 1, 2025
Based on a quick test just now seems to have started with Electron 38.0.0, if I use
--ozone-platform=wayland --enable-features=UseOzonePlatformin older than Electron 38.0.0 it works fine.nikwen commentedon Oct 3, 2025
Thank you!
Would you be able to also go through the alpha/beta/nightly versions of v38 to find which one broke it? (Enable nightlies in the Electron Fiddle settings. Then you can easily go through them.)
This will allow us to find the commit that broke it.
UndefinedOffset commentedon Oct 6, 2025
Looks like it broke in 38.0.0-alpha.4 (though the flags
--ozone-platform=wayland --enable-features=UseOzonePlatformare needed) prior to that release it works fine though the title bar is styled incorrectly.Also confirming 38.2.1 does not fix the issue just to save a hop 😉
nikwen commentedon Oct 7, 2025
Thank you so much!
Commit range: v38.0.0-alpha.3...v38.0.0-alpha.4
Unfortunately, I'd guess that this was probably caused by one of the two Chromium upgrades.
nikwen commentedon Oct 7, 2025
Question: When you open detached devtools in Google Chrome running under Wayland, does it work or does it also crash?
UndefinedOffset commentedon Oct 7, 2025
Doesn't seem to, it seems to work as expected using Chrome 141 when using the flags. As a hunch I also tested Electron 39.0.0-beta.1 and it crashes when using the flags.
Vendicated commentedon Oct 7, 2025
I can confirm that this issue happens in
Electron 38.2.1but works fine inChromium 140.0.7339.207, which is pretty close to the chromium version electron uses. Both running through Wayland, confirmed via xprop. I'm on Fedora Linuxaxel7083 commentedon Oct 8, 2025
Currently on Fedora 42, I confirm that with electron 38.2.1 our application crashes when calling
openDevTools.openwith Wayland.Vendicated commentedon Oct 19, 2025
This issue seems fixed on all Electron 39 betas & alphas (but still happens on latest stable 38.3.0)