Skip to content

Opening detached devtools on Wayland causes a crash #48430

Closed

Description

@UndefinedOffset

Preflight Checklist

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.

Testcase Gist URL

https://gist.github.com/00417bc531b5a8f6c75af54f7ec124f1

Additional Information

No response

Activity

  1. added
    has-repro-gist
    on Oct 1, 2025
  2. moved this to 👀 Unsorted Items in 38-x-yon Oct 1, 2025
  3. nikwen commented on Oct 1, 2025

    @nikwen
    Member

    Thanks for reporting!

    Would you be able to test which (minor or patch) version of Electron broke this?

  4. UndefinedOffset commented on Oct 1, 2025

    @UndefinedOffset
    Author

    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.

  5. nikwen commented on Oct 3, 2025

    @nikwen
    Member

    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.

  6. added
    bug/regression ↩️
    on Oct 3, 2025
  7. UndefinedOffset commented on Oct 6, 2025

    @UndefinedOffset
    Author

    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 😉

  8. nikwen commented on Oct 7, 2025

    @nikwen
    Member

    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.

  9. nikwen commented on Oct 7, 2025

    @nikwen
    Member

    Question: When you open detached devtools in Google Chrome running under Wayland, does it work or does it also crash?

  10. added
    blocked/need-info ❌
    on Oct 7, 2025
  11. UndefinedOffset commented on Oct 7, 2025

    @UndefinedOffset
    Author

    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.

  12. removed
    blocked/need-info ❌
    on Oct 7, 2025
  13. Vendicated commented on Oct 7, 2025

    @Vendicated

    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

  14. axel7083 commented on Oct 8, 2025

    @axel7083

    Currently on Fedora 42, I confirm that with electron 38.2.1 our application crashes when calling openDevTools.open with Wayland.

    Using XDG_SESSION_TYPE=X11 makes it work, but this is not a future proof solution.

  15. Vendicated commented on Oct 19, 2025

    @Vendicated

    This issue seems fixed on all Electron 39 betas & alphas (but still happens on latest stable 38.3.0)

    Image
  16. self-assigned this
    on Oct 20, 2025
  17. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 38-x-yon Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

38-x-ybug 🪲bug/regression ↩️component/devtoolscrash 💥has-repro-gistplatform/linuxwayland

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions