Frictional Games Forum (read-only)
xf86-video-ati: Segmentation fault - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-31.html)
+---- Forum: Linux - ATDD (https://www.frictionalgames.com/forum/forum-32.html)
+---- Thread: xf86-video-ati: Segmentation fault (/thread-6925.html)



xf86-video-ati: Segmentation fault - TAXI - 03-17-2011

Hi,
I'm running gentoo linux. I installed the demo with this ebuild: http://bugs.gentoo.org/show_bug.cgi?id=336660

I'm using gallium3D, for that I have installed the following ebuilds:
x11-libs/libdrm-2.4.24
media-libx/mesa-9999
x11-base/xorg-server-1.9.4
x11-drivers/xf86-video-ati-6.14.0
sys-kernel/gentoo-sources-2.6.36-r5
dev-libs/libtxc_dxtn-1.0.0-r1 from http://bugs.gentoo.org/show_bug.cgi?id=65607

My problem is that the game crashes at the loading screen (after setting the gamma)
the only output I get:
Code:
$ /usr/games/bin/amnesia-tdd-demo
[1] 25001 segmentation fault  /usr/games/bin/amnesia-tdd-demo
Am I missing something or doing something wrong?

P.S. Sorry for my bad english.

//EDIT: My Graphic Card is a RadeonHD 4670 and this system is amd64 (no-mutilib)


RE: xf86-video-ati: Segmentation fault - Urkle - 03-17-2011

From the log it looks as though the game couldn't create any textures. You'll have to poke the Gallium3D/Mesa team for support on this as, unfortunately, we currently do not support the open source drivers. (though some have had success with the R300 based ATI cards)


RE: xf86-video-ati: Segmentation fault - TAXI - 03-17-2011

I have forgotten to set R600_ENABLE_S3TC=1. Now the game isn't crashing anymore and the textures are loading but I have a never ending loading screen.

//EDIT: Some more infos: In top (via ssh) I can see that X and Amnesia are eating CPU.
The last thing I can see in the log is:
Code:
Game Running
--------------------------------------------------------
-------- Loading map 'menu_bg.map' ---------
    Cache Loading: 1908 ms
  Entities: 302 ms
  Compilation: 1 ms
  Total: 2228 ms
  Meshes created: 28
  Bodies created: 5
-------- Loading complete ---------

//EDIT²: Checked my syslog and had messages like this repeating very fast while Amnesia is running:
Code:
Mar 17 14:26:46 localhost kernel: [ 1648.418857] radeon 0000:01:00.0: r600_check_texture_resource:1111 texture invalid format 51
Mar 17 14:26:46 localhost kernel: [ 1648.418862] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Mar 17 14:26:46 localhost kernel: [ 1648.421855] radeon 0000:01:00.0: r600_check_texture_resource:1111 texture invalid format 49
Mar 17 14:26:46 localhost kernel: [ 1648.421860] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Mar 17 14:26:46 localhost kernel: [ 1648.424882] radeon 0000:01:00.0: r600_check_texture_resource:1111 texture invalid format 49
Mar 17 14:26:46 localhost kernel: [ 1648.424886] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
So I think it's a kernel issue. I will try to patch my kernel like this: http://www.casey-jones.org/blog/16/ and see if it helps.

//EDIT³: I backported the DRM stuff from 2.6.38-rc8 to my 2.6.36 kernel and the game is running fine! Smile