SasView / sasview

Code for the SasView application.
BSD 3-Clause "New" or "Revised" License
52 stars 41 forks source link

Orientation Viewer doesn't clear itself on Wayland #3114

Open jamescrake-merani opened 2 months ago

jamescrake-merani commented 2 months ago

Describe the bug The orientation viewer's display is not cleared on every new frame. This means that whatever was drawn on the screen remains even when a new frame is redrawn. I have only been able to reproduce this bug on Wayland; it doesn't occur on X11 from my testing.

@krzywon as you'll recall, I raised this at the last technical meeting. I thought at the time that this was specific to Linux but it would now appear its more specifically just a Wayland issue. Because of this, I wasn't sure if I should disable this feature on Linux as discussed in the meeting. Please let me know what you think is best, and then I can create a pull request.

To Reproduce Steps to reproduce the behavior:

  1. Go to to Tools -> Orientation Viewer
  2. Try panning the camera around, or changing the parameters (basically anything that updates the state).

Screenshots This bug doesn't show up when you take a screenshot of it so I've had to take a photo from my phone instead to demonstrate the problem.

PXL_20240930_083046175

SasView version

Operating system (please complete the following information):

Additional context I tried looking this morning for a solution but unfortunately I wasn't able to. It looks like everything is being cleared correctly so I'm not sure what is happening.

lucas-wilkins commented 2 months ago

Have you run testgl2 on the same machine?

jamescrake-merani commented 2 months ago

Have you run testgl2 on the same machine?

I couldn't find a package for that on my machine so I used glmark2 instead. It all appears to be working fine on my machine.