calcam icon indicating copy to clipboard operation
calcam copied to clipboard

Black / flickering views with VTK 9 + PyQt6 on some systems

Open ssilburn opened this issue 3 years ago • 3 comments

Using VTK 9 & PyQt6 on Windows causes black / flackery graphics. Doesn't seem to happen with either older PyQt or older VTK.

ssilburn avatar Jul 17 '22 21:07 ssilburn

After some investigation:

(1) I can't find a straightforward way to fix this, and (2) It seems to be specific to Intel integrated graphics - can't reproduce on an AMD card or other platform than Windows. So for now I'll update the documentation with this known issue.

ssilburn avatar Jul 18 '22 19:07 ssilburn

Same problem on a MacBook Pro (13-inch, M1, 2020) mac running macOS 10.4 and python 3.9.13

perek42 avatar Jul 28 '22 10:07 perek42

Due to this and some other issues with PyQt6 + VTK9 (causes complete failure of the GUI to open on my Ubuntu machine!), plus because PyQt5 is still widely easily available - for now I've just removed support for PyQt6 from Calcam. In the current state of compatibility with VTK it's causing many more problems than it's worth to be compatible with the latest version.

ssilburn avatar Nov 28 '22 01:11 ssilburn

Testing this again now, with Calcam 2.15.dev0, PyQt6.8.2 and VTKs 9.2.6 and 9.41 - it looks like these libraries have learned to play nicely with each other and the problem is gone, at least on the Intel integrated graphics machine I had it on before. So unless there are more problems found I propose to re-enable PyQt6 support and make PyQt6 the default requirement for calcam 2.15.

ssilburn avatar Mar 17 '25 11:03 ssilburn

Closing this due to PyQt6 now being the default in v2.15

ssilburn avatar May 08 '25 13:05 ssilburn