chjj / compton

A compositor for X11.
Other
2.24k stars 501 forks source link

SIGUSR1 when adding vsync method totally freezes desktop #446

Open tomjakubowski opened 6 years ago

tomjakubowski commented 6 years ago

Platform: Arch Linux, amd64

GPU, drivers, and screen setup: Intel HD Graphics 5500, Mesa 17.2.0, libva-intel-driver 1.8.3, modesetting xf86 driver

Compton version: v0.1_beta2.5 from Arch repo

Compton configuration:

backend = "glx";
paint-on-overlay = true;
#vsync = "opengl-mswc";
glx-no-rebind-pixmap = true;

Steps of reproduction

  1. Run compton -b with config above.
  2. Uncomment the #vsync line to enable opengl-mswc swap method.
  3. pkill -USR1 compton

Expected behavior

I'd expect compton to either not freeze when enabling vsync with an "on the fly" re-init by SIGUSR1, or failing that ignore the new vsync option (and perhaps print an error message advising the user of this) if freezing is unavoidable.

Current Behavior & Other details

X appears to freeze, i.e. nothing new is drawn. Note that it's still possible to switch to a console and kill compton to fix things. Also, starting compton from that config works as expected.

tomjakubowski commented 6 years ago

I've noticed a similar issue when enabling xrender-sync via SIGUSR1.

the-swank commented 6 years ago

freezing is caused by a combination of these options: --backend glx --paint-on-overlay