chrix Mar 5, 2013 @ 4:39am
[solved by updates] Linux, intel (git) segfault on start
So I can't really say if this is since a serious sam update or since an intel driver update (I use X.org from git master, xf86-video-intel from git master and mesa from git master) but for a while serious sam doesn't start for me at all, on stable and on the betas. I have completely deleted the local game content with steam and reinstalled it and it does not help.

I can't really see where it fails, as there are no debug symbols whatsoever. Can you get a debug binary, when promising to delete it right after testing and not giving it to anyone? :)
$ LD_LIBRARY_PATH=/usr/lib32:$(pwd):~/Steam/ubuntu12_32/ gdb ./Sam3 -q
Reading symbols from /home/user/Steam/SteamApps/common/Serious Sam 3/Bin/Sam3...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/user/Steam/SteamApps/common/Serious Sam 3/Bin/Sam3
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
WRN: CPU Power saving is enabled and performance governor is not used.
INF: GameEnv API: Steam
Setting breakpad minidump AppID = 41070
Steam_SetMinidumpSteamID: Caching Steam ID: 76561197968267003 [API loaded no]
INF: Encoded user ID = 3b2a828d:1c020d06
[New Thread 0xf618ab40 (LWP 30258)]
INF:
INF: * Desktop settings...
INF: Color depth: 32-bit
INF: Desktop resolution: 1920 x 1080
INF: Fullscreen on primary display
WRN: [OpenGL] Unable to determine VRAM size... assuming 512 MB.

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x08f04d32 in ?? ()
#2 0x08f06fee in ?? ()
#3 0x08ef4208 in ?? ()
#4 0x08a717b2 in ?? ()
#5 0x083897c1 in ?? ()
#6 0x083991ba in ?? ()
#7 0x0839a8db in ?? ()
#8 0x089f4116 in ?? ()
#9 0x08d71db8 in ?? ()
#10 0x08d721e8 in ?? ()
#11 0x0804f4db in ?? ()
#12 0xf7dcc825 in __libc_start_main () from /usr/lib32/libc.so.6
#13 0x08388e95 in ?? ()

Processor Information:
Vendor: GenuineIntel
Speed: 2201 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported

Network Information:
Network Speed:

Operating System Version:
"Arch Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 3.9.0-1-mainline
X Server Vendor: The X.Org Foundation
X Server Release: 11399902
X Window Manager: KWin
Steam Runtime Version: steam-runtime-release-i386_2013-02-22

Video Card:
Driver: Intel Open Source Technology Center Mesa DRI Intel(R) Ivybridge Mobile

Driver Version: 3.0 Mesa 9.2-devel (git-0b6e72f)
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID: 0x1002
DeviceID: 0x6800
Number of Monitors: 2
Number of Logical Video Cards: 2
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 3840 x 1080
Primary Display Size: 18,78" x 10,55" (21,54" diag)
47,7cm x 26,8cm (54,7cm diag)
Primary VRAM Not Detected
Last edited by chrix; Apr 4, 2013 @ 5:25am
Showing 1-7 of 7 comments
< >
AlenL  [developer] Mar 5, 2013 @ 6:44am 
Sam3.log and Sam3.rpt from Log/ folder should contain more info. Can you please post that? Also not that Intel GPUs are not supported on Linux yet, until drivers are fixed, so this is a hit and miss.
chrix Mar 5, 2013 @ 1:41pm 
I knew I forgot something, sorry. :)



-------- START OF LOG --------

13:35:29 LOG: Core version: $Version: distro_Sam3_PC; SeriousSam3_Executables-Linux-Final; 176695 2013-01-24 17:16:44 @builderl02; Linux-Static-Final-Default$
13:35:29 LOG: Command: $
13:35:29 LOG: Initializing timer.
13:35:29 LOG: Timestamp: 2013/03/05 13:35:29
13:35:29 LOG: Binary name: Sam3
13:35:29 LOG: Binary soft path: Bin/
13:35:29 LOG: Binary hard path: /home/user/Steam/SteamApps/common/Serious Sam 3/Bin/
13:35:29 LOG: Application directory: /home/user/Steam/SteamApps/common/Serious Sam 3/
13:35:29 LOG: * OS...
13:35:29 LOG: Type: Linux
13:35:29 LOG: Kernel: 3.9.0-1-mainline
13:35:29 LOG: Version: #1 SMP PREEMPT Mon Mar 4 14:57:09 CET 2013
13:35:29 LOG: Architecture: x86_64
13:35:29 LOG: Output of lsb_release: Distributor ID: arch
13:35:29 LOG: Description: (none)
13:35:29 LOG: Release: rolling
13:35:29 LOG: Codename: n/a
13:35:29 LOG:
13:35:29 LOG: /etc/*-release: LSB_VERSION=1.4
13:35:29 LOG: DISTRIB_ID=arch
13:35:29 LOG: DISTRIB_RELEASE=rolling
13:35:29 LOG: DISTRIB_DESCRIPTION="Arch Linux"
13:35:29 LOG: NAME="Arch Linux"
13:35:29 LOG: ID=arch
13:35:29 LOG: PRETTY_NAME="Arch Linux"
13:35:29 LOG: ANSI_COLOR="0;36"
13:35:29 LOG: HOME_URL="https://www.archlinux.org/"
13:35:29 LOG: SUPPORT_URL="https://bbs.archlinux.org/"
13:35:29 LOG: BUG_REPORT_URL="https://bugs.archlinux.org/"
13:35:29 LOG:
13:35:29 LOG:
13:35:29 LOG: /etc/debian_version: Archlinux
13:35:29 LOG:
13:35:29 LOG: Power saving settings: /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies:2201000 2200000 2100000 2000000 1900000 1800000 1700000 1600000 1500000 1400000 1300000 1200000
13:35:29 LOG: /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:ondemand performance
13:35:29 LOG: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:1200000
13:35:29 LOG: /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:acpi-cpufreq
13:35:29 LOG: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:ondemand
13:35:29 LOG: /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:2201000
13:35:29 LOG: /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:1200000
13:35:29 LOG: /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed:<unsupported>
13:35:29 LOG:
13:35:29 WRN: CPU Power saving is enabled and performance governor is not used.
13:35:29 LOG:
13:35:29 LOG: XDG_CURRENT_DESKTOP: (null)
13:35:29 LOG: GDMSESSION: (null)
13:35:29 LOG: DESKTOP_SESSION: kde-plasma
13:35:29 LOG: KDE_SESSION_VERSION: 4
13:35:29 LOG:
13:35:29 LOG: * CPU...
13:35:29 LOG: Vendor: GenuineIntel
13:35:29 LOG: Name: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
13:35:29 LOG: Type: 0, Family: 6, Model: 10, Stepping: 9
13:35:29 LOG: Clock: 2.20 GHz
13:35:29 LOG: Cores: 8
13:35:29 LOG: CMOV: Yes
13:35:29 LOG: SSE: Yes
13:35:29 LOG:
13:35:29 LOG: * Memory...
13:35:29 LOG: Total physical memory: 32070 MB
13:35:29 LOG: Free physical memory: 16246 MB
13:35:29 LOG:
13:35:29 LOG: Loaded "/home/user/Steam/SteamApps/common/Serious Sam 3/Bin/ScriptLua.so".
13:35:29 LOG: Loaded "/home/user/Steam/SteamApps/common/Serious Sam 3/Bin/GameEnv_Steam.so".
13:35:29 INF: GameEnv API: Steam
13:35:29 INF: Encoded user ID = 3b2a828d:1c020d06
13:35:29 LOG: Created thread -166155456(ResourceLoader).
13:35:29 LOG: Loading cvars from "$/home/user/Steam/userdata/8001275/41070/local/SeriousSam3.ini".
13:35:29 LOG: Loaded "libX11.so.6".
13:35:29 LOG: Loaded "libXi.so.6".
13:35:29 LOG: Loaded "libXrandr.so.2".
13:35:29 LOG: Display 0: LVDS1 (1920x1080)
13:35:29 LOG: Display 1: HDMI1 (1920x1080)
13:35:29 LOG: Trying to set display mode 1920x1080(fullscreen)...
13:35:29 INF:
13:35:29 INF: * Desktop settings...
13:35:29 INF: Color depth: 32-bit
13:35:29 INF: Desktop resolution: 1920 x 1080
13:35:29 LOG: Loaded "/home/user/Steam/SteamApps/common/Serious Sam 3/Bin/GfxOGL.so".
13:35:29 INF: Fullscreen on primary display
13:35:29 LOG: Loaded "libGL.so.1".
13:35:29 LOG: Loaded "libXxf86vm.so.1".
13:35:29 WRN: [OpenGL] Unable to determine VRAM size... assuming 512 MB.

//=====================================================
Report generated at: unsupported unsupported
Version: $Version: distro_Sam3_PC; SeriousSam3_Executables-Linux-Final; 176695 2013-01-24 17:16:44 @builderl02; Linux-Static-Final-Default$
Build type: Linux-Static-Final-Default

Received signal 11 (Segmentation fault).

Dumping registers:
EAX:00010000
EBX:00000008
ECX:00000001
EDX:00000000
ESI:00000000
EDI:F6EF8584
CS:EIP:0023:00000000
SS:ESP:002B:FF99E7BC EBP:00000003

Dumping stack back trace:

//=====================================================
(yes, that is the whole content, now back trace)


I'm pretty sure that archlinux with so many bleeding edge components will be almost nowhere officially supported but I'd appreciate you taking a quick look whether it's easy to solve.

The thing is that it worked fine for some time. On anything but the lowest details painfully slow, but quite playable on lowest details and the segfault immediately after opening a fullscreen window but before actually rendering anything feels suspiciously like a trivial problem.

I mean, I remember some old games allocated a buffer with a static size to store all the supported OpenGL Extensions of the gpu/driver and once they supported enough extensions they started segfaulting on start...

I actually tried MESA_EXTENSION_MAX_YEAR=2009 (doesn't report extensions specified after that year see http://www.mesa3d.org/envvars.html) and got a different backtrace, that still doesn't tell me anything, but maybe you... (this time it showed the "your driver is too old" messagebox, but I think it worked some time ago with it anyway, I don't remember it too well though)
Reading symbols from /home/user/Steam/SteamApps/common/Serious Sam 3/Bin/Sam3...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/user/Steam/SteamApps/common/Serious Sam 3/Bin/Sam3
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
WRN: CPU Power saving is enabled and performance governor is not used.
INF: GameEnv API: Steam
Setting breakpad minidump AppID = 41070
Steam_SetMinidumpSteamID: Caching Steam ID: 76561197968267003 [API loaded no]
INF: Encoded user ID = 3b2a828d:1c020d06
[New Thread 0xf618ab40 (LWP 26640)]
INF:
INF: * Desktop settings...
INF: Color depth: 32-bit
INF: Desktop resolution: 1920 x 1080
INF: Fullscreen on primary display
WRN: [OpenGL] Unable to determine VRAM size... assuming 512 MB.
INF:
INF: Gfx API: OpenGL
INF: Resolution: 1920 x 1080
INF: Vendor: ATI (0x1002)
INF: Driver: Intel Open Source Technology Center (0x6800)
INF: Renderer: Mesa DRI Intel(R) Ivybridge Mobile
INF: Version: 3.0 Mesa 9.2-devel (git-0b6e72f)
INF: Video memory size: 512 MB
INF: Available for textures: 512 MB
INF: Active GPU(s): 1
WRN: Display driver is too old, please update it ASAP!
INF: SysMessage: Display driver is too old or version cannot be determined.
INF: Press OK to update driver, or Cancel to continue.

Program received signal SIGSEGV, Segmentation fault.
0xf5564770 in ?? ()
(gdb) bt
#0 0xf5564770 in ?? ()
#1 0xf6a0d1ca in _XEnq () from /usr/lib32/libX11.so.6
#2 0xf6a0a00c in ?? () from /usr/lib32/libX11.so.6
#3 0xf6a0acd0 in _XReply () from /usr/lib32/libX11.so.6
#4 0xf568aeac in XIQueryDevice () from /usr/lib32/libXi.so.6
#5 0x08e5a8e5 in ?? ()
#6 0x08dcef27 in ?? ()
#7 0x08dccd8f in ?? ()
#8 0x08389f83 in ?? ()
#9 0x08399b68 in ?? ()
#10 0x0839b10b in ?? ()
#11 0x089f4eeb in ?? ()
#12 0x08d73848 in ?? ()
#13 0x08d73c78 in ?? ()
#14 0x0804f4db in ?? ()
#15 0xf7dcc825 in __libc_start_main () from /usr/lib32/libc.so.6
#16 0x083896c5 in ?? ()
I can imagine that Serious Sam requires more recent extensions to run, so if that's the problem
AlenL  [developer] Mar 5, 2013 @ 10:28pm 
It is hard to say what can all be wrong when you are running latest from git. :) Usually, arch is not that much of a problem, IME, but various GPU drivers are. I know that a recent driver from Intel required to be started with MESA_EXTENSION_OVERRIDE=-GL_ARB_get_program_binary . Both us and Intel are still trying to figure out why is that. but if you are building from git who knows what's going on in the head revision.

The last log you sent seems to indicate that you have both Intel and ATI GPUs, and that the driver used is the one from Intel. Are you sure you don't want to use the ATI GPU?
chrix Mar 6, 2013 @ 10:45am 
Well, I don't think I'm going to find out more. I have played a bit with loading steam's libraries instead of those from my system in /usr/lib32, but didn't see any change.

With MESA_EXTENSION_OVERRIDE=-GL_ARB_get_program_binary I get the "driver too old" messagebox and the same stacktrace as with MESA_EXTENSION_MAX_YEAR=2009.

(I actually would like to use my radeon card, but it's using enduro, so there is no manual switching. fglrx's theoretically supports it but at the moment it just segfaults on X start and even if it works, multimonitor is broken (but with one monitor I have played serous sam 3 and it worked really well). And the open source driver with PRIME/DMA-Buf for 7xxx radeons needs glamor which has still not been made compatible with X.org 1.13+.)
chrix Apr 4, 2013 @ 4:01am 
Good news: With latest intel drivers and wth the latest serious sam updates it works again.
chrix Apr 11, 2013 @ 5:16am 
Aaaand with the latest updates it's broken again, crash seems to be the same. Sorry, I'm not keeping track of whether it's intel or serious sam updates that break it.
chrix Apr 19, 2013 @ 11:11am 
And it works again. But now it sometimes freezes for 5-10 seconds (really!) and then for a short moment everything has low-res textures until the normal ones are restored... http://steamcommunity.com/sharedfiles/filedetails/?id=140082622

Anyway, it gets better, so thanks for whatever you do. :)
Showing 1-7 of 7 comments
< >
Per page: 15 30 50
Date Posted: Mar 5, 2013 @ 4:39am
Posts: 7