Bug 415153 - Graphic glitches when taking a screenshot with the rectangle mode
Summary: Graphic glitches when taking a screenshot with the rectangle mode
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 19.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-13 20:33 UTC by postix
Modified: 2020-10-04 13:19 UTC (History)
4 users (show)

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


Attachments
Screenshot: The taskbar above Konquerer got lost while taking the screenshot. (234.49 KB, image/png)
2019-12-13 20:33 UTC, postix
Details
Screenshot, with with even more glitches. (345.71 KB, image/png)
2019-12-15 10:51 UTC, postix
Details
Screenshot with severe glitches. (784.53 KB, image/jpeg)
2019-12-23 20:16 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2019-12-13 20:33:34 UTC
Created attachment 124478 [details]
Screenshot: The taskbar above Konquerer got lost while taking the screenshot.

SUMMARY

Sometimes the taskbar vanishes when I start taking a screenshot with the "rectangular area" mode by pressing the print key.

STEPS TO REPRODUCE
1. Set rectangular mode by default (not sure if this is necessary).
2. Take a screenshot by pressing print.

OBSERVED RESULT

If you are (un)lucky in rare cases the taskbar has vanished until the region is chosen and the enter key is pressed to finally take the screenshot, like in the attachment.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Scaling: 1.5
Comment 1 Nate Graham 2019-12-14 09:33:30 UTC
Weird, I've never seen this.
Comment 2 postix 2019-12-15 10:51:48 UTC
Created attachment 124498 [details]
Screenshot, with with even more glitches.

(In reply to Nate Graham from comment #1)
> Weird, I've never seen this.

Indeed, and it happened again!
However this time also the menu of the KDE Helpcenter I opened shows a glitch: 
Where the titlebar of the KDE Helpcenter should be, there's now the one from Okular, which I have opened.
Secondly, the menu item text are cut horizontally.

There seems to be something very weird going on with the rendering under special circumstances as it does not happen always.


For debugging purposes, here's also my graphics setup:
Graphics:  Device-1: Intel HD Graphics 620 driver: i915 v: kernel 
           Display: x11 server: X.Org 1.20.6 driver: intel unloaded: modesetting resolution: 2560x1440~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.6 Mesa 19.3.0
Comment 3 postix 2019-12-15 10:55:05 UTC
Addition to the above post: Okular was on the same virtual desktop as the KDE Helpcenter. However, other apps like Systemsettings and Dolphin were also opened on the same virtual desktop.
Comment 4 David Redondo 2019-12-16 09:52:32 UTC
Could it be related to 385885?
Comment 5 David Redondo 2019-12-16 09:52:42 UTC
(In reply to David Redondo from comment #4)
> Could it be related to #385885?
Comment 6 postix 2019-12-23 20:16:49 UTC
Created attachment 124678 [details]
Screenshot with severe glitches.

The bug does not seem directly related to the task bar but rather to the rendering of the windows or grabbing the content from the graphics buffer.

The windows in the screenshot I took yesterday are completely torn apart.
Comment 7 postix 2020-10-04 13:19:37 UTC
I believe this had to do with the xf86-video-intel driver I had used before. 

This driver also caused massive flickering on screen recordings and resulted in paintings of background window parts in the foreground in the recordings.

Removing it and using the modesetting driver resolved these issues.