After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690518 - screenshots of a window are corrupted
screenshots of a window are corrupted
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
3.22.x
Other Linux
: Normal major
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 692520 694992 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-12-19 19:20 UTC by patrick
Modified: 2021-07-05 14:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
corrupted screenshot (88.33 KB, image/png)
2012-12-19 19:20 UTC, patrick
Details
Window screenshot with corruption (51.60 KB, image/png)
2013-01-25 14:16 UTC, Age Bosma (IRC: Forage)
Details
Alt+print window screenshot (454.32 KB, image/png)
2013-03-25 12:46 UTC, Andrea Mayer
Details
sample screenshot march 19 2105 (51.13 KB, image/png)
2015-03-19 06:45 UTC, patrick
Details
Screenshot corruption under Gnome 3.22.2 (94.90 KB, image/png)
2017-12-30 17:10 UTC, merhalak
Details
Can't reproduce after reboot (149.45 KB, image/png)
2018-01-02 18:06 UTC, merhalak
Details

Description patrick 2012-12-19 19:20:44 UTC
Created attachment 231924 [details]
corrupted screenshot

When the system is running for a while, then from some point on the Alt+Print Screen screenshots are corrupted. It happens when pressing Alt+Print Screen or when issuing the command gone-screenshot -w from the command line.

The screenshots of both the whole screen and a selected area are still fine.

Attached you will find an example of such a corrupted screenshot.
Comment 1 André Klapper 2012-12-20 14:38:45 UTC
Please provide ahrdware and graphics driver information.
Comment 2 patrick 2012-12-20 14:56:14 UTC
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 
Driver; NVIDIA 304.64

Please let me know if you need specific command output.
Comment 3 Age Bosma (IRC: Forage) 2013-01-25 14:16:05 UTC
Created attachment 234406 [details]
Window screenshot with corruption
Comment 4 Age Bosma (IRC: Forage) 2013-01-25 14:16:12 UTC
I've got issues with taking a screenshot of a window (ALT+PRINTSCREEEN) as well. Bug #692520 is another ticket with the same.

The difference is the type of corruption. Large parts of the window end up being transparent in my case. Attached you'll find a screenshot of Nautilus e.g. Taking a partial screenshot with SHIFT+PRINTSCREEN and selecting an area does work as expected.

Details:
- Ubuntu 12.10 (x64) with GNOME 3.6
- AMD Radeon HD 6950 with Catalyst 13.1 drivers

Let me know if you need any more info.
Comment 5 Alexander van Loon 2013-01-25 14:21:53 UTC
*** Bug 692520 has been marked as a duplicate of this bug. ***
Comment 6 Alexander van Loon 2013-01-25 16:36:19 UTC
André Klapper, I don't understand why you changed the status to UNCONFIRMED? Including me, three people are affected by this bug, shouldn't the status be changed to CONFIRMED instead?

I'm using Fedora 18 with an AMD Radeon HD7850 and Catalyst 12.11, by the way.
Comment 7 André Klapper 2013-01-25 16:49:00 UTC
It was NEEDINFO before; It's not clear whether this is a bug in GNOME code.
Comment 8 patrick 2013-01-25 17:15:50 UTC
It might of course be driver related. But it is also striking that this problem only occurs when using alt+PrtScr and not in the other cases. For both nvidia and ati. I think this indicates that Gnome has some special trick for the alt+PrtScr handling instead of the others resulting in this behavior.
Comment 9 Alexander van Loon 2013-01-27 13:49:34 UTC
I just tested with Fedora 18 on my laptop which has Intel graphics, but can't reproduce this bug.
Comment 10 Serge Gavrilov 2013-01-28 18:44:20 UTC
I have the same problem as the original reporter. The video card is also nvidia,
the bug is reproducible with any driver from 3xx series. 

The same problem is also discussed here 
http://www.nvnews.net/vbulletin/showthread.php?p=2570902
Comment 11 Serge Gavrilov 2013-01-28 18:48:02 UTC
I use gentoo ~amd64 and gnome 3.6
Comment 12 Dimitri 2013-03-20 23:32:10 UTC
Confirming on Mageia 3 (Cauldron), NVIDIA 310.40, gnome-screenshot 3.6.1, gnome-shell 3.6.2, X11 server 1.13.1.901. I simply get a black rectangle instead of screenshot (with correct dimensions though). Whole-screen and area screenshots work correctly.
Comment 13 Andrea Mayer 2013-03-25 12:45:01 UTC
Have this problem too. Fedora 18 (64 bit), NVIDIA GeForce GTX 570 with "nvidia" driver 304.64, gnome-screenshot 3.6.1
Comment 14 Andrea Mayer 2013-03-25 12:46:12 UTC
Created attachment 239760 [details]
Alt+print window screenshot
Comment 15 Matthias Clasen 2013-05-06 10:55:27 UTC
*** Bug 694992 has been marked as a duplicate of this bug. ***
Comment 16 Marco Scannadinari 2013-05-06 18:07:52 UTC
Also with this problem - Arch with gnome 3.8 and catalyst drivers, but with xorg 1.13
Comment 17 André Costa 2013-05-08 00:05:24 UTC
Same here, Fedora 18 x86_64, Nvidia proprietary driver 319.17. Very annoying having to take a screenshot of the whole screen and use GIMP to crop to a specific window, every time.
Comment 18 Marco Scannadinari 2013-05-08 15:27:51 UTC
BTW if anyone wants a temporary fix, [Shift] + [PrtScrn] will allow you to select a custom area to take a screenshot of :)
Comment 19 Cosimo Cecchi 2013-05-08 18:46:44 UTC
Screenshots are taken by the Shell since 3.6. This is probably either a bug in cogl or in the drivers. Reassigning to gnome-shell for further triaging.
Comment 20 André Costa 2013-05-12 00:54:03 UTC
(In reply to comment #18)
> BTW if anyone wants a temporary fix, [Shift] + [PrtScrn] will allow you to
> select a custom area to take a screenshot of :)

THANK YOU =) it's *much* better than having to use gimp after every screenshot.

It's weird that both this and full screen screenshots work, and only window screenshots fail. I'm glad Cosimo reassigned this bug for further triaging.
Comment 21 André Costa 2013-07-04 15:38:00 UTC
Just a quick note: bug still exists on GNOME 3.8 (tested on Fedora 19).
Comment 22 André Costa 2013-08-21 02:01:52 UTC
Apparently, this was specific to the Nvidia driver, and has been fixed by 319.49:

"Fixed a bug that resulted in corrupt texels when a previously empty texture image was specified with glXBindTexImageEXT. In GNOME 3, this caused gnome-screenshot to produce garbled window screenshots."

http://www.nvidia.com/object/linux-display-amd64-319.49-driver.html

Haven't tested it myself because RPMFusion didn't catch it yet for F19, but it looks promising ;-)
Comment 23 Age Bosma (IRC: Forage) 2013-08-21 13:28:56 UTC
Do note that systems with ATI Catalyst drivers are also experiencing this issue. If the fix mentioned above fixes it for NVIDIA drivers, it might as well be an ATI driver issue.
Comment 24 Florian Müllner 2015-03-18 23:37:38 UTC
At least one driver has been fixed, so has this been seen recently?
Comment 25 patrick 2015-03-19 06:45:00 UTC
Created attachment 299787 [details]
sample screenshot march 19 2105

Updated my system and took a screenshot with Alt+PrintScreen, problem persists.
Comment 26 Alexander van Loon 2015-03-19 09:21:15 UTC
On Fedora 21 with NVIDIA driver version 346.47 the bug no longer occurs.
Comment 27 Age Bosma (IRC: Forage) 2015-03-19 17:09:28 UTC
I'm still experiencing the issue on Ubuntu GNOME 14.10 with GNOME 3.14 and ATI Catalyst 14.12.
Comment 28 merhalak 2017-12-30 17:10:24 UTC
Created attachment 366112 [details]
Screenshot corruption under Gnome 3.22.2

Half of a screenshot is always corrupted
Comment 29 merhalak 2017-12-30 17:12:48 UTC
(In reply to merhalak from comment #28)
> Created attachment 366112 [details]
> Screenshot corruption under Gnome 3.22.2
> 
> Half of a screenshot is always corrupted

add information:

Debian 9.
Intel HD Graphics (Core i7-4770).
Gnome 3.22.2.

Extensions enabled: Topicons Plus & Alternatetab.

The right half of screenshot (Alt+PrintScreen) is cropped always (white space).
Comment 30 merhalak 2018-01-02 14:58:40 UTC
(In reply to merhalak from comment #29)
> (In reply to merhalak from comment #28)
> > Created attachment 366112 [details]
> > Screenshot corruption under Gnome 3.22.2
> > 
> > Half of a screenshot is always corrupted
> 
> add information:
> 
> Debian 9.
> Intel HD Graphics (Core i7-4770).
> Gnome 3.22.2.
> 
> Extensions enabled: Topicons Plus & Alternatetab.
> 
> The right half of screenshot (Alt+PrintScreen) is cropped always (white
> space).

Can't reproduce after:
apt-get update && apt-get upgrade && poweroff
Comment 31 merhalak 2018-01-02 18:06:14 UTC
Created attachment 366210 [details]
Can't reproduce after reboot

Add attachment to "can't reproduce".

It's strange, but the bug disappeared.
Comment 32 GNOME Infrastructure Team 2021-07-05 14:41:41 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.