Bug 70801 - XShmGetImage returns junk/garbage in between monitors
Summary: XShmGetImage returns junk/garbage in between monitors
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 15:19 UTC by Nicholas Wilson
Modified: 2018-12-13 22:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Screenshot of fullscreen on multimonitor system (437.72 KB, text/plain)
2013-10-23 15:19 UTC, Nicholas Wilson
no flags Details

Description Nicholas Wilson 2013-10-23 15:19:51 UTC
Created attachment 88039 [details]
Screenshot of fullscreen on multimonitor system

In xserver 1.14.3, we've observed that on multimonitor systems, we are passed garbage when grabbing the pixels that are not on any monitor.

This does not appear to be a bug in our application - it can be easily reproduced by taking a screenshot of the whole screen using GIMP on Ubuntu 13.10 or Fedora 19. It seems to be a problem with the upstream server given the problem exists on both Ubuntu and Fedora.

The issue is not present in 1.13.3, and is present in both Fedora 19 (xserver 1.14.3) and Ubuntu 13.10 (xserver 1.14.3 with huge patchset).

What we are doing: get the geometry of the root window (XGetGeometry), create a pixbuf of the same size (XShmCreateImage/XShmAttach). Then we try and grab the whole thing using XShmGetImage.

On multimonitor systems, the off-monitor portions are filling in the pixbuf with garbage (or garbled portions of other sections of the screen). That is, the monitors themselves are captured fine, but if the second monitor is smaller than the first, we used to get a black box in the dead space, where now we're getting garbage.

I attempted to track down the source of the regression - a stab in the dark might be f21cc327a56e3b453cf0dba04457223d61c27ea6?
Comment 1 GitLab Migration User 2018-12-13 22:29:21 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/449.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.