Bug 103447 - [SKL] GPU hang when using xfce4-screenshooter
Summary: [SKL] GPU hang when using xfce4-screenshooter
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 17.2
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-25 10:29 UTC by Paul-Antoine Arras
Modified: 2018-02-06 21:21 UTC (History)
1 user (show)

See Also:
i915 platform: SKL
i915 features:


Attachments
/sys/class/drm/card0/error (45.26 KB, text/plain)
2017-10-25 10:30 UTC, Paul-Antoine Arras
Details
/var/log/kern.log (1.88 KB, text/plain)
2017-10-25 10:35 UTC, Paul-Antoine Arras
Details

Description Paul-Antoine Arras 2017-10-25 10:29:05 UTC
Bug description:
When I use XFCE screenshooter to select a screen area to capture, the whole GUI freezes (except the mouse that continues to move but click is inoperative) and X restarts.
The relevant diagnostic from dmesg is:
[drm] GPU HANG: ecode 9:0:0x85dffffb, in Xorg [1092], reason: Hang on rcs0, action: reset

System environment:
-- chipset (`lspci -v`): 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06) (prog-if 00 [VGA controller])
-- system architecture: x86_64
-- xf86-video-intel: xserver-xorg-video-intel: 2:2.99.917+git20161206-1
-- xserver: xserver-xorg-core: 2:1.19.5-1
-- mesa: 17.2.2-1
-- libdrm: 2.4.84-2
-- kernel: 4.13.0-1-amd64
-- Linux distribution: Debian Buster
-- Machine or mobo model: Dell Precision 7710

Reproducing steps:
Open xfce4-shooter, in "Region to capture" choose "Select a region", then click OK. The cursor turns into a small cross that can be dragged and dropped. Doing so will freeze the whole X session.
Comment 1 Paul-Antoine Arras 2017-10-25 10:30:54 UTC
Created attachment 135033 [details]
/sys/class/drm/card0/error
Comment 2 Paul-Antoine Arras 2017-10-25 10:35:31 UTC
Created attachment 135034 [details]
/var/log/kern.log
Comment 3 Elizabeth 2017-12-08 22:58:57 UTC
Hello Paul-Antoine, 
With latest mesa release 17.3 is there any changes?
Thank you.
Comment 4 Elizabeth 2017-12-21 21:20:23 UTC
Hello again, 
I tried to reproduce on a SKL with xcfe and debian sid up-to-date installed, xfc4-screenshot works fine, and I can't reproduce any hang or crash.

kernel version             : 4.14.0-1-amd64
Mesa driver                : OpenGL version string: 3.0 Mesa 17.3.0
os version                 : Debian GNU/Linux unstable (sid) x86_64
kernel driver              : i915
Xorg -version 		   : 2:1.19.5-1
platform                   : Skylake
motherboard model          : Inspiron15-7568
cpu information            : Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
gpu card                   : Intel Corporation HD Graphics 520 (rev 07) (prog-if 00 [VGA controller])
Comment 5 Paul-Antoine Arras 2017-12-27 17:53:55 UTC
Hello Elizabeth,
Thank you for the update and for trying to reproduce the bug on your side. I don't have the incriminated config at hand for now. I'll let you know as soon as I get it back.
Comment 6 Andriy Khulap 2018-01-23 14:42:36 UTC
I'm unable to reproduce this issue on:

Intel(R) Core(TM) i5-6440HQ CPU @ 2.60GHz
Intel(R) HD Graphics 530 (Skylake GT2)  (0x191b)
Ubuntu 16.04 LTS (Kernel 4.4.0-109-generic)
X.Org X Server 1.18.4
Mesa git master (4584c4ef049a)
xfce4-screenshooter 1.8.2

Also tried Mesa 17.1.10 (834d6c60db26) and Mesa 17.3.1 (4f5e85e9e97d) with the same result.

Only one strange thing found: when moving cursor slowly during area selection, all is fine. But when moving fast, some inputs are dropped and cursor becomes "detached" from the selected square. Moving again aligns selection to cursor. But anyway this not result in any error.
Comment 7 Andriy Khulap 2018-02-02 13:00:47 UTC
Tested again on Debian buster, can't reproduce.

- Intel(R) Core(TM) i5-6440HQ CPU @ 2.60GHz
- Intel(R) HD Graphics 530 (Skylake GT2)  (0x191b)

- Kernel  4.14.0-3-amd64 #1 SMP Debian 4.14.13-1 (2018-01-14) x86_64 GNU/Linux
- Mesa                 17.3.3
- xfce4                4.12.4
- libdrm               2.4.89-1
- xserver-xorg-core    2:1.19.6-1
- xf86-video-intel     2:2.99.917+git20171229-1
- xfce4-screenshooter  1.8.2-2
Comment 8 Paul-Antoine Arras 2018-02-04 13:47:24 UTC
Sorry for the late reply. I am now using Mesa 17.3.3 and it works correctly again.
Thanks for your help!
Comment 9 Elizabeth 2018-02-06 21:21:43 UTC
Awesome! Thanks for the update Paul.


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.