Bug 83800

Summary: 3DMark2003 crashes radeon with wine 1.7.26 + gallium nine
Product: DRI Reporter: darkbasic <darkbasic>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: david
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
Xorg.0.log none

Description darkbasic 2014-09-12 14:00:22 UTC
HD 7950
Linux 3.17.0-rc2-core-avx-i-drm-next-3.18 20140912
llvm 3.6 git
xorg-server 1.15.1 + glamor git
mesa git + gallium nine
wine 1.7.26 + gallium nine
Comment 1 darkbasic 2014-09-12 14:02:03 UTC
Created attachment 106183 [details]
dmesg
Comment 2 darkbasic 2014-09-12 14:02:22 UTC
Created attachment 106184 [details]
Xorg.0.log
Comment 3 darkbasic 2014-09-12 14:04:41 UTC
This is 100% reproducible: just start 3DMark2003 with a gallium nine enabled wine (and mesa of course) and it will crash your whole system.
Comment 4 Christian König 2014-09-12 14:09:23 UTC
(In reply to comment #3)
> This is 100% reproducible: just start 3DMark2003 with a gallium nine enabled
> wine (and mesa of course) and it will crash your whole system.

^^ very interesting. Would it be possible that I get SSH access to the crashed system?
Comment 5 darkbasic 2014-09-12 14:47:06 UTC
Of course, just give me a few days to setup a test system on another hard disk ;)
Comment 6 David Heidelberg (okias) 2014-09-12 15:35:58 UTC
HD 6550D (r600g)
Linux 3.16.1
llvm 3.5 git
xorg-server-git
mesa git + gallium nine
wine 1.7.26 + gallium nine

just getting spammed by

...
EE r600_state_common.c:751 r600_shader_select - Failed to build shader variant (type=0) -22
EE r600_shader.c:2293 tgsi_unsupported - CLAMP tgsi opcode unsupported
EE r600_shader.c:157 r600_pipe_shader_create - translation from TGSI failed !
EE r600_state_common.c:751 r600_shader_select - Failed to build shader variant (type=0) -22
EE r600_shader.c:2293 tgsi_unsupported - CLAMP tgsi opcode unsupported
EE r600_shader.c:157 r600_pipe_shader_create - translation from TGSI failed !
...
otherwise OK, i'll try investigate but maybe it's somehow not handled on radeonsi.
Comment 7 Michel Dänzer 2014-09-17 06:38:19 UTC
Does it always happen at the same point in 3DMark2003, or randomly? If the former, can you create an apitrace reproducing the crash?
Comment 8 darkbasic 2014-09-17 07:32:39 UTC
I tried but I get no traces from apitrace 5 and I can't find apitrace 4 binaries anymore:
wine ~/Downloads/apitrace-msvc/x86/bin/apitrace.exe trace --api=d3d9 "C:\Program Files (x86)\Futuremark\3DMark03\3DMark03.exe" -nosysteminfo

Do you have apitrace 4 for windows?
Comment 9 Michel Dänzer 2014-09-17 07:54:00 UTC
You'd have to use Linux apitrace to trace the Wine process. Even if Windows apitrace can trace Direct3D, the resulting traces wouldn't be useful for the purpose of this bug report.
Comment 10 Michel Dänzer 2014-09-17 07:56:48 UTC
Hmm, of course Linux apitrace won't work either with the nine state tracker...
Comment 11 darkbasic 2014-09-17 13:47:12 UTC
Even if I use linux apitrace and vanilla wine (not nine) it doesn't work:

apitrace trace wine Tropics.exe -video_app opengl -sound_app openal -video_fullscreen 1 -video_mode -1 -video_width 1280 -video_height 1024 -data_path ./ -engine_config data/unigine.cfg -system_script tropics/unigine.cpp -extern_define RELEASE

On the contrary if I use apitrace with a native app (for example apitrace trace xonotic-sdl) it works flawlessly. Any idea?
Comment 12 darkbasic 2014-10-16 10:40:56 UTC
Christian I sent you and e-mail: if you're still interested I finally managed to setup a testbox and I can give you ssh access to the crashed system as you previously asked.
Comment 13 Christian König 2014-10-16 18:19:22 UTC
(In reply to darkbasic from comment #12)
> Christian I sent you and e-mail: if you're still interested I finally
> managed to setup a testbox and I can give you ssh access to the crashed
> system as you previously asked.

Mhm, looks like that mail neaver reached me. Going to send you a mail back, maybe my spam filter is more graceful to you then.
Comment 14 Jose Fonseca 2014-11-08 13:55:47 UTC
(In reply to Michel Dänzer from comment #10)
> Hmm, of course Linux apitrace won't work either with the nine state
> tracker...

FWIW, I've documented how to obtain D3D9 traces inside WINE on 
https://github.com/apitrace/apitrace/wiki/WINE#windows-native
Comment 15 darkbasic 2015-02-09 10:44:26 UTC
Fixed in nine state tracker. Probably the crash still happens with old nine.
Comment 16 darkbasic 2015-02-09 12:41:13 UTC
Sorry guys, I forgot to enable nine in my previous test: it still hangs the whole system.
Comment 17 darkbasic 2015-02-09 12:58:04 UTC
By the way I already narrowed this issue down to the 3D engine with Christian Koenig, so no VM or DMA problem here.
Comment 18 Martin Peres 2019-11-19 08:56:23 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/532.

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.