Summary: | xorg-server-1.19.3 - XShmGetImage() improperly crops returned image (regression from 1.18.4) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Andrew Church <achurch+xorg> | ||||||
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | medium | CC: | aeikum, ajax, alberts.muktupavels, antoine, ao2 | ||||||
Version: | unspecified | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
URL: | https://bugzilla.gnome.org/show_bug.cgi?id=788556 | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Andrew Church
2017-07-09 17:54:44 UTC
Could be due to https://cgit.freedesktop.org/xorg/xserver/commit/?id=4926845a57fa8b53e18ea7d3434bf5539e9b7782 . Reverting https://cgit.freedesktop.org/xorg/xserver/commit/?id=4926845a57fa8b53e18ea7d3434bf5539e9b7782 appears to fix the bug. https://bugzilla.gnome.org/show_bug.cgi?id=788556 This bug have bug788556.c that can be used to reproduce this problem. Window id is hard-coded and should be updated when testing different windows. It seems that problem can be reproduced with GTK+ client-side decorated windows. I tested mostly with gedit. test1.png is always correct, but test2.png has different results and mostly shows problem. Mentioned commit is in server-1.18-branch branch and I was unable to reproduce this problem with 1.18.4-1ubuntu6.1 that is available in Ubuntu 16.10. After mentioned commit Xext has two commits that might cause problem: - https://cgit.freedesktop.org/xorg/xserver/commit/Xext?h=server-1.19-branch&id=92b3cd32066aa5befa67a408cc079cd2ce4c077e - https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=6c6f09aac7f1d1367a042087b7681c7fdf1d1e0f I am able to reproduce this problem on 17.04 and 17.10. So for testing I used ubuntu version 1.19.3-1ubuntu1.1 that is available in 17.04. I used pbuilder to build two versions - "original" and version with 6c6f09aa reverted. Then I tried to install both versions multiple times, after install rebooted and tried to reproduce problem with mentioned program. With "original" version I was able to reproduce problem and not with version that had revert. Hi, I confirm the issue with xserver-xorg 1.9.3 and the radeon driver, it would be great to have this fixed; the issue affects several screen-shotting programs. Find below another example which produces similar results to the test program Alberts provided: gst-launch-1.0 ximagesrc xid=0x040000f8 num-buffers=1 ! videoconvert ! pngenc ! filesink location=out.png Where xid refers to a program with Client-Side Decorations. Would writing to the xorg-devel mailing list help to bring more attention to this issue? Thanks, Antonio Thanks for the report, should be fixed in Git master: commit 885636b7d42b3c7b151fc386d358184db004ce45 Author: Nikolay Martynov <mar.kolya@gmail.com> Date: Wed Sep 13 23:23:13 2017 -0400 XShmGetImage: fix censoring Created attachment 142172 [details]
s
Created attachment 142173 [details]
up
The content of attachment 142172 [details] has been deleted for the following reason:
spam
The content of attachment 142173 [details] has been deleted for the following reason:
spam
|
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.