View Issue Details

IDProjectCategoryView StatusLast Update
0004382Spring engineGfx driver issuespublic2014-05-25 10:47
Reporteremmanuel Assigned Toabma  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version96.0.1+git 
Target Version97.0 
Summary0004382: ATI 14.4 gfx crash to desktop in Shader.cpp:186 with Shadows enabled
Descriptionit crash springrts
Steps To Reproduceclick start
Additional Informationhttp://paste.springfiles.com/view/4ac1628e
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
infolog2.txt (Attachment missing)
Checked infolog.txt for Errors

Relationships

has duplicate 0004393 closedabma 96.0.1-437 ATI Shadow bug. 

Activities

user744

2014-05-11 15:43

  ~0013050

Ist that similiar to AMD Radeon R9 200 Series?
Here someone fixed it with different, older drivers:
http://springrts.com/phpbb/viewtopic.php?f=51&t=32134
"downgraded my driver from 14.17 to 13.12, worked like a charm"

abma

2014-05-11 16:32

administrator   ~0013051

Last edited: 2014-05-11 16:33

Translated:

C:\\Windows\\system32\\atioglxx.dll 0x68D1D295 ??:0
C:\\Windows\\system32\\atioglxx.dll 0x68D25E8B ??:0
C:\\Windows\\system32\\atioglxx.dll 0x69479376 ??:0
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E15C6 rts/Rendering/Shaders/Shader.cpp:186
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E3F66 rts/Rendering/Shaders/ShaderHandler.cpp:129
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E79A4 rts/Rendering/ShadowHandler.cpp:196
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E8D85 rts/Rendering/ShadowHandler.cpp:136
C:\\Program Files (x86)\\Spring\\spring.exe 0x0070F1DB rts/Rendering/WorldDrawer.cpp:45
C:\\Program Files (x86)\\Spring\\spring.exe 0x004255DF rts/Game/Game.cpp:708
C:\\Program Files (x86)\\Spring\\spring.exe 0x00CB65A5 /slave/mingwlibs/include/boost/bind/mem_fn_template.hpp:280
C:\\Program Files (x86)\\Spring\\spring.exe 0x0087A181 rts/System/OffscreenGLContext.cpp:308
C:\\Program Files (x86)\\Spring\\spring.exe 0x00CAA421 /slave/mingwlibs/include/boost/function/function_template.hpp:875
C:\\Program Files (x86)\\Spring\\spring.exe 0x00B9C487 thread.cpp:0
C:\\Windows\\SysWOW64\\ntdll.dll 0x777E9F72 ??:0
C:\\Windows\\SysWOW64\\ntdll.dll 0x777E9F45 ??:0

try savemode / disable all shader stuff / update your gfx driver / disable shadows.



current development contains a commit related to this:
https://github.com/spring/spring/commit/c38d3f21f74b5450846b68167b3d4edfdf1378d4

emmanuel

2014-05-13 03:51

reporter   ~0013064

set evry seting containing "shad" to 0
lauchned by command line "spring --safemode"
still crash

my driver uptodate

is not blocking bug?

i will never downgrade anything
i use autoupdater ati catalyst who fix some bux and dont want they come back just for playing
as a fix i will use another gpu who work correctly :
the ati4850 with a 30% loose or performance
(no mention to the diference i will suffer using linux ubuntu because not more buying a second win7x64 for a linux compatible engine)

emmanuel

2014-05-13 03:54

reporter   ~0013065

Last edited: 2014-05-15 14:19

cannot upload/update here the new infolog.txt
it respond i must erase the old first here
must i report it as bug too?
did i reported that a white background threat the eyes and being anti eco ?

[see infolog2.txt]

abma

2014-05-13 14:54

administrator   ~0013076

you can't attach a file with the same name twice, next time just rename infolog.txt to infolog2.txt for example.

abma

2014-05-13 14:55

administrator   ~0013077

translated:

C:\\Windows\\system32\\atioglxx.dll 0x56C1D295 ??:0
C:\\Windows\\system32\\atioglxx.dll 0x56C25E8B ??:0
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E15C6 rts/Rendering/Shaders/Shader.cpp:186
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E3F66 rts/Rendering/Shaders/ShaderHandler.cpp:129
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E79A4 rts/Rendering/ShadowHandler.cpp:196
C:\\Program Files (x86)\\Spring\\spring.exe 0x006E8D85 rts/Rendering/ShadowHandler.cpp:136
C:\\Program Files (x86)\\Spring\\spring.exe 0x0070F1DB rts/Rendering/WorldDrawer.cpp:45
C:\\Program Files (x86)\\Spring\\spring.exe 0x004255DF rts/Game/Game.cpp:708
C:\\Program Files (x86)\\Spring\\spring.exe 0x00446506 rts/Game/LoadScreen.cpp:125
C:\\Program Files (x86)\\Spring\\spring.exe 0x004478C2 rts/Game/LoadScreen.cpp:191
C:\\Program Files (x86)\\Spring\\spring.exe 0x0044B25C /opt/mxe/usr/lib/gcc/i686-w64-mingw32/4.8.1/include/c++/bits/basic_string.h:293
C:\\Program Files (x86)\\Spring\\spring.exe 0x0044C3C4 rts/Game/PreGame.cpp:166
C:\\Program Files (x86)\\Spring\\spring.exe 0x008968A4 rts/System/SpringApp.cpp:1034
C:\\Program Files (x86)\\Spring\\spring.exe 0x00872956 rts/System/Main.cpp:65
C:\\Program Files (x86)\\Spring\\spring.exe 0x0087376C rts/System/Main.cpp:125
C:\\Program Files (x86)\\Spring\\spring.exe 0x0087398D rts/System/Main.cpp:134
C:\\Program Files (x86)\\Spring\\spring.exe 0x00401402 crtexe.c:0
C:\\Windows\\syswow64\\kernel32.dll 0x7709338A ??:0
C:\\Windows\\SysWOW64\\ntdll.dll 0x77D59F72 ??:0
C:\\Windows\\SysWOW64\\ntdll.dll 0x77D59F45 ??:0

try to disable shader stuff.

abma

2014-05-15 14:32

administrator   ~0013099

oops: disabling shadows should fix the crash: Shadows = 0

KingRaptor

2014-05-17 06:12

reporter   ~0013107

Needs Shadows=-1 FYI (jK said this stops shader from compiling entirely)

Anyway, is it at all possible to prevent Spring-side? This gives players/game devs a lot of headaches in debugging/prevention.

abma

2014-05-18 13:20

administrator   ~0013109

imo this crash should be released before 97.0 as all/most ati users are affected.

either by finding / fixing the cause or disable Shadows as default for ATI.

abma

2014-05-19 21:49

administrator   ~0013113

Last edited: 2014-05-19 21:58

hmm, i tried to reproduce this crash but i get a totally different stacktrace when switching to bumpwater:

C:\Windows\system32\atioglxx.dll 0x7198BC23 ??:0
C:\Windows\system32\atioglxx.dll 0x7198D2FE ??:0
C:\Windows\system32\atioglxx.dll 0x712CA4EA ??:0
C:\Windows\system32\atioglxx.dll 0x716BBCED ??:0
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0070E424 rts/Rendering/Textures/TextureAtlas.cpp:182
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0070E874 rts/Rendering/Textures/TextureAtlas.cpp:120
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0067C618 rts/Rendering/Env/BumpWater.cpp:841
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0068294D rts/Rendering/Env/BumpWater.cpp:300
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0066F0D3 rts/Rendering/Env/IWater.cpp:162
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0066FF74 rts/Rendering/Env/IWater.cpp:56
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0042C7FB rts/Game/Game.cpp:1079
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0042CB07 rts/Game/Game.cpp:1174
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x008BA1BE rts/System/SpringApp.cpp:895
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x008C11C4 rts/System/SpringApp.cpp:923
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x0089D3F6 rts/System/Main.cpp:48
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x00F506E4 rts/System/Main.cpp:107
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x00401402 crtexe.c:0
C:\Windows\syswow64\kernel32.dll 0x7695338A ??:0
C:\Windows\SysWOW64\ntdll.dll 0x77539F72 ??:0
C:\Windows\SysWOW64\ntdll.dll 0x77539F45 ??:0



edit: driver version 8.98-120611a-142035C-ATI (=Catalyst 12.6)
SDL version: linked 2.0.2; compiled 2.0.2
GL version: 4.2.11733 Compatibility Profile Context
GL vendor: ATI Technologies Inc.
GL renderer: ATI Radeon HD 5700 Series
GLSL version: 4.20

abma

2014-05-19 22:11

administrator   ~0013114

updated to 14.4:

GL version: 4.4.12874 Compatibility Profile/Debug Context 14.100.0.0
GL vendor: ATI Technologies Inc.
GL renderer: AMD Radeon HD 5700 Series
GLSL version: 4.30
GLEW version: 1.5.8


C:\Windows\system32\atioglxx.dll 0x03D9D295 ??:0
C:\Windows\system32\atioglxx.dll 0x03DA5E8B ??:0
C:\Windows\system32\atioglxx.dll 0x044F9376 ??:0
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x006F3B03 rts/Rendering/Shaders/Shader.cpp:185
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x006F66F6 rts/Rendering/Shaders/ShaderHandler.cpp:129
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x006FA124 rts/Rendering/ShadowHandler.cpp:196
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x006FB505 rts/Rendering/ShadowHandler.cpp:136
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x00722C6B rts/Rendering/WorldDrawer.cpp:45
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x00427ABF rts/Game/Game.cpp:713
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x00CE8755 /slave/mingwlibs/include/boost/bind/mem_fn_template.hpp:280
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x008A4941 rts/System/OffscreenGLContext.cpp:309
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x00CDC5E1 /slave/mingwlibs/include/boost/function/function_template.hpp:875
C:\Users\abma\Documents\My Games\Spring\engine\96.0.1-439-gae2558b\spring.exe 0x00BC1C17 thread.cpp:0
C:\Windows\SysWOW64\ntdll.dll 0x77539F72 ??:0
C:\Windows\SysWOW64\ntdll.dll 0x77539F45 ??:0


i get the same crash...hm :-|

abma

2014-05-19 22:39

administrator   ~0013115

tried to run it with CodeXL, only error i got before the crash is this:

Debug String: Detected error: The debugged process asked for an extension function pointer (wglChoosePixelFormatARB) from one render context, but called this function pointer in another render context (context #2)


but i don't think this is related to the crash...

abma

2014-05-19 23:23

administrator   ~0013116

note to myself:

https://github.com/spring/spring/blob/develop/rts/Rendering/Shaders/Shader.cpp#L179
is lengths correctly initialized?
i'm asking because of this: http://stackoverflow.com/questions/20634002/glcompileshader-access-violation
https://www.opengl.org/sdk/docs/man/html/glShaderSource.xhtml
"If length is NULL, each string is assumed to be null terminated"
but length is set to -1

abma

2014-05-20 00:57

administrator   ~0013117

Last edited: 2014-05-20 01:00

can someone please test if my patch works for him, too?

i tested to many stuff and maybe something else "broke" which make spring not crash any more in this case.

ATI 14.4 users please test if "96.0.1-441-g4cebf22 release" works with Shadows enabled!

abma

2014-05-20 01:10

administrator   ~0013118

http://springrts.com/dl/buildbot/default/release/96.0.1-441-g4cebf22/win32/

Kloot

2014-05-20 11:34

developer   ~0013121

How should that possibly be a fix?

From www.opengl.org/sdk/docs/man/html/glShaderSource.xhtml:
    "If length is NULL, each string is assumed to be null terminated."

    "Each element in the length array may contain the length of the
    corresponding string (the null character is not counted as part
    of the string length) ***or a value less than 0 to indicate that
    the string is null terminated***."

abma

2014-05-20 12:27

administrator   ~0013122

ATI read the specs wrong as i did it seems. With ati tools the shader compiled fine so I tried to change this parameter as I found no code/example where -1 as length was used. As I don't get the crash anymore with the change, but still without I assume it works.

abma

2014-05-25 10:03

administrator   ~0013146

*bump*

no feedback... i assume it works/is fixed?!

silentwings

2014-05-25 10:40

reporter   ~0013147

I didn't read the details of this, but both shadows and grass have started working with my old ATI Radeon HD 6500M, which wasn't the case before. Thanks!

abma

2014-05-25 10:47

administrator   ~0013149

wehee, great thank! :)

Issue History

Date Modified Username Field Change
2014-05-10 03:33 emmanuel New Issue
2014-05-10 03:33 emmanuel File Added: infolog.txt
2014-05-11 15:43 user744 Note Added: 0013050
2014-05-11 16:30 abma Priority urgent => normal
2014-05-11 16:30 abma Severity block => crash
2014-05-11 16:32 abma Note Added: 0013051
2014-05-11 16:32 abma Note Edited: 0013051
2014-05-11 16:33 abma Note Edited: 0013051
2014-05-13 03:51 emmanuel Note Added: 0013064
2014-05-13 03:54 emmanuel Note Added: 0013065
2014-05-13 03:54 emmanuel Note Edited: 0013065
2014-05-13 14:54 abma Note Added: 0013076
2014-05-13 14:55 abma Note Added: 0013077
2014-05-15 14:06 abma Relationship added has duplicate 0004393
2014-05-15 14:09 abma Summary ATI R7 200 crash to desktop => ATI R7 200 crash to desktop in Shader.cpp:186
2014-05-15 14:10 abma Product Version 96.0 => 96.0.1+git
2014-05-15 14:19 abma File Added: infolog2.txt
2014-05-15 14:19 abma Note Edited: 0013065
2014-05-15 14:32 abma Note Added: 0013099
2014-05-17 06:12 KingRaptor Note Added: 0013107
2014-05-18 13:19 abma Target Version => 97.0
2014-05-18 13:20 abma Note Added: 0013109
2014-05-19 21:49 abma Note Added: 0013113
2014-05-19 21:50 abma Note Edited: 0013113
2014-05-19 21:54 abma Note Edited: 0013113
2014-05-19 21:58 abma Note Edited: 0013113
2014-05-19 22:11 abma Note Added: 0013114
2014-05-19 22:39 abma Note Added: 0013115
2014-05-19 23:23 abma Note Added: 0013116
2014-05-20 00:52 abma Changeset attached => spring release 4cebf225
2014-05-20 00:52 abma Assigned To => abma
2014-05-20 00:52 abma Status new => resolved
2014-05-20 00:52 abma Resolution open => fixed
2014-05-20 00:57 abma Note Added: 0013117
2014-05-20 00:57 abma Status resolved => feedback
2014-05-20 00:57 abma Resolution fixed => reopened
2014-05-20 01:00 abma Note Edited: 0013117
2014-05-20 01:05 abma Category General => Gfx driver issues
2014-05-20 01:05 abma Summary ATI R7 200 crash to desktop in Shader.cpp:186 => ATI 14.4 gfx crash to desktop in Shader.cpp:186 with Shadows enabled
2014-05-20 01:10 abma Note Added: 0013118
2014-05-20 11:34 Kloot Note Added: 0013121
2014-05-20 12:27 abma Note Added: 0013122
2014-05-20 17:23 abma Priority normal => high
2014-05-25 10:03 abma Note Added: 0013146
2014-05-25 10:40 silentwings Note Added: 0013147
2014-05-25 10:47 abma Note Added: 0013149
2014-05-25 10:47 abma Status feedback => resolved
2014-05-25 10:47 abma Resolution reopened => fixed