From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91480] Dead Island: Crash loading Act 3 possible shader issue Date: Mon, 27 Jul 2015 21:25:30 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0959773993==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B22306E1DA for ; Mon, 27 Jul 2015 14:25:30 -0700 (PDT) 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 --===============0959773993== Content-Type: multipart/alternative; boundary="1438032330.24520.13401"; charset="UTF-8" --1438032330.24520.13401 Date: Mon, 27 Jul 2015 21:25:30 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91480 Bug ID: 91480 Summary: Dead Island: Crash loading Act 3 possible shader issue Product: Mesa Version: 10.6 Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: sa@whiz.se QA Contact: dri-devel@lists.freedesktop.org Created attachment 117408 --> https://bugs.freedesktop.org/attachment.cgi?id=117408&action=edit backtrace with 10.5.9 I'm getting a reproducible crash in the game Dead Island when loading act 3. Sometimes this is a straight segfault, sometimes the game pops up a warning "An unknown error occured while compiling shaders." I'm attaching a backtrace of the segfault from Mesa 10.5.9, I still get the error with 10.6.3. This might be a shader issue, I get this warning in the game log: /media/Data/perforce/di/releases/di_master_steambox/src/engine/ropengl/ROpenGL_Shader.cpp(471) : Condition: 0 && "Cannot compile GL shader!" LLOG: 0:35(12): warning: extension `GL_ATI_draw_buffers' unsupported in fragment shader 0:209(3): error: syntax error, unexpected '=' ERRR: Assertion failed! /media/Data/perforce/di/releases/di_master_steambox/src/engine/ropengl/ROpenGL_Shader.cpp(678) : Condition: 0 && "Compilation of shader failed!" ERRR: [CPShader] cannot create pixel shader LLOG: binlen: 0; format: 0; program: 48828 LLOG: FAILED TO LOAD BINARY!!! Loading from sources.TOTAL TIME: 247398.718750ms I'm attaching the failing shader. I'm failing this against r600g as that's where the backtrace points, but this is probably a general shader issue. Probably not the same as #85564 as I have played through half the game with just a few hiccups. Side note: this title might be a good candidate for some sort of cache. Loading times are more than a minute and it seems to be spending most of that time compiling. -- You are receiving this mail because: You are the assignee for the bug. --1438032330.24520.13401 Date: Mon, 27 Jul 2015 21:25:30 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 91480
Summary Dead Island: Crash loading Act 3 possible shader issue
Product Mesa
Version 10.6
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter sa@whiz.se
QA Contact dri-devel@lists.freedesktop.org

Created attachment 117408 [details]
backtrace with 10.5.9

I'm getting a reproducible crash in the game Dead Island when loading act 3.

Sometimes this is a straight segfault, sometimes the game pops up a warning "An
unknown error occured  while compiling shaders."

I'm attaching a backtrace of the segfault from Mesa 10.5.9, I still get the
error with 10.6.3.

This might be a shader issue, I get this warning in the game log:

/media/Data/perforce/di/releases/di_master_steambox/src/engine/ropengl/ROpenGL_Shader.cpp(471)
: 
Condition: 0 && "Cannot compile GL shader!"
LLOG: 0:35(12): warning: extension `GL_ATI_draw_buffers' unsupported in
fragment shader
0:209(3): error: syntax error, unexpected '='
ERRR: Assertion failed!
/media/Data/perforce/di/releases/di_master_steambox/src/engine/ropengl/ROpenGL_Shader.cpp(678)
: 
Condition: 0 && "Compilation of shader failed!"
ERRR: [CPShader] cannot create pixel shader
LLOG: binlen: 0; format: 0; program: 48828 
LLOG: FAILED TO LOAD BINARY!!! Loading from sources.TOTAL TIME: 247398.718750ms

I'm attaching the failing shader.

I'm failing this against r600g as that's where the backtrace points, but this
is probably a general shader issue.

Probably not the same as #85564 as I have played through half the game with
just a few hiccups.

Side note: this title might be a good candidate for some sort of cache. Loading
times are more than a minute and it seems to be spending most of that time
compiling.


You are receiving this mail because:
  • You are the assignee for the bug.
--1438032330.24520.13401-- --===============0959773993== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0959773993==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91480] Dead Island: Crash loading Act 3 possible shader issue Date: Mon, 27 Jul 2015 21:26:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1710557570==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id E98546E456 for ; Mon, 27 Jul 2015 14:26:00 -0700 (PDT) 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 --===============1710557570== Content-Type: multipart/alternative; boundary="1438032360.c3DE020.13495"; charset="UTF-8" --1438032360.c3DE020.13495 Date: Mon, 27 Jul 2015 21:26:00 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91480 --- Comment #1 from Sven Arvidsson --- Created attachment 117409 --> https://bugs.freedesktop.org/attachment.cgi?id=117409&action=edit failing shader -- You are receiving this mail because: You are the assignee for the bug. --1438032360.c3DE020.13495 Date: Mon, 27 Jul 2015 21:26:00 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"


You are receiving this mail because:
  • You are the assignee for the bug.
--1438032360.c3DE020.13495-- --===============1710557570== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1710557570==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91480] Dead Island: Crash loading Act 3 possible shader issue Date: Mon, 27 Jul 2015 21:37:39 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0077601282==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D4A76E4A0 for ; Mon, 27 Jul 2015 14:37:39 -0700 (PDT) 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 --===============0077601282== Content-Type: multipart/alternative; boundary="1438033059.B137b0.15275"; charset="UTF-8" --1438033059.B137b0.15275 Date: Mon, 27 Jul 2015 21:37:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91480 --- Comment #2 from Ilia Mirkin --- FWIW I can't reproduce the segfault by running through glsl_compiler. I do, however, get a 0:35(1): error: #extension directive is not allowed in the middle of a shader But that should be work-around-able with a driconf setting (or by running the game with allow_glsl_extension_directive_midshader=1 in the environment). When I move the #extension line up, no complaints (other than the unknown GL_ATI_draw_buffers thing), nothing in valgrind either. Perhaps you can capture an apitrace of the issue? -- You are receiving this mail because: You are the assignee for the bug. --1438033059.B137b0.15275 Date: Mon, 27 Jul 2015 21:37:39 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 2 on bug 91480 from
FWIW I can't reproduce the segfault by running through glsl_compiler. I do,
however, get a

0:35(1): error: #extension directive is not allowed in the middle of a shader

But that should be work-around-able with a driconf setting (or by running the
game with allow_glsl_extension_directive_midshader=1 in the environment). When
I move the #extension line up, no complaints (other than the unknown
GL_ATI_draw_buffers thing), nothing in valgrind either.

Perhaps you can capture an apitrace of the issue?


You are receiving this mail because:
  • You are the assignee for the bug.
--1438033059.B137b0.15275-- --===============0077601282== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0077601282==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91480] Dead Island: Crash loading Act 3 possible shader issue Date: Tue, 28 Jul 2015 20:29:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1208761141==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A83966EACB for ; Tue, 28 Jul 2015 13:29:08 -0700 (PDT) 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 --===============1208761141== Content-Type: multipart/alternative; boundary="1438115348.BB38ddBa0.24774"; charset="UTF-8" --1438115348.BB38ddBa0.24774 Date: Tue, 28 Jul 2015 20:29:08 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91480 --- Comment #3 from Sven Arvidsson --- (In reply to Ilia Mirkin from comment #2) > FWIW I can't reproduce the segfault by running through glsl_compiler. I do, > however, get a > > 0:35(1): error: #extension directive is not allowed in the middle of a shader > > But that should be work-around-able with a driconf setting (or by running > the game with allow_glsl_extension_directive_midshader=1 in the > environment). When I move the #extension line up, no complaints (other than > the unknown GL_ATI_draw_buffers thing), nothing in valgrind either. > > Perhaps you can capture an apitrace of the issue? Right, there's already a workaround for this game in drirc. I can't really make out much from the backtrace, but at least for some of the crashes the segfault seems to come from the game, probably because of the failing shader? You didn't get the syntax error? 0:209(3): error: syntax error, unexpected '=' I will try again with git master and try to capture a trace too, -- You are receiving this mail because: You are the assignee for the bug. --1438115348.BB38ddBa0.24774 Date: Tue, 28 Jul 2015 20:29:08 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 3 on bug 91480 from
(In reply to Ilia Mirkin from comment #2)
> FWIW I can't reproduce the segfault by running through glsl_compiler. I do,
> however, get a
> 
> 0:35(1): error: #extension directive is not allowed in the middle of a shader
> 
> But that should be work-around-able with a driconf setting (or by running
> the game with allow_glsl_extension_directive_midshader=1 in the
> environment). When I move the #extension line up, no complaints (other than
> the unknown GL_ATI_draw_buffers thing), nothing in valgrind either.
> 
> Perhaps you can capture an apitrace of the issue?

Right, there's already a workaround for this game in drirc.

I can't really make out much from the backtrace, but at least for some of the
crashes the segfault seems to come from the game, probably because of the
failing shader?

You didn't get the syntax error?
0:209(3): error: syntax error, unexpected '='

I will try again with git master and try to capture a trace too,


You are receiving this mail because:
  • You are the assignee for the bug.
--1438115348.BB38ddBa0.24774-- --===============1208761141== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1208761141==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91480] Dead Island: Crash loading Act 3 possible shader issue Date: Wed, 29 Jul 2015 20:25:16 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1298494419==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 882216E571 for ; Wed, 29 Jul 2015 13:25:16 -0700 (PDT) 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 --===============1298494419== Content-Type: multipart/alternative; boundary="1438201516.c5CC0.21273"; charset="UTF-8" --1438201516.c5CC0.21273 Date: Wed, 29 Jul 2015 20:25:16 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91480 Sven Arvidsson changed: What |Removed |Added ---------------------------------------------------------------------------- Version|10.6 |git --- Comment #4 from Sven Arvidsson --- I reproduced the bug with git master e933d545997de9e50a8ed5247722c1c786bf4858. I tried making a trace, but Dead Island segfaults right away if started with apitrace. -- You are receiving this mail because: You are the assignee for the bug. --1438201516.c5CC0.21273 Date: Wed, 29 Jul 2015 20:25:16 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 91480
What Removed Added
Version 10.6 git

Comment # 4 on bug 91480 from
I reproduced the bug with git master e933d545997de9e50a8ed5247722c1c786bf4858.

I tried making a trace, but Dead Island segfaults right away if started with
apitrace.


You are receiving this mail because:
  • You are the assignee for the bug.
--1438201516.c5CC0.21273-- --===============1298494419== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1298494419==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91480] Dead Island: Crash loading Act 3 possible shader issue Date: Tue, 19 Apr 2016 12:08:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1563252640==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 71DB76E737 for ; Tue, 19 Apr 2016 12:08:06 +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 --===============1563252640== Content-Type: multipart/alternative; boundary="14610676860.E3F280fe2.20322"; charset="UTF-8" --14610676860.E3F280fe2.20322 Date: Tue, 19 Apr 2016 12:08:06 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=91480 Sven Arvidsson changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #5 from Sven Arvidsson --- With radeonsi and Mesa 11.1 the game seems to work fine. I have no way of trying it on r600g so I will close the bug. -- You are receiving this mail because: You are the assignee for the bug. --14610676860.E3F280fe2.20322 Date: Tue, 19 Apr 2016 12:08:06 +0000 MIME-Version: 1.0 Content-Type: text/html changed bug 91480
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Comment # 5 on bug 91480 from
With radeonsi and Mesa 11.1 the game seems to work fine. I have no way of
trying it on r600g so I will close the bug.


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