From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102633] Running ConeStepMap in wine freezes the system Date: Sat, 09 Sep 2017 09:45:28 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1926173174==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id A86A36E12D for ; Sat, 9 Sep 2017 09:45:28 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1926173174== Content-Type: multipart/alternative; boundary="15049503280.72C9C1ed.4135"; charset="UTF-8" --15049503280.72C9C1ed.4135 Date: Sat, 9 Sep 2017 09:45:28 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102633 Bug ID: 102633 Summary: Running ConeStepMap in wine freezes the system Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: dark.shadow4@web.de QA Contact: dri-devel@lists.freedesktop.org Created attachment 134106 --> https://bugs.freedesktop.org/attachment.cgi?id=3D134106&action=3Dedit Apitrace that will freeze the system ConeStepMap is a small OpenGL demo, but when run under wine with mesa it freezes the system. I created and attached an apitrace to reproduce, simply replaying it freezes my system and forces me to make a hard-reset. System the bug was tested on: - Arch Linux 64bit - Linux 4.12.10, AMDGPU driver - Mesa 17.3.0-devel (git-b33b85cdd4) / 17.1.8 - Radeon R9 285 --=20 You are receiving this mail because: You are the assignee for the bug.= --15049503280.72C9C1ed.4135 Date: Sat, 9 Sep 2017 09:45:28 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 102633
Summary Running ConeStepMap in wine freezes the system
Product Mesa
Version git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter dark.shadow4@web.de
QA Contact dri-devel@lists.freedesktop.org

Created att=
achment 134106 [details]
Apitrace that will freeze the system

ConeStepMap is a small OpenGL demo, but when run under wine with mesa it
freezes the system. I created and attached an apitrace to reproduce, simply
replaying it freezes my system and forces me to make a hard-reset.


System the bug was tested on:
- Arch Linux 64bit
- Linux 4.12.10, AMDGPU driver
- Mesa 17.3.0-devel (git-b33b85cdd4) / 17.1.8
- Radeon R9 285


You are receiving this mail because:
  • You are the assignee for the bug.
= --15049503280.72C9C1ed.4135-- --===============1926173174== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1926173174==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102633] Running ConeStepMap in wine freezes the system Date: Fri, 15 Sep 2017 10:39:16 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1135375281==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5A6DB6EB5F for ; Fri, 15 Sep 2017 10:39:16 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1135375281== Content-Type: multipart/alternative; boundary="15054719561.a4a66a.6306"; charset="UTF-8" --15054719561.a4a66a.6306 Date: Fri, 15 Sep 2017 10:39:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102633 --- Comment #1 from Samuel Pitoiset --- Created attachment 134252 --> https://bugs.freedesktop.org/attachment.cgi?id=3D134252&action=3Dedit hacky patch --=20 You are receiving this mail because: You are the assignee for the bug.= --15054719561.a4a66a.6306 Date: Fri, 15 Sep 2017 10:39:16 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated


You are receiving this mail because:
  • You are the assignee for the bug.
= --15054719561.a4a66a.6306-- --===============1135375281== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1135375281==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102633] Running ConeStepMap in wine freezes the system Date: Fri, 15 Sep 2017 10:41:11 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0575817180==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B94E6EB91 for ; Fri, 15 Sep 2017 10:41:11 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0575817180== Content-Type: multipart/alternative; boundary="15054720710.7ddCee.6787"; charset="UTF-8" --15054720710.7ddCee.6787 Date: Fri, 15 Sep 2017 10:41:11 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102633 Samuel Pitoiset changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |NOTOURBUG Status|NEW |RESOLVED --- Comment #2 from Samuel Pitoiset --- Thanks for reporting this. I'm able to reproduce the hang with the following environment: OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.= 19.0 / 4.13.0-rc5-ARCH+, LLVM 6.0.0) OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.0-devel (git-8e8c7c6703) No VM faults are reported, but it appears that one shader is stucked because some uniform variables are undefined and it loops indefinitely. When replaying the trace, I get a bunch of errors like: Mesa: User error: GL_INVALID_OPERATION in glUniform(location=3D18) 4867496: message: major api error 3: GL_INVALID_OPERATION in glUniform(location=3D18) 4867496 @0 glUniform1ivARB(location =3D 18, count =3D 1, value =3D &0) 4867496: warning: glGetError(glUniform1ivARB) =3D GL_INVALID_OPERATION Basically, the app is trying to update a uniform variable with an invalid location. After looking at the trace, the app assumes that uniform locations are fixe= d, which is wrong (except if they are explicitly set inside the shader). Inste= ad, new locations are generated after each successful re-link, which is why GetUniformLocation exists (and the app never calls it). The GLSL compiler doesn't allocate locations for built-in uniform variables like gl_ModelViewMatrix which explains the above errors. The attached (hack= y) patch fixes the hang but don't except this to be upstream, the application = is buggy. Though, it would be doable to add new drirc option like glsl_force_fixed_locations but I personally don't want to introduce new hac= ks in Mesa. Closing. --=20 You are receiving this mail because: You are the assignee for the bug.= --15054720710.7ddCee.6787 Date: Fri, 15 Sep 2017 10:41:11 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Samuel Pitoiset changed bug 10263= 3
What Removed Added
Resolution --- NOTOURBUG
Status NEW RESOLVED

Commen= t # 2 on bug 10263= 3 from Samuel Pitoiset
Thanks for reporting this.

I'm able to reproduce the hang with the following environment:

OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.=
19.0
/ 4.13.0-rc5-ARCH+, LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.0-devel
(git-8e8c7c6703)

No VM faults are reported, but it appears that one shader is stucked because
some uniform variables are undefined and it loops indefinitely.

When replaying the trace, I get a bunch of errors like:

Mesa: User error: GL_INVALID_OPERATION in glUniform(location=3D18)
4867496: message: major api error 3: GL_INVALID_OPERATION in
glUniform(location=3D18)
4867496 @0 glUniform1ivARB(location =3D 18, count =3D 1, value =3D &=
;0)
4867496: warning: glGetError(glUniform1ivARB) =3D GL_INVALID_OPERATION

Basically, the app is trying to update a uniform variable with an invalid
location.

After looking at the trace, the app assumes that uniform locations are fixe=
d,
which is wrong (except if they are explicitly set inside the shader). Inste=
ad,
new locations are generated after each successful re-link, which is why
GetUniformLocation exists (and the app never calls it).

The GLSL compiler doesn't allocate locations for built-in uniform variables
like gl_ModelViewMatrix which explains the above errors. The attached (hack=
y)
patch fixes the hang but don't except this to be upstream, the application =
is
buggy.

Though, it would be doable to add new drirc option like
glsl_force_fixed_locations but I personally don't want to introduce new hac=
ks
in Mesa.

Closing.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15054720710.7ddCee.6787-- --===============0575817180== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0575817180==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102633] Running ConeStepMap in wine freezes the system Date: Fri, 15 Sep 2017 14:48:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0293501171==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 231E56EBA3 for ; Fri, 15 Sep 2017 14:48:04 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0293501171== Content-Type: multipart/alternative; boundary="15054868840.4dC8607.16073"; charset="UTF-8" --15054868840.4dC8607.16073 Date: Fri, 15 Sep 2017 14:48:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102633 --- Comment #3 from Fabian Maurer --- Thanks for looking into this. I can't really agree with the resolution though, it not working is one thin= g, but it freezing the whole system is another. Can't something be done to at least avoid the latter? --=20 You are receiving this mail because: You are the assignee for the bug.= --15054868840.4dC8607.16073 Date: Fri, 15 Sep 2017 14:48:04 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 3 on bug 10263= 3 from Fabian Maurer
Thanks for looking into this.
I can't really agree with the resolution though, it not working is one thin=
g,
but it freezing the whole system is another. Can't something be done to at
least avoid the latter?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15054868840.4dC8607.16073-- --===============0293501171== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0293501171==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102633] Running ConeStepMap in wine freezes the system Date: Fri, 15 Sep 2017 15:47:20 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0415896922==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id EC01A6EC3B for ; Fri, 15 Sep 2017 15:47:19 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0415896922== Content-Type: multipart/alternative; boundary="15054904390.a220.31213"; charset="UTF-8" --15054904390.a220.31213 Date: Fri, 15 Sep 2017 15:47:19 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102633 --- Comment #4 from Samuel Pitoiset --- Fix the app would be much better. :) --=20 You are receiving this mail because: You are the assignee for the bug.= --15054904390.a220.31213 Date: Fri, 15 Sep 2017 15:47:19 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 4 on bug 10263= 3 from Samuel Pitoiset
Fix the app would be much better. :)


You are receiving this mail because:
  • You are the assignee for the bug.
= --15054904390.a220.31213-- --===============0415896922== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0415896922==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 102633] Running ConeStepMap in wine freezes the system Date: Fri, 15 Sep 2017 16:12:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0725136515==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 588036E195 for ; Fri, 15 Sep 2017 16:12:34 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0725136515== Content-Type: multipart/alternative; boundary="15054919540.c4487.4629"; charset="UTF-8" --15054919540.c4487.4629 Date: Fri, 15 Sep 2017 16:12:34 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D102633 --- Comment #5 from Fabian Maurer --- Sure thing, but a driver shouldn't allow to bring down the whole system, ri= ght? --=20 You are receiving this mail because: You are the assignee for the bug.= --15054919540.c4487.4629 Date: Fri, 15 Sep 2017 16:12:34 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 5 on bug 10263= 3 from Fabian Maurer
Sure thing, but a driver shouldn't allow to bring down the who=
le system, right?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15054919540.c4487.4629-- --===============0725136515== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0725136515==--