Bogus use of wl_surface scaling leads to compositor crash
Submitted by Link Mauve
Assigned to Wayland bug list
Description
Created attachment 118797 patch for glfw making it reproduce the crash
This happens on both Weston 1.9.0 and latest git as of the 10th of October.
In the attached patch against GLFW, wl_egl_window_resize is incorrectly called in maybeChangeScale(), which leads to a client lockup and potentially a compositor crash (I haven’t been able to reproduce it each time, but in a good 50%).
Steps to reproduce:
- Clone, patch and install GLFW master (https://github.com/glfw/glfw)
- Get Citra (http://citra-emu.org/) or probably any other GLFW program
- Start Weston with two mixed-scaling outputs
- Run the GLFW program, and move it between the different outputs.
Attachment 118797, "patch for glfw making it reproduce the crash":
glfw-hidpi-bad.patch