Bug 5526 - Game crashes when starting a second New Game
Status: RESOLVED DUPLICATE of bug 5683
Alias: None
Product: Psychonauts
Classification: Unclassified
Component: everything
Version: unspecified
Hardware: PC Linux
: P3 critical
Assignee: Ryan C. Gordon
QA Contact: Ryan C. Gordon
URL:
Depends on:
Blocks:
 
Reported: 2012-05-31 18:59 EDT by ifyoudieinthegameyoudieforreal
Modified: 2012-06-21 14:57:39 EDT
5 users (show)

See Also:



Description ifyoudieinthegameyoudieforreal 2012-05-31 18:59:29 EDT
When I start the game after my first save, When I started the game for the first time, the introduction played automatically (of course), and launched me onto my first adventure. As soon as I was given free reign to explore the camp, after all of the introductory cinematics and the camera-rotation tutorial, I saved and quit the game.

The bug that's reported is a 'floating point exception,' and it seems independent of graphical settings. It's very reproducible; it happens every time, except that, once, I was able to start a new game after loading, quitting to the title screen, and trying it again; this is what made me believe that graphical settings had something to do with it, but I have not been able to repeat that result on any graphical settings.
Comment 1 Steve Dougherty 2012-05-31 23:59:23 EDT
I seem to be getting this crash upon new game too, though it doesn't seem to be a floating point exception. I'm running Ubuntu 11.10 x86_64 with a Radeon HD 5770 with AMD Catalyst 12.4.

The last line on standard output / error is:

ERROR: CAudioDrv::CAudioDrv->alGenSources reports AL_INVALID_VALUE error.

Followed by:

*** glibc detected *** ./Psychonauts: double free or corruption (!prev): 0x0a989ef8 ***
======= Backtrace: =========
/lib32/libc.so.6(+0x6ff02)[0xf743bf02]
/lib32/libc.so.6(+0x70ba2)[0xf743cba2]
/lib32/libc.so.6(cfree+0x6d)[0xf743fc5d]
/home/steve/Games/psychonauts/libSDL-1.2.so.0(SDL_WaitThread+0x44)[0xf770bb54]
/home/steve/Games/psychonauts/libSDL-1.2.so.0(SDL_AudioQuit+0x41)[0xf77037b1]
/home/steve/Games/psychonauts/libSDL-1.2.so.0(SDL_QuitSubSystem+0x7c)[0xf7702cac]
/home/steve/Games/psychonauts/libSDL-1.2.so.0(SDL_Quit+0x1e)[0xf7702d0e]
/home/steve/Games/psychonauts/libSDL-1.2.so.0(+0x654f)[0xf770354f]
[0xf7792400]
======= Memory map: ========
08048000-08684000 r-xp 00000000 fd:01 44850196                           /home/steve/Games/psychonauts/Psychonauts
08684000-08685000 r-xp 0063b000 fd:01 44850196                           /home/steve/Games/psychonauts/Psychonauts
08685000-08699000 rwxp 0063c000 fd:01 44850196                           /home/steve/Games/psychonauts/Psychonauts
08699000-086b9000 rwxp 00000000 00:00 0 
093ac000-0d0c8000 rwxp 00000000 00:00 0                                  [heap]
e9b00000-e9ba5000 rwxp 00000000 00:00 0 
e9ba5000-e9c00000 ---p 00000000 00:00 0 
e9d00000-e9f00000 rwxs 16b26000 00:05 10510                              /dev/ati/card0
e9f00000-ea100000 rwxs 16b25000 00:05 10510                              /dev/ati/card0
ea100000-ea1ff000 rwxp 00000000 00:00 0 
ea1ff000-ea200000 ---p 00000000 00:00 0 
ea300000-ea3e8000 rwxp 00000000 00:00 0 
ea3e8000-ea400000 ---p 00000000 00:00 0 
ea4ff000-ea600000 rwxs 16925000 00:05 10510                              /dev/ati/card0
ea600000-ea6ff000 rwxp 00000000 00:00 0 
ea6ff000-ea700000 ---p 00000000 00:00 0 
ea713000-ea714000 ---p 00000000 00:00 0 
ea714000-eaf14000 rwxp 00000000 00:00 0 
eaf14000-eaf15000 ---p 00000000 00:00 0 
eaf15000-eb715000 rwxp 00000000 00:00 0 
eb715000-eb716000 ---p 00000000 00:00 0 
eb716000-ebf16000 rwxp 00000000 00:00 0 
ebf16000-ebf17000 ---p 00000000 00:00 0 
ebf17000-ec717000 rwxp 00000000 00:00 0 
ec881000-ec982000 rwxp 00000000 00:00 0 
ecadb000-ecbdc000 rwxp 00000000 00:00 0 
ecbe8000-ecbec000 rwxp 00000000 00:00 0 
ecbec000-ecbed000 ---p 00000000 00:00 0 
ecbed000-ed3ed000 rwxp 00000000 00:00 0 
ed3ed000-ed3ee000 ---p 00000000 00:00 0 
ed3ee000-edbee000 rwxp 00000000 00:00 0 
f1bef000-f1bf2000 r-xp 00000000 fd:01 37769650                           /usr/lib32/libpulse-simple.so.0.0.3
f1bf2000-f1bf3000 r-xp 00002000 fd:01 37769650                           /usr/lib32/libpulse-simple.so.0.0.3
f1bf3000-f1bf4000 rwxp 00003000 fd:01 37769650                           /usr/lib32/libpulse-simple.so.0.0.3
f1c29000-f1cfc000 rwxp 00000000 00:00 0 
f1cfc000-f1efd000 rwxs d4d73000 00:05 10510                              /dev/ati/card0
f1efe000-f20ff000 rwxs d4f73000 00:05 10510                              /dev/ati/card0
f20ff000-f2100000 ---p 00000000 00:00 0 
f2100000-f2300000 rwxp 00000000 00:00 0 
f2300000-f23fe000 rwxp 00000000 00:00 0 
f23fe000-f2400000 ---p 00000000 00:00 0 
f2448000-f2449000 ---p 00000000 00:00 0 
f2449000-f2649000 rwxp 00000000 00:00 0 
f2649000-f264a000 ---p 00000000 00:00 0 
f264a000-f284a000 rwxp 00000000 00:00 0 
f284a000-f2a4a000 rwxs d2cbc000 00:05 10510                              /dev/ati/card0
f2a95000-f2b77000 rwxp 00000000 00:00 0 
f2b77000-f2bb7000 rwxs 0002f000 00:05 10510                              /dev/ati/card0
f2bb7000-f32b7000 rwxs 00006000 00:05 10510                              /dev/ati/card0
f32b7000-f34b7000 rwxp 00000000 00:00 0 
f34b7000-f34f2000 r-xp 00000000 fd:01 37751099                           /usr/lib32/libatiadlxx.so
f34f2000-f34f4000 rwxp 0003b000 fd:01 37751099                           /usr/lib32/libatiadlxx.so
f34f4000-f3504000 rwxp 00000000 00:00 0 
f3504000-f587c000 r-xp 00000000 fd:01 37757547                           /usr/lib32/dri/fglrx_dri.so
f587c000-f596d000 rwxp 02378000 fd:01 37757547                           /usr/lib32/dri/fglrx_dri.so
f596d000-f5a3b000 rwxp 00000000 00:00 0 
f5a3b000-f5b07000 r-xp 00000000 fd:01 37757545                           /usr/lib32/fglrx/fglrx-libGL.so.1.2
f5b07000-f5b13000 rwxp 000cb000 fd:01 37757545                           /usr/lib32/fglrx/fglrx-libGL.so.1.2
f5b13000-f5b28000 rwxp 00000000 00:00 0 
f5b28000-f5b62000 rwxp 00000000 00:00 0 
f5b8e000-f5b90000 r-xp 00000000 fd:01 37769550                           /usr/lib32/libXinerama.so.1.0.0
f5b90000-f5b91000 r-xp 00001000 fd:01 37769550                           /usr/lib32/libXinerama.so.1.0.0
f5b91000-f5b92000 rwxp 00002000 fd:01 37769550                           /usr/lib32/libXinerama.so.1.0.0
f5bc7000-f5bd0000 r-xp 00000000 fd:01 37769539                           /usr/lib32/libXcursor.so.1.0.2
f5bd0000-f5bd1000 r-xp 00008000 fd:01 37769539                           /usr/lib32/libXcursor.so.1.0.2
f5bd1000-f5bd2000 rwxp 00009000 fd:01 37769539                           /usr/lib32/libXcursor.so.1.0.2
f5bff000-f5c07000 rwxp 00000000 00:00 0 
f5c07000-f5e07000 r-xp 00000000 fd:01 37226287                           /usr/lib/locale/locale-archive
f5e07000-f5f38000 r-xp 00000000 fd:01 37769534                           /usr/lib32/libX11.so.6.3.0
f5f38000-f5f39000 ---p 00131000 fd:01 37769534                           /usr/lib32/libX11.so.6.3.0
f5f39000-f5f3a000 r-xp 00131000 fd:01 37769534                           /usr/lib32/libX11.so.6.3.0
f5f3a000-f5f3c000 rwxp 00132000 fd:01 37769534                           /usr/lib32/libX11.so.6.3.0
f5f3c000-f5f3d000 rwxp 00000000 00:00 0 
f5f41000-f5f42000 ---p 00000000 00:00 0 
f5f42000-f5f52000 rwxp 00000000 00:00 0 
f5f52000-f5f72000 rwxs fe9e0000 00:05 10510                              /dev/ati/card0
f5f72000-f5f73000 ---p 00000000 00:00 0 
f5f73000-f6ed2000 rwxp 00000000 00:00 0 
f6ed2000-f6ee5000 r-xp 00000000 fd:01 18221138                           /lib32/libresolv-2.13.so
f6ee5000-f6ee6000 r-xp 00012000 fd:01 18221138                           /lib32/libresolv-2.13.so
f6ee6000-f6ee7000 rwxp 00013000 fd:01 18221138                           /lib32/libresolv-2.13.so
f6ee7000-f6ee9000 rwxp 00000000 00:00 0 
f6ee9000-f6eef000 r-xp 00000000 fd:01 37769634                           /usr/lib32/libogg.so.0.7.1
f6eef000-f6ef0000 r-xp 00005000 fd:01 37769634                           /usr/lib32/libogg.so.0.7.1
f6ef0000-f6ef1000 rwxp 00006000 fd:01 37769634                           /usr/lib32/libogg.so.0.7.1
f6ef1000-f6f1a000 r-xp 00000000 fd:01 37769685                           /usr/lib32/libvorbis.so.0.4.5
f6f1a000-f6f1b000 r-xp 00028000 fd:01 37769685                           /usr/lib32/libvorbis.so.0.4.5
f6f1b000-f6f1c000 rwxp 00029000 fd:01 37769685                           /usr/lib32/libvorbis.so.0.4.5
f6f1c000-f7082000 r-xp 00000000 fd:01 37769686                           /usr/lib32/libvorbisenc.so.2.0.8
f7082000-f7093000 r-xp 00165000 fd:01 37769686                           /usr/lib32/libvorbisenc.so.2.0.8Aborted
Comment 2 AimHere 2012-06-01 02:51:27 EDT
I have the game dying with 'Floating point exception' too. The crash doesn't happen when I switch the sound off, either by setting 'Master Volume' to 0 in settings, or invoking Psychonauts with '-nosound'.

FWIW, I'm running Debian Sid, x86_64 with a Radeon HD4870, the proprietary fglrx driver, some OEM Creative Audigy and currently the sound is going through pulseaudio 2.0.

Log of stdout just prior to the crash follows

--
<snipped stuff prior to this>
Anim: anims\dartnew\180.jan: loaded (1 frames latency)
Anim: anims\dartnew\run.jan: loaded (1 frames latency)
Anim: anims\dartnew\walk.jan: loaded (1 frames latency)
Anim: anims\dartnew\trnlfcycle.jan: loaded (1 frames latency)
Anim: anims\dartnew\creep.jan: loaded (1 frames latency)
Anim: anims\dartnew\trnrtcycle.jan: loaded (1 frames latency)
Anim: anims\menubrain\door3crack.jan: loaded (1 frames latency)
Anim: anims\menubrain\door3crackedidle.jan: loaded (1 frames latency)
WARN: (none(-1) SetNewAction LevelScript: no string passed
Anim: anims\dartnew\mainmenu_jump.jan: loaded (1 frames latency)
Anim: anims\menubrain\door3open.jan: loaded (1 frames latency)
PSYCHONAUTS UNIX FILENAME: corrected 'workresource/cutScenes/prerendered/intro.bik' to 'WorkResource/cutscenes/prerendered/INTRO.bik'
PSYCHONAUTS UNIX FILENAME: corrected 'workresource/cutScenes/prerendered/intro.bik' to 'WorkResource/cutscenes/prerendered/INTRO.bik'
Floating point exception
Comment 3 Michael Mrozek 2012-06-01 05:51:01 EDT
I have the same log from comment #2; the SIGFPE itself is in BinkOpen. The same happens when trying to continue, but the door to load a saved game works.

My workaround for now is to move "Profile #" (the # depends on the bunk) out of .local/share/Psychonauts/Profiles, so starting the game will automatically go into the profile creation screen again. Create a profile on another bunk, exit, and move the first directory back to Profiles; then they can be switched between through the saved game screen
Comment 4 David López 2012-06-02 05:28:08 EDT
I have the same log than comment #2, however starting with -nosound option or setting master volume to 0 don't solve the segmentation fault for me. Running ubuntu 12.04 64bits with ATI propietary drivers
Comment 5 Ryan C. Gordon 2012-06-21 14:57:39 EDT
Consolidating bugs...

--ryan.

*** This bug has been marked as a duplicate of bug 5683 ***