Bug 510423

Summary: [qt 6.10] Part of canvas stops rendering after moving Krita to another monitor, GL canvas resize safe assert triggered
Product: [Applications] krita Reporter: Ming Chuan <ming>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ming Chuan 2025-10-09 12:44:46 UTC
SUMMARY

This is likely a qt 6.10 regression. I tried appimage built with wayland color management support and cannot repro there. Need to investigate further to be 100% sure.

This is probably not a wayland specific issue. If running krita under XWayland and moving to another monitor, it just completely freezes (without safe assert).

STEPS TO REPRODUCE
1. Open a file.
2. Move krita window you your second monitor. My second monitor is rotated, unsure if it matters. To be more exact, it's probably X server or compositor need to ask krita window to resize?
3. `SAFE ASSERT (krita): "QSize(viewportWidth, viewportHeight) == coordinatesConverter()->viewportDevicePixelSize()" in file krita/libs/ui/opengl/KisOpenGLCanvasRenderer.cpp, line 355` printed in terminal.
4. Part of the canvas stops rendering

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS

Qt Version: 6.10

ADDITIONAL INFORMATION
Comment 1 Ming Chuan 2025-11-10 05:33:42 UTC
Hmm I noticed that I can't reproduce this issue anymore, likely fixed by a recent commit