Skip to content
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

Firefox crashes on --expose-wayland. #808

Open
hungrymonkey opened this issue Mar 1, 2023 · 4 comments
Open

Firefox crashes on --expose-wayland. #808

hungrymonkey opened this issue Mar 1, 2023 · 4 comments

Comments

@hungrymonkey
Copy link

Firefox crashes with wayland enabled. The shell keeps printing out GDK_IS_SEAT (seat)' failed. I wonder if its related the wlroots issue below.

swaywm/wlroots#103

  1. Build wayland with the master branch
  2. Run MOZ_ENABLE_WAYLAND=1 gamescope --expose-wayland -- firefox

Observed result:
Firefox crashes

Expected results:
Firefox runs

Screenshot from 2023-03-01 12-57-21

Version: master branch a3dc37f

lsb_release -a
LSB Version: n/a
Distributor ID: openSUSE
Description: openSUSE Tumbleweed
Release: 20230227
Codename: n/a

 MOZ_ENABLE_WAYLAND=1 MOZ_LOG=1 ./build/src/gamescope --expose-wayland --  firefox
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [backend/headless/backend.c:68] Creating headless backend
vulkan: selecting physical device 'AMD Custom GPU 0405 (RADV VANGOGH)': queue family 1
vulkan: physical device supports DRM format modifiers
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   NV12 (0x3231564E)
vulkan:   AB4H (0x48344241)
vulkan:   AB48 (0x38344241)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:16] Starting headless backend
wlserver: [xwayland/server.c:108] Starting Xwayland on :2
(WW) Option "-listen" for file descriptors is deprecated
Please use "-listenfd" instead.
(WW) Option "-listen" for file descriptors is deprecated
Please use "-listenfd" instead.
wlserver: [types/wlr_compositor.c:681] New wlr_surface 0x233dc90 (res 0x24e8200)
wlserver: [xwayland/server.c:273] Xserver is ready
[23490, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23490): Gdk-CRITICAL **: 12:57:15.269: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:15.478: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:15.789: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:15.792: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:15.796: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:16.287: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:16.287: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:16.290: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:16.290: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:16.363: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
[Parent 23535, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /home/abuild/rpmbuild/BUILD/firefox-109.0.1/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23535): Gdk-CRITICAL **: 12:57:16.363: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
wlserver: [types/wlr_compositor.c:681] New wlr_surface 0x1a1dfc0 (res 0x1f26110)
wlserver: [types/wlr_compositor.c:681] New wlr_surface 0x2302750 (res 0x1f26230)
wlserver: [types/xdg_shell/wlr_xdg_surface.c:387] new xdg_surface 0x1ff26c0 (res 0x18b99a0)
ExceptionHandler::GenerateDump cloned child 23640
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

(crashreporter:23641): Gdk-CRITICAL **: 12:57:16.729: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(crashreporter:23641): Gdk-CRITICAL **: 12:57:16.803: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(crashreporter:23641): Gdk-CRITICAL **: 12:57:16.844: gdk_seat_get_pointer: assertion 'GDK_IS_SEAT (seat)' failed

(crashreporter:23641): Gdk-CRITICAL **: 12:57:16.844: gdk_device_get_position_double: assertion 'GDK_IS_DEVICE (device)' failed

(crashreporter:23641): Gdk-CRITICAL **: 12:57:16.845: gdk_seat_get_pointer: assertion 'GDK_IS_SEAT (seat)' failed

(crashreporter:23641): Gdk-CRITICAL **: 12:57:16.845: gdk_device_get_position_double: assertion 'GDK_IS_DEVICE (device)' failed
wlserver: [types/wlr_compositor.c:681] New wlr_surface 0x22b89a0 (res 0x1f11d80)
wlserver: [types/xdg_shell/wlr_xdg_surface.c:387] new xdg_surface 0x1b73810 (res 0x2048220)
xwm: NO CURSOR IMPL XDG
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 708, clipping.
>                   X11 cannot support keycodes above 255.
Errors from xkbcomp are not fatal to the X server
^Cgamescope: received kill signal, terminating!
@sonic2kk
Copy link

sonic2kk commented Mar 4, 2023

This also happens with some games (Terraria and Factorio were tested) when using SDL_VIDEODRIVER=wayland gamescope --expose-wayland -f -- %command%.

@hungrymonkey
Copy link
Author

gamescope --expose-wayland -- env WAYLAND_DISPLAY=wayland-0 ./firefox-bin

Name Firefox
Version 121.0b3
Build ID 20231124091512

Run this command in gnome wayland. Context menu works by reading gnome socket.

@hungrymonkey
Copy link
Author

amescope --expose-wayland --  ./firefox-bin
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [backend/headless/backend.c:68] Creating headless backend
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
vulkan: selecting physical device 'AMD Custom GPU 0405 (RADV VANGOGH)': queue family 1 (general queue family 0)
vulkan: physical device supports DRM format modifiers
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   AB4H (0x48344241)
vulkan:   XB4H (0x48344258)
vulkan:   AB48 (0x38344241)
vulkan:   XB48 (0x38344258)
vulkan:   AB30 (0x30334241)
vulkan:   XB30 (0x30334258)
vulkan:   AR30 (0x30335241)
vulkan:   XR30 (0x30335258)
vulkan: Creating Gamescope nested swapchain with format 64 and colorspace 0
wlserver: Running compositor on wayland display 'gamescope-0'
wlserver: [backend/headless/backend.c:16] Starting headless backend
wlserver: [xwayland/server.c:108] Starting Xwayland on :2
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
wlserver: [types/wlr_compositor.c:681] New wlr_surface 0x55d7a1728130 (res 0x55d7a125a2a0)
wlserver: [xwayland/server.c:273] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 67
vulkan: Creating Gamescope nested swapchain with format 64 and colorspace 0
pipewire: renegotiating stream params (size: 1280x720)
[15648, Main Thread] WARNING: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed: 'glib warning', file /builds/worker/checkouts/gecko/toolkit/xre/nsSigHandlers.cpp:187

(firefox-aurora:15648): Gdk-CRITICAL **: 09:41:27.094: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed
ExceptionHandler::GenerateDump cloned child 15660
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
ExceptionHandler::SendContinueSignalToChild sent continue signal to child

(crashreporter:15667): Gdk-CRITICAL **: 09:41:27.300: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

(crashreporter:15667): Gdk-CRITICAL **: 09:41:27.381: gdk_seat_get_keyboard: assertion 'GDK_IS_SEAT (seat)' failed

GTK seat still crashes firefox 121

@hungrymonkey
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants