Bug 504760

Summary: Mirrored Displays with different display-resolutions causes crash
Product: [Applications] Spectacle Reporter: bluekingmuch <bluekingmuch>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description bluekingmuch@gmail.com 2025-05-25 09:08:55 UTC
SUMMARY
when pressing "print" button on keyboard, nothing happens. 
This behaviour is only happening, if a display is mirrored, and the origin display (2560x1440) has a lower resolution as the display (3840x2160) which mirrors the origin display.

when disabling the mirror, everything works again.

STEPS TO REPRODUCE
1. have one display mirrored another with a different display resolution 
2. try to take a screenshot
3. crash


OBSERVED RESULT
crash

EXPECTED RESULT
opening spectacle

SOFTWARE/OS VERSIONS

Kubuntu 25.04
Linux/KDE Plasma: 6.3.4
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
output of shell when trying to open spectacle from it:
bluek@kubuntu-pc:~$ spectacle
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
kpipewire_vaapi_logging: VAAPI: Mesa Gallium driver 25.0.3-1ubuntu2 for AMD Radeon RX 6800 (radeonsi, navi21, LLVM 19.1.7, DRM 3.61, 6.14.0-15-generic) in use for device "/dev/dri/renderD128"
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.10.0) ./modules/core/src/matrix.cpp:808: error: (-215:Assertion failed) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function 'Mat'

Aborted (core dumped)
Comment 1 Noah Davis 2025-05-26 11:37:53 UTC

*** This bug has been marked as a duplicate of bug 503682 ***