Skip to content

[Bug]: Crash when opened under Wayland #37531

Closed

Description

@yagarea

Electron Version

22.0.3

What operating system are you using?

Other Linux

Operating System Version

6.2.2-arch1-1

What arch are you using?

x64

Last Known Working Electron version

?

Expected Behavior

start without crashing

Actual Behavior

/home/john/.config/Element exists: yes
/home/john/.config/Riot exists: no
No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
Resetting the UI components after locale change
[2710:0308/104609.256916:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is egl, ANGLE is
fish: Job 1, 'element-desktop' terminated by signal SIGSEGV (Address boundary error)

Testcase Gist URL

No response

Additional Information

This is happening since I have added

--enable-features=WaylandWindowDecorations
--ozone-platform-hint=auto

to ~/.config/electron-flags.conf.

I am using sway on wayland.

Activity

  1. added
    blocked/need-repro
    on Mar 8, 2023
  2. github-actions commented on Mar 8, 2023

    @github-actions
    Contributor

    Hello @yagarea. Thanks for reporting this and helping to make Electron better!

    Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

    Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

    Now adding the blocked/need-repro label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

  3. changed the title [-][Bug]: [/-] [+][Bug]: Crash when opening app running under Wayland[/+] on Mar 8, 2023
  4. removed
    blocked/need-repro
    on Mar 9, 2023
  5. added
    blocked/need-repro
    on Mar 9, 2023
  6. deleted a comment from github-actions on Mar 9, 2023
  7. removed
    blocked/need-repro
    on Mar 10, 2023
  8. added
    blocked/need-info ❌
    on Mar 13, 2023
  9. ckerr commented on Mar 14, 2023

    @ckerr
    Member

    This appears to be a crash in Element Desktop which is an Electron wrapper for Element Web.

    @yagarea if this can be reproduced with standalone Electron, e.g. if just running electron on its own with the same flags, please attach a crash report from that repro. Alternately, if this requires Element Desktop in order to crash, then please close this ticket and report the issue to the Element maintainers at https://github.com/vector-im/element-web/issues. Thank you!

  10. hrdl-github commented on Mar 17, 2023

    @hrdl-github

    Running /usr/lib/electron/electron --disable-dev-mode --ozone-platform=wayland /usr/lib/element/app.asar (element-desktop 1.11.20-1 from the Arch Linux community repository) reliably gives me the following:

    stack trace
    #0  0x00007fbd0a76cba8 in __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:833
    833		LOAD_ONE_SET((%rsi), PAGE_SIZE * 3, %VMM(12), %VMM(13), %VMM(14), %VMM(15))
    [Current thread is 1 (Thread 0x7fbcfb7f01c0 (LWP 1558931))]
    (gdb) bt
    #0  0x00007fbd0a76cba8 in __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:833
    vector-im/element-web#1  0x0000561b8d93e8f3 in content::StoragePartitionConfig::StoragePartitionConfig(content::StoragePartitionConfig const&) ()
    vector-im/element-web#2  0x0000561b8d08831d in content::BrowserContext::GetStoragePartition(content::SiteInstance*, bool) ()
    vector-im/element-web#3  0x0000561b8d264c1b in content::HostZoomMap::GetZoomLevel(content::WebContents*) ()
    vector-im/element-web#4  0x0000561b8d694a10 in content::WebContentsImpl::GetPendingPageZoomLevel() ()
    vector-im/element-web#5  0x0000561b8d552097 in content::RenderWidgetHostImpl::GetVisualProperties() ()
    vector-im/element-web#6  0x0000561b8d5527c8 in content::RenderWidgetHostImpl::SynchronizeVisualProperties(bool, bool) ()
    vector-im/element-web#7  0x0000561b8d568e29 in content::RenderWidgetHostViewAura::SynchronizeVisualProperties(cc::DeadlinePolicy const&, absl::optional<viz::LocalSurfaceId> const&) ()
    vector-im/element-web#8  0x0000561b8d568803 in content::RenderWidgetHostViewAura::SetSize(gfx::Size const&) ()
    vector-im/element-web#9  0x0000561b8d56c154 in content::RenderWidgetHostViewAura::OnBoundsChanged(gfx::Rect const&, gfx::Rect const&) ()
    vector-im/element-web#10 0x0000561b8f25617c in aura::Window::OnLayerBoundsChanged(gfx::Rect const&, ui::PropertyChangeReason) ()
    vector-im/element-web#11 0x0000561b8f36c1c2 in ui::Layer::SetBoundsFromAnimation(gfx::Rect const&, ui::PropertyChangeReason) ()
    vector-im/element-web#12 0x0000561b8f37ea6e in ui::LayerAnimator::SetBounds(gfx::Rect const&) ()
    vector-im/element-web#13 0x0000561b8f2528e9 in aura::Window::SetBounds(gfx::Rect const&) ()
    vector-im/element-web#14 0x0000561b8d5687c8 in content::RenderWidgetHostViewAura::SetSize(gfx::Size const&) ()
    vector-im/element-web#15 0x0000561b8d6a80bf in content::WebContentsViewAura::OnBoundsChanged(gfx::Rect const&, gfx::Rect const&) ()
    vector-im/element-web#16 0x0000561b8f25617c in aura::Window::OnLayerBoundsChanged(gfx::Rect const&, ui::PropertyChangeReason) ()
    vector-im/element-web#17 0x0000561b8f36c1c2 in ui::Layer::SetBoundsFromAnimation(gfx::Rect const&, ui::PropertyChangeReason) ()
    vector-im/element-web#18 0x0000561b8f37ea6e in ui::LayerAnimator::SetBounds(gfx::Rect const&) ()
    vector-im/element-web#19 0x0000561b8f2528e9 in aura::Window::SetBounds(gfx::Rect const&) ()
    vector-im/element-web#20 0x0000561b91bc325e in views::NativeViewHostAura::ShowWidget(int, int, int, int, int, int) ()
    vector-im/element-web#21 0x0000561b91bc1d8e in views::NativeViewHost::Layout() ()
    vector-im/element-web#22 0x0000561b91b443c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#23 0x0000561b91bc0929 in views::WebView::OnBoundsChanged(gfx::Rect const&) ()
    vector-im/element-web#24 0x0000561b91b4432a in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#25 0x0000561b8b03b578 in electron::InspectableWebContentsViewViews::Layout() ()
    vector-im/element-web#26 0x0000561b91b443c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#27 0x0000561b8b040c27 in electron::RootView::Layout() ()
    vector-im/element-web#28 0x0000561b91b443c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#29 0x0000561b91b3e280 in views::LayoutManagerBase::ApplyLayout(views::ProposedLayout const&) ()
    vector-im/element-web#30 0x0000561b91b3e121 in views::LayoutManagerBase::LayoutImpl() ()
    vector-im/element-web#31 0x0000561b91b3de88 in views::LayoutManagerBase::Layout(views::View*) ()
    vector-im/element-web#32 0x0000561b91b47756 in views::View::Layout() ()
    vector-im/element-web#33 0x0000561b91b443c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#34 0x0000561b91b76a21 in views::NonClientFrameView::Layout() ()
    vector-im/element-web#35 0x0000561b91b443c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#36 0x0000561b91b7791c in views::NonClientView::Layout() ()
    vector-im/element-web#37 0x0000561b91b443c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#38 0x0000561b91b50bb0 in views::View::DefaultFillLayout::Layout(views::View*) ()
    vector-im/element-web#39 0x0000561b91b47756 in views::View::Layout() ()
    vector-im/element-web#40 0x0000561b91b443c2 in views::View::SetBoundsRect(gfx::Rect const&) ()
    vector-im/element-web#41 0x0000561b91b450c2 in views::View::SetSize(gfx::Size const&) ()
    vector-im/element-web#42 0x0000561b91b617c5 in views::Widget::OnNativeWidgetSizeChanged(gfx::Size const&) ()
    vector-im/element-web#43 0x0000561b91b93045 in non-virtual thunk to views::DesktopNativeWidgetAura::OnHostResized(aura::WindowTreeHost*) ()
    vector-im/element-web#44 0x0000561b8f27eee8 in aura::WindowTreeHost::OnHostResizedInPixels(gfx::Size const&) ()
    vector-im/element-web#45 0x0000561b8f35b237 in aura::WindowTreeHostPlatform::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ()
    vector-im/element-web#46 0x0000561b8b025acf in electron::ElectronDesktopWindowTreeHostLinux::OnBoundsChanged(ui::PlatformWindowDelegate::BoundsChange const&) ()
    vector-im/element-web#47 0x0000561b8b76df7c in ui::WaylandWindow::UpdateBoundsInDIP(gfx::Rect const&) ()
    vector-im/element-web#48 0x0000561b8b770027 in ui::WaylandWindow::ProcessPendingBoundsDip(unsigned int) ()
    vector-im/element-web#49 0x0000561b8b76b50f in ui::WaylandToplevelWindow::HandleSurfaceConfigure(unsigned int) ()
    vector-im/element-web#50 0x0000561b8b77d2c5 in ui::ZXDGSurfaceV6WrapperImpl::Configure(void*, zxdg_surface_v6*, unsigned int) ()
    vector-im/element-web#51 0x00007fbd0b4314f6 in ffi_call_unix64 () at ../src/x86/unix64.S:104
    vector-im/element-web#52 0x00007fbd0b42df5e in ffi_call_int (cif=cif@entry=0x7ffd26fcc990, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
    vector-im/element-web#53 0x00007fbd0b430b73 in ffi_call (cif=cif@entry=0x7ffd26fcc990, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffd26fcca60) at ../src/x86/ffi64.c:710
    vector-im/element-web#54 0x00007fbcfc29b645 in wl_closure_invoke (closure=closure@entry=0xc74013ec700, target=<optimized out>, target@entry=0xc7401219180, opcode=opcode@entry=0, data=<optimized out>, flags=1)
        at ../wayland-1.21.0/src/connection.c:1025
    vector-im/element-web#55 0x00007fbcfc29be03 in dispatch_event (display=0xc7400349800, queue=<optimized out>) at ../wayland-1.21.0/src/wayland-client.c:1595
    vector-im/element-web#56 0x00007fbcfc29bffc in dispatch_queue (queue=0xc7400c80820, display=0xc7400349800) at ../wayland-1.21.0/src/wayland-client.c:1741
    vector-im/element-web#57 wl_display_dispatch_queue_pending (display=0xc7400349800, queue=0xc7400c80820) at ../wayland-1.21.0/src/wayland-client.c:1983
    --Type <RET> for more, q to quit, c to continue without paging--
    vector-im/element-web#58 0x0000561b8b755647 in ui::WaylandEventWatcher::WlDisplayDispatchPendingQueue() ()
    vector-im/element-web#59 0x0000561b8b78a07e in ui::(anonymous namespace)::WatchSourceDispatch(_GSource*, int (*)(void*), void*) ()
    vector-im/element-web#60 0x00007fbd0f077afb in g_main_dispatch (context=0xc7400235080) at ../glib/glib/gmain.c:3460
    vector-im/element-web#61 g_main_context_dispatch (context=0xc7400235080) at ../glib/glib/gmain.c:4200
    vector-im/element-web#62 0x00007fbd0f0d45d9 in g_main_context_iterate.constprop.0 (context=0xc7400235080, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
    vector-im/element-web#63 0x00007fbd0f075382 in g_main_context_iteration (context=0xc7400235080, may_block=1) at ../glib/glib/gmain.c:4343
    vector-im/element-web#64 0x0000561b8e0afa0c in base::MessagePumpGlib::Run(base::MessagePump::Delegate*) ()
    vector-im/element-web#65 0x0000561b8e105c3e in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, base::TimeDelta) ()
    vector-im/element-web#66 0x0000561b8e0cce9a in base::RunLoop::Run(base::Location const&) ()
    vector-im/element-web#67 0x0000561b8d0a242e in content::BrowserMainLoop::RunMainMessageLoop() ()
    vector-im/element-web#68 0x0000561b8d0a45c3 in content::BrowserMainRunnerImpl::Run() ()
    vector-im/element-web#69 0x0000561b8d09f84e in content::BrowserMain(content::MainFunctionParams) ()
    vector-im/element-web#70 0x0000561b8b157813 in content::RunBrowserProcessMain(content::MainFunctionParams, content::ContentMainDelegate*) ()
    vector-im/element-web#71 0x0000561b8b158cda in content::ContentMainRunnerImpl::RunBrowser(content::MainFunctionParams, bool) ()
    vector-im/element-web#72 0x0000561b8b158a8a in content::ContentMainRunnerImpl::Run() ()
    vector-im/element-web#73 0x0000561b8b155742 in content::RunContentProcess(content::ContentMainParams, content::ContentMainRunner*) ()
    vector-im/element-web#74 0x0000561b8b155e95 in content::ContentMain(content::ContentMainParams) ()
    vector-im/element-web#75 0x0000561b8ae7c983 in main ()
    

    This does not happen without the --ozone-platform=wayland option. Since signal-desktop updated to element 22 I've been experiencing frequent crashes, especially at startup when no TTY is attached. I do not have a good stack trace though. Also relevant: signalapp/Signal-Desktop#6247 and signalapp/Signal-Desktop#6260

  11. TheComputerGuy96 commented on Apr 3, 2023

    @TheComputerGuy96

    Electron v23.2.1 seems to work fine with Discord on Wayland 🐸

  12. changed the title [-][Bug]: Crash when opening app running under Wayland[/-] [+][Bug]: Crash when opened under Wayland[/+] on Apr 6, 2023
  13. nidico commented on Apr 16, 2023

    @nidico

    I filed a similar issue in vector-im/element-desktop#873 which only occurs under certain circumstances (mixed-scaled dual monitor setup). Note that it behaves a bit differently in element-nightly (electron 24.0.0) and element 1.11.29 (electron 23.1.3).

    This might be related. (Or not.)

  14. darwin67 commented on Apr 28, 2023

    @darwin67

    This might be a Chromium issue. I encounter similar issues with Chrome, Brave on Arch for a couple weeks at this point, and found this when I was searching for the error.

    libwayland: xdg_wm_base@15: error 4: wrong configure serial: 15881
    

    I also use Wayland/Sway/Arch, with multiple monitors in different scales.

  15. 9 remaining items

  16. pm4rcin commented on Sep 14, 2023

    @pm4rcin

    I've tested Tutanota and Element flatpak which both have updated to Electron 26 and the crashes are gone entirely. :)

  17. dbrgn commented on Sep 18, 2023

    @dbrgn

    I've tested Tutanota and Element flatpak which both have updated to Electron 26 and the crashes are gone entirely. :)

    Are sure they haven't simply disabled Wayland? If I start the Element 1.11.42 Flatpak, it runs under XWayland 🙂

  18. pm4rcin commented on Sep 18, 2023

    @pm4rcin

    I've tested Tutanota and Element flatpak which both have updated to Electron 26 and the crashes are gone entirely. :)

    Are sure they haven't simply disabled Wayland? If I start the Element 1.11.42 Flatpak, it runs under XWayland 🙂

    I have disabled X11 socket, ipc and even fallback-X11 to make sure.

  19. dbrgn commented on Sep 18, 2023

    @dbrgn

    A bit offtopic, but: A simple way to test, if a window uses Xorg or Wayland, is to launch xeyes and move the cursor over the window. If the eyes move as well, it's Xwayland. If they don't, it's native Wayland.

    Would be great if this would be fixed with Electron 26. Unfortunately Electron 26 causes some other crashes, so I currently cannot test whether it fixes the issue for my application or not.

  20. RubberDuckShobe commented on Sep 18, 2023

    @RubberDuckShobe

    Having pretty much the same issue on Electron 27 and 26, it works on 27 when using -disable-gpu-sandbox though.
    Electron 26 only works on my end when I use --disable-sandbox

    EDIT: Here's the actual error log

    [11389:0918/182856.367560:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
    [11389:0918/182856.367656:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
    [11389:0918/182856.367843:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
    [11389:0918/182856.367907:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
    [11389:0918/182856.367953:ERROR:shared_image_factory.cc(910)] CreateSharedImage: could not create backing.
    [11389:0918/182856.368019:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
    [11389:0918/182856.368111:ERROR:gpu_service_impl.cc(1085)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
    [11394:0918/182856.372318:ERROR:command_buffer_proxy_impl.cc(129)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
    [11351:0918/182856.377866:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=8704
    [11417:0918/182856.549475:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
    [11417:0918/182856.549560:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
    [11417:0918/182856.549786:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
    [11417:0918/182856.549843:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
    [11417:0918/182856.549888:ERROR:shared_image_factory.cc(910)] CreateSharedImage: could not create backing.
    [11417:0918/182856.549942:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
    [11417:0918/182856.550039:ERROR:gpu_service_impl.cc(1085)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
    [11394:0918/182856.556522:ERROR:command_buffer_proxy_impl.cc(321)] GPU state invalid after WaitForGetOffsetInRange.
    [11351:0918/182856.560685:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=8704
    [11430:0918/182856.709501:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
    [11430:0918/182856.709635:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
    [11430:0918/182856.709830:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
    [11430:0918/182856.709907:ERROR:gbm_pixmap_wayland.cc(82)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
    [11430:0918/182856.709961:ERROR:shared_image_factory.cc(910)] CreateSharedImage: could not create backing.
    [11430:0918/182856.710015:ERROR:shared_image_factory.cc(758)] DestroySharedImage: Could not find shared image mailbox
    [11430:0918/182856.710099:ERROR:gpu_service_impl.cc(1085)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
    [11394:0918/182856.714314:ERROR:command_buffer_proxy_impl.cc(129)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
    [11351:0918/182856.718918:ERROR:gpu_process_host.cc(990)] GPU process exited unexpectedly: exit_code=8704
    [11394:0918/182856.941772:ERROR:command_buffer_proxy_impl.cc(129)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
    
  21. pm4rcin commented on Sep 18, 2023

    @pm4rcin

    Electron 26 only works on my end when I use --disable-sandbox

    That explains why flatpak apps work fine on Electron 26 as they always use that option if I'm not mistaken.

  22. trinitronx commented on Sep 19, 2023

    @trinitronx

    A bit offtopic, but: A simple way to test, if a window uses Xorg or Wayland, is to launch xeyes and move the cursor over the window. If the eyes move as well, it's Xwayland. If they don't, it's native Wayland.

    Another side-note: Also, one can use xlsclients to list any applications currently running under Xwayland 😉

  23. threema-danilo commented on Dec 18, 2023

    @threema-danilo

    In our application, this issue seems fixed starting with Electron 28. (Version 27 still had some rendering issues, and sometimes segfaults when exiting. I did not observe this yet with 28.)

  24. RubberDuckShobe commented on Dec 18, 2023

    @RubberDuckShobe
  25. ckerr commented on Dec 18, 2023

    @ckerr
    Member

    Closing as fixed as per previous two comments. @threema-danilo, @RubberDuckShobe, thanks for the info!

  26. Nantris commented on May 8, 2024

    @Nantris
    Contributor

    I see this issue in 30.x even without Wayland.

  27. trinitronx commented on Jun 22, 2024

    @trinitronx

    I can confirm these crashes are no longer happening on my system running ArchLinux packages:

    • electron29 version: 29.4.3-1
    • code version: 1.90.0-1
    EXPAND for platform / package version info

    Version: 1.90.0
    Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
    Date: 2024-06-07T07:53:34.265Z
    Electron: 29.4.3
    ElectronBuildId: undefined
    Chromium: 122.0.6261.156
    Node.js: 20.9.0
    V8: 12.2.281.27-electron.0
    OS: Linux x64 6.9.3-1-MANJARO
    
    CPUs Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4399)
    GPU Status 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off
    Load (avg) 3, 3, 2
    Memory (System) 62.68GB (11.43GB free)
    Process Argv --ozone-platform=wayland --password-store=gnome-libsecret --verbose --enable-proposed-api GitHub.vscode-pull-request-github --enable-proposed-api 'command line flag' --enable-proposed-api ms-python.python
    Screen Reader no
    VM 0%
    GPU Device-1: Intel HD Graphics 630 driver: i915 v: kernel
    Device-2: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] driver: amdgpu v: kernel
    GFX API: EGL v: 1.5 drivers: iris,radeonsi,swrast
    platforms: wayland,x11,surfaceless,device
    API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.1-arch10.1
    renderer: AMD Radeon RX 7900 XTX (radeonsi navi31 LLVM 17.0.6 DRM 3.57 6.9.3-1-MANJARO)
    API: Vulkan v: 1.3.279 drivers: radv,intel surfaces: xcb,xlib,wayland

    ~/.config/code-flags.conf:

    --ozone-platform=wayland
    --password-store=gnome-libsecret
    

    ~/.config/electron29-flags.conf:

    --force-dark-mode
    

    ~/.vscode/argv.json

    {
            "enable-proposed-api": [
                    "GitHub.vscode-pull-request-github",
                    "command line flag",
                    "ms-python.python"
            ],
             "enable-crash-reporter": true,
             "crash-reporter-id": "XXXXXXXX-XXXX-...XXXX"
    }
    

  28. Nantris commented on Jun 22, 2024

    @Nantris
    Contributor

    Also confirming this is resolved (Wayland and otherwise.)

  29. trinitronx commented on Jun 22, 2024

    @trinitronx

    Note: I have been running VSCode + Electron 29 on Wayland (Sway), with "window.titleBarStyle": "custom".

    All the crashes on window creation seem to be fixed, even when I set "window.titleBarStyle": "native".

    However, when running with "window.titleBarStyle": "native" there still appear to be some crashes having to do with the menu dialogs in some edge-cases.

    For example: Once today I saw that menu dropdown dialogs stopped appearing when clicking on the top row menu buttons (e.g. "File | Edit | Selection | View | ..."). Just as I was trying to figure out what was going on, Electron crashed (sorry I have not rebuilt & re-installed Electron with debug symbols for v29 yet). I believe that this ones is a separate crash and therefore would need a separate issue to track it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/need-info ❌bug 🪲

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions