Quake 4 - Segmentation Fault

Hi there :slight_smile:
I was trying to make quake4 working natively under linux.
Fistly, I tryed quake4-demo… it worked, how ever I got pretty low fps (under my expectations, because I own ATI HD 4870). So… I tryed running glxgears where I had only 300fps when I was used to having over 10Kfps. So I went and reinstalled the fglrx which I am using. After that I got like 6.7Kfps in glxgears how ever I was not successful in running quake4 not even quake4-demo. Here is the output…

Quake4  V1.4.2 linux-x86 Jun 15 2007                                                                
found interface lo - loopback                                                                       
found interface lo - 127.0.0.2/255.0.0.0                                                            
found interface eth0 - 192.168.2.100/255.255.255.0                                                  
CPU: Intel CPU with MMX & SSE & SSE2 & SSE3                                                         
enabled Flush-To-Zero mode                                                                          
--------- Initializing File System ----------                                                       
Loaded pk4 /usr/local/games/quake4/q4base/game000.pk4 with checksum 0xb3abe28c                      
Loaded pk4 /usr/local/games/quake4/q4base/game100.pk4 with checksum 0x74b379d9                      
Loaded pk4 /usr/local/games/quake4/q4base/game200.pk4 with checksum 0xa3c810d9                      
Loaded pk4 /usr/local/games/quake4/q4base/pak001.pk4 with checksum 0xf2cbc998                       
Loaded pk4 /usr/local/games/quake4/q4base/pak002.pk4 with checksum 0x7f8d80d1                       
Loaded pk4 /usr/local/games/quake4/q4base/pak003.pk4 with checksum 0x1b57b207                       
Loaded pk4 /usr/local/games/quake4/q4base/pak004.pk4 with checksum 0x385aa578                       
Loaded pk4 /usr/local/games/quake4/q4base/pak005.pk4 with checksum 0x60d50a1d                       
Loaded pk4 /usr/local/games/quake4/q4base/pak006.pk4 with checksum 0x9099ed11                       
Loaded pk4 /usr/local/games/quake4/q4base/pak007.pk4 with checksum 0xaf301fff                       
Loaded pk4 /usr/local/games/quake4/q4base/pak008.pk4 with checksum 0x4ac6f6d9                       
Loaded pk4 /usr/local/games/quake4/q4base/pak009.pk4 with checksum 0x36030c7d                       
Loaded pk4 /usr/local/games/quake4/q4base/pak010.pk4 with checksum 0x4b80fbda                       
Loaded pk4 /usr/local/games/quake4/q4base/pak011.pk4 with checksum 0x8acf4cfa                       
Loaded pk4 /usr/local/games/quake4/q4base/pak012.pk4 with checksum 0xbe4120b0                       
Loaded pk4 /usr/local/games/quake4/q4base/pak013.pk4 with checksum 0x6ad67f40                       
Loaded pk4 /usr/local/games/quake4/q4base/pak014.pk4 with checksum 0xee51cd59                       
Loaded pk4 /usr/local/games/quake4/q4base/pak015.pk4 with checksum 0xf5bf4e0c                       
Loaded pk4 /usr/local/games/quake4/q4base/pak016.pk4 with checksum 0x2196f58c                       
Loaded pk4 /usr/local/games/quake4/q4base/pak017.pk4 with checksum 0x91118a35                       
Loaded pk4 /usr/local/games/quake4/q4base/pak018.pk4 with checksum 0x98a14f03                       
Loaded pk4 /usr/local/games/quake4/q4base/pak019.pk4 with checksum 0xbc82ac79                       
Loaded pk4 /usr/local/games/quake4/q4base/pak020.pk4 with checksum 0xce74cda5                       
Loaded pk4 /usr/local/games/quake4/q4base/pak021.pk4 with checksum 0x2ba6e70c                       
Loaded pk4 /usr/local/games/quake4/q4base/pak022.pk4 with checksum 0x4e390eec                       
Loaded pk4 /usr/local/games/quake4/q4base/q4cmp_pak001.pk4 with checksum 0xd0813943                 
Loaded pk4 /usr/local/games/quake4/q4base/zpak_english.pk4 with checksum 0x5868f530                 
Loaded pk4 /usr/local/games/quake4/q4base/zpak_english_01.pk4 with checksum 0xd9f04b8b              
Loaded pk4 /usr/local/games/quake4/q4base/zpak_english_02.pk4 with checksum 0x9dbd91fd              
Loaded pk4 /usr/local/games/quake4/q4base/zpak_english_03.pk4 with checksum 0x2eb6ad8               
Loaded pk4 /usr/local/games/quake4/q4base/zpak_english_04.pk4 with checksum 0xd3fefaa1              
Loaded pk4 /usr/local/games/quake4/q4base/zpak_french.pk4 with checksum 0xbec7cb4                   
Loaded pk4 /usr/local/games/quake4/q4base/zpak_italian.pk4 with checksum 0x1e3aa0f                  
Loaded pk4 /usr/local/games/quake4/q4base/zpak_spanish.pk4 with checksum 0xb706e2b8                 
Addon pk4 /usr/local/games/quake4/q4base/q4cmp_pak001.pk4 with checksum 0xd0813943 is on addon list 
Current search path:                                                                                
/home/Palmik/.quake4/q4base                                                                         
/usr/local/games/quake4/q4base                                                                      
/usr/local/games/quake4/q4base/zpak_spanish.pk4 (3542 files)                                        
/usr/local/games/quake4/q4base/zpak_italian.pk4 (3500 files)                                        
/usr/local/games/quake4/q4base/zpak_french.pk4 (3462 files)                                         
/usr/local/games/quake4/q4base/zpak_english_04.pk4 (3 files)                                        
/usr/local/games/quake4/q4base/zpak_english_03.pk4 (4 files)                                        
/usr/local/games/quake4/q4base/zpak_english_02.pk4 (21 files)                                       
/usr/local/games/quake4/q4base/zpak_english_01.pk4 (1 files)                                        
/usr/local/games/quake4/q4base/zpak_english.pk4 (3457 files)                                        
/usr/local/games/quake4/q4base/pak022.pk4 (14 files)                                                
/usr/local/games/quake4/q4base/pak021.pk4 (89 files)                                                
/usr/local/games/quake4/q4base/pak020.pk4 (11 files)                                                
/usr/local/games/quake4/q4base/pak019.pk4 (1206 files)                                              
/usr/local/games/quake4/q4base/pak018.pk4 (3 files)                                                 
/usr/local/games/quake4/q4base/pak017.pk4 (3 files)                                                 
/usr/local/games/quake4/q4base/pak016.pk4 (193 files)                                               
/usr/local/games/quake4/q4base/pak015.pk4 (34 files)                                                
/usr/local/games/quake4/q4base/pak014.pk4 (552 files)                                               
/usr/local/games/quake4/q4base/pak013.pk4 (239 files)                                               
/usr/local/games/quake4/q4base/pak012.pk4 (1081 files)                                              
/usr/local/games/quake4/q4base/pak011.pk4 (5620 files)                                              
/usr/local/games/quake4/q4base/pak010.pk4 (5539 files)                                              
/usr/local/games/quake4/q4base/pak009.pk4 (1284 files)                                              
/usr/local/games/quake4/q4base/pak008.pk4 (1289 files)                                              
/usr/local/games/quake4/q4base/pak007.pk4 (1330 files)                                              
/usr/local/games/quake4/q4base/pak006.pk4 (1343 files)                                              
/usr/local/games/quake4/q4base/pak005.pk4 (1395 files)                                              
/usr/local/games/quake4/q4base/pak004.pk4 (2249 files)                                              
/usr/local/games/quake4/q4base/pak003.pk4 (1281 files)                                              
/usr/local/games/quake4/q4base/pak002.pk4 (313 files)                                               
/usr/local/games/quake4/q4base/pak001.pk4 (5837 files)                                              
/usr/local/games/quake4/q4base/game200.pk4 (9 files)                                                
/usr/local/games/quake4/q4base/game100.pk4 (2 files)                                                
/usr/local/games/quake4/q4base/game000.pk4 (2 files)                                                
game DLL: 0x0 in pak: 0x0                                                                           
Addon pk4s:                                                                                         
/usr/local/games/quake4/q4base/q4cmp_pak001.pk4 (119 files)                                         
file system initialized.                                                                            
---------------------------------------------                                                       
------------ Initializing Decls -------------                                                       
Loading guides.... 64 loaded                                                                        
128ms to load 1125k of material                                                                     
32ms to load 43k of skin                                                                            
80ms to load 723k of sound                                                                          
3ms to load 1k of materialType                                                                      
195ms to load 2889k of lipSync                                                                      
31ms to load 105k of playback                                                                       
475ms to load 1690k of effect                                                                       
---------------------------------------------                                                       
/proc/cpuinfo CPU frequency: 3000 MHz                                                               
detecting video ram ( set sys_videoRam to force ) ..                                                
guess failed, return default low-end VRAM setting ( 64MB VRAM )                                     
Detected                                                                                            
        3.00 GHz CPU                                                                                
        3952 MB of System memory                                                                    
        64 MB of Video memory on an optimal video architecture                                      

This system qualifies for Low quality.
-------- Initializing renderSystem ----------
using ARB renderSystem                       
renderSystem initialized.                    
---------------------------------------------
Found default language English with VO       
.... found additional language 'french' with VO
.... found additional language 'italian' with VO
.... found additional language 'spanish' with VO
696 strings read from strings/english_code.lang 
1794 strings read from strings/english_guis.lang
5756 strings read from strings/english_lips.lang
5759 strings read from strings/english_mappack.lang
6235 strings read from strings/english_maps.lang   
632 strings read from strings/french_code.lang     
1654 strings read from strings/french_guis.lang    
5616 strings read from strings/french_lips.lang    
5619 strings read from strings/french_mappack.lang 
6088 strings read from strings/french_maps.lang    
632 strings read from strings/italian_code.lang    
1654 strings read from strings/italian_guis.lang   
5616 strings read from strings/italian_lips.lang   
5619 strings read from strings/italian_mappack.lang
6088 strings read from strings/italian_maps.lang   
632 strings read from strings/spanish_code.lang    
1654 strings read from strings/spanish_guis.lang   
5616 strings read from strings/spanish_lips.lang   
5619 strings read from strings/spanish_mappack.lang
6088 strings read from strings/spanish_maps.lang   
Couldn't open journal files                        
execing default.cfg                                
"ALT" isn't a valid key                            
"CTRL" isn't a valid key                           
couldn't exec editor.cfg                           
couldn't exec Quake4Config.cfg                     
couldn't exec autoexec.cfg                         
-------- Initializing Sound System ----------      
sound system initialized.                          
---------------------------------------------      
--------------- R_InitOpenGL ----------------      
Initializing SDL subsystem                         
Loading GL driver 'libGL.so.1' through SDL         
SDL_ListModes:                                     
1680x1050 1440x900 1400x1050 1280x1024 1280x960 1280x768 1280x720 1152x864 1024x768 800x600 640x480 
640x400 512x384 400x300 320x240 320x200                                                             
SDL_ListModes are currently ignored for resolution filtering. Set r_useSDLModes to 1 if you want it 
signal caught: Segmentation fault                                                                   
si_code 1                                                                                           
Trying to exit gracefully..                                                                         
--------------- BSE Shutdown ----------------                                                       
---------------------------------------------                                                       
idRenderSystem::Shutdown()

The weird part here is the one with vram - it claims, that I have only 64 MB but I got 512 MB… however, I do not thing it caused the problem.
This is what it gave me on the first try, on the second try the part with low vram was missing.

Here are some things you might want to know.

> glxinfo | grep direct
> direct rendering: Yes

> uname -a
> Linux dhcppc0 2.6.27.23-0.1-default #1 SMP 2009-05-26 17:02:05 -0400 x86_64 x86_64 x86_64 GNU/Linux

I also set the chmod of all pk4 files to 777, just to be sure…
> chmod 777 /usr/local/games/quake4/q4base/*.pk4

Quake 4 has problems running in 64bit SuSE. it will run only in 32bit mode,due to some issues,especially the problems you are having.Did you try the Loki installer ? BTW,it runs better with at least 1Gb ram,also no need to chmod the files,they work ok without the 777 mask

Andy

Well… those are mine specs
OS: OpenSuse 11.1
CPU: Intel E8400 dual-core (3.0GHz)
RAM: 4GB
GRAPHICS: ATI HD4870 (512MB version)

I think I meet the hardware requirements.

I used this installer ‘quake4-linux-1.4.2.x86.run’ from ID’s local BitTorrent tracker…

I made some research and I have not found Loki installer for Quake 4
loki installers for linux gamers

(In other words, I used the installer which ID provided me with, the ‘text-only’ one (not the graphical one))