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

XWayland failing to start/Sway 1.10 crashing on latest nixos-unstable #354210

Closed
nazarewk opened this issue Nov 7, 2024 · 3 comments
Closed

XWayland failing to start/Sway 1.10 crashing on latest nixos-unstable #354210

nazarewk opened this issue Nov 7, 2024 · 3 comments
Labels
0.kind: bug Something is broken

Comments

@nazarewk
Copy link
Member

nazarewk commented Nov 7, 2024

Describe the bug

Since yesterday after updating to latest nixos-unstable (with a large rebuild of the system):

  1. determined I cannot start any XWayland application
  2. noticed that no XWayland process is running (confirmed it is running on not-yet-upgraded laptop)
  3. once the whole Sway crashed with coredump

As additional context I'm running AMD GPU.

possibly related to #352725

Steps To Reproduce

?

Expected behavior

?

Additional context

Once got coredump and whole Sway crashed:

sway log + coredump
Nov 07 12:22:56 brys sway[10474]: 00:03:19.031 [INFO] [wlr] [xwayland/server.c:107] Starting Xwayland on :0
Nov 07 12:22:57 brys systemd-coredump[10476]: [🡕] Process 6380 (sway) of user 31893 dumped core.
                                              
                                              Module libpciaccess.so.0 without build-id.
                                              Module liblzma.so.5 without build-id.
                                              Module libxml2.so.2 without build-id.
                                              Module libncursesw.so.6 without build-id.
                                              Module libgcc_s.so.1 without build-id.
                                              Module libstdc++.so.6 without build-id.
                                              Module libxcb-dri2.so.0 without build-id.
                                              Module libdrm_intel.so.1 without build-id.
                                              Module libdrm_amdgpu.so.1 without build-id.
                                              Module libdrm_radeon.so.1 without build-id.
                                              Module libsensors.so.5 without build-id.
                                              Module libxshmfence.so.1 without build-id.
                                              Module libxcb-sync.so.1 without build-id.
                                              Module libX11-xcb.so.1 without build-id.
                                              Module libzstd.so.1 without build-id.
                                              Module libbrotlicommon.so.1 without build-id.
                                              Module libxcb-randr.so.0 without build-id.
                                              Module libGLdispatch.so.0 without build-id.
                                              Module libgraphite2.so.3 without build-id.
                                              Module libdatrie.so.1 without build-id.
                                              Module libselinux.so.1 without build-id.
                                              Module libgudev-1.0.so.0 without build-id.
                                              Module libexpat.so.1 without build-id.
                                              Module libbrotlidec.so.1 without build-id.
                                              Module libbz2.so.1 without build-id.
                                              Module libpangoft2-1.0.so.0 without build-id.
                                              Module libXdmcp.so.6 without build-id.
                                              Module libXau.so.6 without build-id.
                                              Module libxcb-errors.so.0 without build-id.
                                              Module libxcb-res.so.0 without build-id.
                                              Module libxcb-ewmh.so.2 without build-id.
                                              Module libxcb-composite.so.0 without build-id.
                                              Module libxcb-xinput.so.0 without build-id.
                                              Module libxcb-xfixes.so.0 without build-id.
                                              Module libxcb-render-util.so.0 without build-id.
                                              Module libxcb-present.so.0 without build-id.
                                              Module libxcb-dri3.so.0 without build-id.
                                              Module libliftoff.so.0 without build-id.
                                              Module libdisplay-info.so.2 without build-id.
                                              Module libseat.so.1 without build-id.
                                              Module liblcms2.so.2 without build-id.
                                              Module libvulkan.so.1 without build-id.
                                              Module libGLESv2.so.2 without build-id.
                                              Module libEGL.so.1 without build-id.
                                              Module libffi.so.8 without build-id.
                                              Module libharfbuzz.so.0 without build-id.
                                              Module libthai.so.0 without build-id.
                                              Module libfribidi.so.0 without build-id.
                                              Module libcap.so.2 without build-id.
                                              Module libwacom.so.9 without build-id.
                                              Module libmtdev.so.1 without build-id.
                                              Module libxcb-shm.so.0 without build-id.
                                              Module libxcb-render.so.0 without build-id.
                                              Module libXrender.so.1 without build-id.
                                              Module libXext.so.6 without build-id.
                                              Module libX11.so.6 without build-id.
                                              Module libfreetype.so.6 without build-id.
                                              Module libfontconfig.so.1 without build-id.
                                              Module libpng16.so.16 without build-id.
                                              Module libz.so.1 without build-id.
                                              Module libpangocairo-1.0.so.0 without build-id.
                                              Module libxcb-icccm.so.4 without build-id.
                                              Module libxcb.so.1 without build-id.
                                              Module libxkbcommon.so.0 without build-id.
                                              Module libwlroots-0.18.so without build-id.
                                              Module libpcre2-8.so.0 without build-id.
                                              Module libpango-1.0.so.0 without build-id.
                                              Module libinput.so.10 without build-id.
                                              Module libevdev.so.2 without build-id.
                                              Module libjson-c.so.5 without build-id.
                                              Module libdrm.so.2 without build-id.
                                              Module sway without build-id.
                                              Stack trace of thread 6380:
                                              #0  0x0000000000000000 n/a (n/a + 0x0)
                                              ELF object binary architecture: AMD x86-64
Nov 07 12:22:57 brys sway[10474]: Failed to dispatch Wayland display
Nov 07 12:22:57 brys sway[10474]: EGL setup failed, disabling glamor
Nov 07 12:22:57 brys sway[10474]: Failed to initialize glamor, falling back to sw
Nov 07 12:22:57 brys sway[10474]: (EE) could not connect to wayland server
Nov 07 12:22:57 brys electron[8764]: Error reading events from display: Broken pipe
Nov 07 12:22:57 brys kdn-swayrd[6452]: [2024-11-07T11:22:57Z WARN  swayr::daemon] Error while receiving events: failed to fill whole buffer
Nov 07 12:22:57 brys sway[7569]: ExceptionHandler::GenerateDump attempting to generate:
Nov 07 12:22:57 brys sway[7569]: /home/kdn/.mozilla/firefox/kdn/minidumps/0ad7826f-0348-2093-5a1e-756cc181d13c.dmp
Nov 07 12:22:57 brys sway[7569]: ExceptionHandler::GenerateDump cloned child 10508
Nov 07 12:22:57 brys sway[7569]: ExceptionHandler::SendContinueSignalToChild sent continue signal to child
Nov 07 12:22:57 brys sway[10508]: ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Nov 07 12:22:57 brys sway[9363]: 2024-11-07 12:22:57,319 [  99203]   WARN - #c.i.o.k.i.u.ActionsTreeUtil - No text in 'Profiler.CollapseAllGroups' template presentation. Showing its action-id instead
Nov 07 12:22:57 brys sway[9363]: 2024-11-07 12:22:57,319 [  99203]   WARN - #c.i.o.k.i.u.ActionsTreeUtil - No text in 'SwitchHeaderSource' template presentation. Showing its action-id instead
Nov 07 12:22:57 brys sway[9363]: 2024-11-07 12:22:57,320 [  99204]   WARN - #c.i.o.k.i.u.ActionsTreeUtil - No text in 'ActivateTerminalToolWindow' template presentation. Showing its action-id instead
Nov 07 12:22:57 brys sway[9363]: 2024-11-07 12:22:57,321 [  99205]   WARN - #c.i.o.k.i.u.ActionsTreeUtil - No text in 'InactiveStopActionPlaceholder' template presentation. Showing its action-id instead
Nov 07 12:22:57 brys sway[7569]: ExceptionHandler::GenerateDump minidump generation
Nov 07 12:22:57 brys sway[7569]: succeeded
Nov 07 12:22:57 brys sway[9167]: Exiting due to channel error.
Nov 07 12:22:57 brys sway[10276]: Exiting due to channel error.
Nov 07 12:22:57 brys sway[8361]: Exiting due to channel error.
Nov 07 12:22:57 brys sway[10383]: Exiting due to channel error.
Nov 07 12:22:57 brys sway[8258]: Exiting due to channel error.
Nov 07 12:22:57 brys sway[10124]: Exiting due to channel error.
Nov 07 12:22:57 brys sway[8462]: Exiting due to channel error.
Nov 07 12:22:57 brys sway[10049]: Exiting due to channel error.

Notify maintainers

Metadata


Add a 👍 reaction to issues you find important.

@nazarewk nazarewk added the 0.kind: bug Something is broken label Nov 7, 2024
nazarewk added a commit to nazarewk-iac/nix-configs that referenced this issue Nov 7, 2024
@nazarewk
Copy link
Member Author

nazarewk commented Nov 7, 2024

seems like removing xwayland from systemPackages fixes something.

Also I'm seeing some amdgpu errors from eglinfo -B, not sure what those mean:

_amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13)
amdgpu: amdgpu_device_initialize failed.
GBM platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.2.5
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.2.5
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.5
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.2.5
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.2.5
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.5
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.2.5
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.2.5
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.5
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.2.5
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.2.5
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.5
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.2.5
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.2.5
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Pro W6600 (radeonsi, navi23, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.5
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon RX 550 / 550 Series (radeonsi, polaris12, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.2.5
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon RX 550 / 550 Series (radeonsi, polaris12, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.2.5
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon RX 550 / 550 Series (radeonsi, polaris12, LLVM 18.1.8, DRM 3.59, 6.11.6)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.5
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #2:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.2.5
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.2.5
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 18.1.8, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.2.5
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

@nazarewk
Copy link
Member Author

nazarewk commented Nov 7, 2024

after a reboot seems like nazarewk-iac/nix-configs@a6be6dd indeed fixed the issue

@nazarewk nazarewk closed this as completed Nov 7, 2024
@sodiboo
Copy link
Contributor

sodiboo commented Nov 8, 2024

possibly related to #352725

likely unrelated, because you state that you "noticed that no XWayland process is running"; but in my issue i noticed that the Xwayland process stayed around after terminating xwayland-satellite. so when bisecting the issue, i had to include kill -9 Xwayland to not just spawn arbitrarily many Xwayland instances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants