Skip to content

Closes with "Lost connection to Wayland compositor" when moving the mouse while loading huge directories

Version information

  • thunar 4.20.2 (Xfce 4.20)
  • GTK version 3.24.49
  • sway version 1.10.1
  • Arch Linux

Steps to reproduce

  1. Have a directory with a huge amount of items inside (I can reproduce this on a folder with >10k images)
  2. Navigate to it with Thunar in a Wayland session, using Icon View
  3. While the directory is loading, move the mouse around

Current behavior

Thunar closes roughly 3 seconds after opening the directory. When opening Thunar on the terminal, the logs say either "Lost connection to Wayland compositor" or "Gdk-Message: Error reading events from display: Broken pipe"

Expected outcome

Thunar doesn't close and the directory loads

Additional information

  • When leaving the mouse completely still, Thunar loads the directory correctly
  • When running Thunar on Xwayland (env -u WAYLAND_DISPLAY Thunar), Thunar loads the directory correctly
  • When using List View or Compact View, Thunar loads the directory correctly
  • Thunar doesn't seem to crash, it just closes with a status code of 1 and leaves no backtrace
Edited by Renan Guilherme