Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Demo segfault at start
dadar Offline
Junior Member

Posts: 2
Threads: 1
Joined: Sep 2010
Reputation: 0
#1
Solved: 8 Years, 9 Months, 1 Week ago Demo segfault at start

Hi,

I've been trying to execute the game demo but it just crashs with a segmentation fault.
I have "chmod -R u+rwx AmnesiaDemo/" directory to be sure there is no permission problem but it doesn't change anything.

Here is my hpt.log
It seems not very informative about the problem.
Since I got only 512Mb of ram and game requires 4Gb, this might be the problem ?

Can I launch Amnesia.bin or Launcher.bin in gdb or strace to give more information ?
This is subject to EULA decompile clause ?
I missed something.
here is hpl.log
(This post was last modified: 09-10-2010, 09:12 PM by dadar.)
09-10-2010, 09:08 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#2
Solved: 8 Years, 9 Months, 1 Week ago RE: Demo segfault at start

Is there any further information about the crash? Can you try looking at the last output of dmesg?
And does the launcher even run??? And yes, please run the launcher through gdb and give me a stack trace if that is the program crashing.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-11-2010, 07:30 PM
Website Find
dadar Offline
Junior Member

Posts: 2
Threads: 1
Joined: Sep 2010
Reputation: 0
#3
Solved: 8 Years, 9 Months, 1 Week ago RE: Demo segfault at start

There is no further info. Both penumbra overture and penumbra black plague demo were working fine.
No dmesg output or anything in /var/log related to the segmentation fault.
From the backtrace, it seems it may be a problem with openal or alsa. So I reinstalled those. It doesn't fix anything. This is :
alsa-lib-1.0.21a
openal-1.11.753
Here is an strace of Launcher.bin at the end (truncated because it is 600k, above upload cap limit)


Attached Files
.txt   Launcher.bin.strace.txt (Size: 34.52 KB / Downloads: 222)
.txt   Amnesia.bin.debug.txt (Size: 3.63 KB / Downloads: 149)
.txt   Launcher.bin.debug.txt (Size: 4.02 KB / Downloads: 180)
(This post was last modified: 09-12-2010, 01:26 AM by dadar.)
09-12-2010, 12:58 AM
Find
wbellman Offline
Junior Member

Posts: 2
Threads: 0
Joined: Sep 2010
Reputation: 0
#4
Solved: 8 Years, 9 Months, 1 Week ago RE: Demo segfault at start

(09-11-2010, 07:30 PM)Urkle Wrote: Is there any further information about the crash? Can you try looking at the last output of dmesg?
And does the launcher even run??? And yes, please run the launcher through gdb and give me a stack trace if that is the program crashing.

I'm having the same or a similar issue.

Launcher works. Seg fault on launcher exit/game start.

Here's dmesg: (three attempts to run)
---------------
[ 1005.140503] Amnesia.bin[2549]: segfault at 46 ip 00662977 sp bfe3a4f0 error 4 in libc-2.11.1.so[607000+153000]
[ 1010.125137] Amnesia.bin[2550]: segfault at 46 ip 00770977 sp bfcb9080 error 4 in libc-2.11.1.so[715000+153000]
[ 1071.300510] Amnesia.bin[2596]: segfault at 46 ip 00518977 sp bfee9cb0 error 4 in libc-2.11.1.so[4bd000+153000]
----------------

GDB output:
----------------
#0 0x0079b977 in fclose () from /lib/tls/i686/cmov/libc.so.6
#1 0x083f16d4 in cLuxBase::RaiseCrashFlag() ()
#2 0x083ff93d in cLuxBase::InitEngine() ()
#3 0x08403414 in cLuxBase::Init(std:Confusedtring const&) ()
#4 0x082afde3 in hplMain(std:Confusedtring const&) ()
#5 0x0853fc3d in main ()
-----------------

ldd
-----------------
linux-gate.so.1 => (0x005cf000)
libGL.so.1 => /usr/lib/nvidia-current/libGL.so.1 (0x0035f000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00c55000)
libGLEW.so.1.5 => /usr/local/games/AmnesiaDemo/./libs/libGLEW.so.1.5 (0x007a1000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x00110000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00962000)
libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x007e6000)
libtheora.so.0 => /usr/lib/libtheora.so.0 (0x001bb000)
libopenal.so.1 => /usr/lib/libopenal.so.1 (0x00eb0000)
libalut.so.0 => /usr/local/games/AmnesiaDemo/./libs/libalut.so.0 (0x00dfb000)
libIL.so.1 => /usr/local/games/AmnesiaDemo/./libs/libIL.so.1 (0x009b0000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00117000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x0020d000)
libSDL_ttf-2.0.so.0 => /usr/lib/libSDL_ttf-2.0.so.0 (0x00e90000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0x00138000)
libfltk.so.1.1 => /usr/lib/libfltk.so.1.1 (0x0029c000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00424000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x006c8000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00151000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x007ef000)
libGLcore.so.1 => /usr/lib/nvidia-current/libGLcore.so.1 (0x00efe000)
libnvidia-tls.so.1 => /usr/lib/nvidia-current/tls/libnvidia-tls.so.1 (0x00170000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00172000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00ab1000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00182000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00186000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00cf0000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x0019d000)
libpng12.so.0 => /lib/libpng12.so.0 (0x0051a000)
libz.so.1 => /lib/libz.so.1 (0x001a6000)
libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x00dd1000)
libpulse.so.0 => /usr/lib/libpulse.so.0 (0x0053f000)
libdirectfb-1.2.so.0 => /usr/lib/libdirectfb-1.2.so.0 (0x005d0000)
libfusion-1.2.so.0 => /usr/lib/libfusion-1.2.so.0 (0x00be9000)
libdirect-1.2.so.0 => /usr/lib/libdirect-1.2.so.0 (0x00581000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x006ee000)
/lib/ld-linux.so.2 (0x0069f000)
libXft.so.2 => /usr/lib/libXft.so.2 (0x00597000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00647000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00e06000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x005ab000)
libXt.so.6 => /usr/lib/libXt.so.6 (0x00bf3000)
libpulsecommon-0.9.21.so => /usr/lib/libpulsecommon-0.9.21.so (0x00cfe000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00677000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x0034c000)
libXtst.so.6 => /usr/lib/libXtst.so.6 (0x00355000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x005c5000)
libexpat.so.1 => /lib/libexpat.so.1 (0x00764000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x0035b000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00690000)
libwrap.so.0 => /lib/libwrap.so.0 (0x00696000)
libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0x00d49000)
libdbus-1.so.3 => /lib/libdbus-1.so.3 (0x00e0a000)
libuuid.so.1 => /lib/libuuid.so.1 (0x006bc000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0x00949000)
libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0x00e43000)
libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x0250e000)
---------------

System Info:
Ubuntu 10.04
Intel® Core™2 CPU 6320 @ 1.86GHz
MemTotal: 2059392 kB
MemFree: 649132 kB

lspci:
----------------
00:00.0 Host bridge: Intel Corporation 82975X Memory Controller Hub
00:01.0 PCI bridge: Intel Corporation 82975X PCI Express Root Port
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 220] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express (rev 02)
05:04.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 04)
05:04.1 Input device controller: Creative Labs SB Live! Game Port (rev 01)
----------------

Any ideas?
09-23-2010, 04:43 AM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#5
Solved: 8 Years, 9 Months, 1 Week ago RE: Demo segfault at start

From that it looks like the game can't write to your home directory.

Can you check that the ~/.frictionalgames/Amnesia/MainDemo directory exists?

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-23-2010, 12:50 PM
Website Find
wbellman Offline
Junior Member

Posts: 2
Threads: 0
Joined: Sep 2010
Reputation: 0
#6
Solved: 8 Years, 9 Months, 1 Week ago RE: Demo segfault at start

(09-23-2010, 12:50 PM)Urkle Wrote: From that it looks like the game can't write to your home directory.

Can you check that the ~/.frictionalgames/Amnesia/MainDemo directory exists?

I did. The permissions looked proper (for my user and default group), but to check I went and added world write permissions... lo and behold the game started. I'll let you know if I run into problems...

Curious though... how did you catch the write permission issue? fclose() on libc in the GDB trace or the DMESG errors?
09-25-2010, 04:41 AM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#7
Solved: 8 Years, 9 Months, 1 Week ago RE: Demo segfault at start

the gdb trace.
When the game starts up it writes a small file and then after the graphics are initialized it removes the file. It's used to "detect" when the game crashes due to graphics driver issues and resets the configuration to the default if the file still exists on startup.

There is an updated version of the demo coming soon that will fix this and several other crashes.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-25-2010, 04:56 AM
Website Find




Users browsing this thread: 1 Guest(s)