Bug 464784 - Spectacle captures random images in a NVIDIA Prime offset rendering setup
Summary: Spectacle captures random images in a NVIDIA Prime offset rendering setup
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.26.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-25 07:43 UTC by Mathias Homann
Modified: 2023-02-02 13:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Homann 2023-01-25 07:43:07 UTC
SUMMARY

I'm using spectacle in a setup with the intel driver as primary, and a nvidia card through prime render offsetting. I have spectacle bound to the printscreen key. When I try capturing a screenshot of an "offloaded" openGL app (any game or the likes) spectacle sometimes (about half of the time) captures not the game but some other window that is also on screen.

STEPS TO REPRODUCE
1. Set up a laptop with intel and nvidia prime offset redering
2. run any openGL app / game
3. try catching a screenshot of the game.


OBSERVED RESULT
spectacle catches a screenshot of one of the running windows but not necessarily the one running in foreground

EXPECTED RESULT
spectacle should take a screenshot of what is on my screen, not of what other windows would look like if they were still running in the foreground

ADDITIONAL INFO


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
mathias@mio:~> inxi -G
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] driver: nvidia
    v: 525.85.05
  Device-3: Acer HD Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7 driver: X:
    loaded: intel,modesetting unloaded: nvidia dri: i965 gpu: i915
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6 Mesa 22.3.3 renderer: Mesa Intel Xe Graphics (TGL GT2)
mathias@mio:~> gamemoderun inxi -G
gamemodeauto: 
gamemodeauto: 
gamemodeauto: 
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] driver: nvidia
    v: 525.85.05
  Device-3: Acer HD Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7 driver: X:
    loaded: intel,modesetting unloaded: nvidia dri: i965 gpu: i915
    resolution: 1920x1080~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 525.85.05 renderer: NVIDIA GeForce GTX 1650
    Ti with Max-Q Design/PCIe/SSE2
mathias@mio:~> 

Operating System: openSUSE Tumbleweed 20230123
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.7-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: Prestige 14 A11SCS
System Version: REV:1.0