Bug 5556 - Game crashes after start menu
Status: RESOLVED FIXED
Alias: None
Product: Psychonauts
Classification: Unclassified
Component: everything
Version: unspecified
Hardware: PC Linux
: P3 major
Assignee: Ryan C. Gordon
QA Contact: Ryan C. Gordon
URL:
Depends on:
Blocks:
 
Reported: 2012-06-02 18:25 EDT by Ari
Modified: 2012-06-20 23:44:52 EDT
12 users (show)

See Also:



Description Ari 2012-06-02 18:25:29 EDT
After installation I got the game to run past the introduction scene, right until what seemed to be some dream sequence about some psychic tokens. First time mouse control was involved. After that the game crashed, producing what I remember looked a lot like http://pastebin.com/Sm6sEreU which is what I now get trying to load a saved game in the start menu. Trying to start a new game results in http://pastebin.com/LPirZPyQ

I am using Ubuntu 12.04 with nVidia proprietary drivers through bumblebee (optirun) running on a Asus U36SD laptop. I hope I haven't missed an obvious dependency or two.
Comment 1 Ryan C. Gordon 2012-06-03 05:48:02 EDT
(I'm adding this comment to several bugs here...sorry if you see it multiple times.)

There were some memory corruption bugs in the initial Humble Bundle build, which we believe have been tracked down and fixed now. Most of the crashes are probably due to these.

Those getting Floating Point Exception crashes during cutscenes: that was my fault, I screwed up something hooking up the Bink audio output code. This is also fixed, I think.

Here is a test build, please try it and report back. It's a 2.1 megabyte download: just untar it and overwrite the two files in your game installation.

This build also has joystick support and working FSAA (if the game is way slower for you, you can turn off FSAA in the options menu).

There are still some bugs, but this should be MUCH more playable.

Download it here:

   http://treefort.icculus.org/psychonauts/psychonuts-linux-test-06032012.tar.bz2

We'll do a more formal build once we get some feedback.

--ryan.
Comment 2 Uli 2012-06-03 08:02:48 EDT
So far this build seems a lot better for me. Less crashes and I have sound on the cutscenes.

Ubuntu 12.04; Nvidia propretary drivers (with 2 monitors on twinview and launching the game with SDL_VIDEO_FULLSCREEN_DISPLAY=1)
Comment 3 Ari 2012-06-03 09:58:11 EDT
The game seems to be working just fine now. No crashes so far. Thanks for the quick fix.
Comment 4 Alexander 2012-06-03 10:09:32 EDT
ahhh... *much* better! The crashing seems gone and the audio in cutscenes work!

There is some graphic corruption in background images now (example, pull up
escape menu, the image behind the menu is all blocky and corrupted) however no
more crashes! :)
Comment 5 jbernardo 2012-06-03 11:45:31 EDT
I was going to open a bug on having a floating point crash in the cut scene when entering the obstacle course, but this fix corrects it for me!
Running kubuntu 12.04, fglrx binary drivers, 4GB RAM, on a Toshiba ND550D netbook.
Comment 6 Ben Wiley 2012-06-03 12:36:57 EDT
Hi,

I'm on Ubuntu 12.04, running on a MacBook Pro (13 inch, only has Intel HD Integrated Graphics 3000, 2.3 Ghz, no Radeon).  So I installed your patch just now and it seems to have fixed the sound during the Double Fine intro (which wasn't working for awhile).  Other than that my game seems the same as before, so I'll sum up what was going on:

1. The game likes to crash itself or the entire OS.  This was originally happening on startup, but I managed to run it long enough to save my game once.  This didn't happen when I ran the patched version, but nothing seemed different, so I think it's probably not fixed.
2. Once you start controlling the game-- in the menus and in the game after the prelude-- things move at a glacial pace.  I could move Raz and move the camera, but it was not an enjoyable experience and I quit immediately.

I think visually, the game is fine (just a question, is the scene where the dude shows Raz how to look around at different things supposed to have an all-black background?  Everything I was looking at rendered correctly, and if the place was supposed to be black, that's fine, but otherwise there are textures missing).

It might be an integrated graphics issue-- I've had similar issues with other games-- for ex, super meat boy on mac OS X-- but the patched super meat boy for linux on the same computer works perfectly.  And I can play games like Team Fortress 2 perfectly.  So I feel like this problem can be addressed.

Thanks,
Ben
Comment 7 DLH 2012-06-03 16:35:11 EDT
Thanks, that works much better. I actually made it through Basic Braining finally! I've still had some crashes when traveling to or from Ford's Sanctuary. Also, the figments menu isn't displaying properly.

I watched a video of Basic Braining from the Windows port, and I noticed that some elements were missing on my playthrough of that mission. The most noticeable things were the background music and the projected videos of Coach Oleander. In fact, the lack of the projected videos made it so that I couldn't even see the first climbing wall of the mission, which would normally have been illuminated by the projection. The shadows under the characters seem to be missing as well.

On the other hand, joystick control is pretty much perfect, and this game works better with my Dualshock 3 than any other Humble Bundle Linux port I've ever tried.

* Ubuntu 12.04 64-bit
* Thinkpad T420
* Nvidia NVS4200M (Optimus technology implemented in Ironhide)

P.S. I don't want to nit-pick, but is there any way to make the mouse and keyboard grabbing less...zealous? I'd like to be able to switch windows without quitting the entire game. Fortunately Ctrl-Alt-F1 still works, but that's about all I can do.
Comment 8 Ryan C. Gordon 2012-06-03 16:49:52 EDT
(In reply to comment #6)
> I think visually, the game is fine (just a question, is the scene where the
> dude shows Raz how to look around at different things supposed to have an
> all-black background?  Everything I was looking at rendered correctly, and if
> the place was supposed to be black, that's fine, but otherwise there are
> textures missing).

I think it's supposed to be black; he's pulled Raz into the Mental World, so it's supposed to look dream-like. I'll double-check against the Windows version, though.

--ryan.
Comment 9 Ryan C. Gordon 2012-06-03 16:51:08 EDT
(In reply to comment #7)
> P.S. I don't want to nit-pick, but is there any way to make the mouse and
> keyboard grabbing less...zealous? I'd like to be able to switch windows without
> quitting the entire game. Fortunately Ctrl-Alt-F1 still works, but that's about
> all I can do.

Ctrl-G will grab and ungrab the mouse (but we still auto-grab it when you bring keyboard focus back to the game window; I'll probably change that in a later build, though).

--ryan.
Comment 10 Ryan C. Gordon 2012-06-04 04:44:16 EDT
(In reply to comment #8)
> I think it's supposed to be black; he's pulled Raz into the Mental World, so
> it's supposed to look dream-like. I'll double-check against the Windows
> version, though.

Just to follow up: this is black in the Windows version, too.

--ryan.
Comment 11 indubitableness 2012-06-04 14:38:45 EDT
Using the psychonauts-linux-test-06032012 build on Slackware64 13.37, Multilib
Kernel verserion: 2.6.37.6
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800
GPU: Nvidia GeForce 9500 GT
NVidia Driver: NVIDIA-Linux-x86_64-285.05.09
Game is installed at $HOME/.psychonauts

I get a crash immediately after Basic Braining. When the cutscene with the bullies ends the game crashes consistently.

Here is the full command line output: http://pastebin.com/pm7Cj0Ps

This output is from loading a save game which loads at the start of the video where the bullies threaten you and Sasha Nein gives you the button, after which the crash occurs.

I also noticed that the mental projection of Coach Oleander is missing from Basic Braining. It took me a little while to figure out why the camera kept focusing on a blank spot. When the camera similarly focuses on the first mental baggage tag the tag appears to be invisible, though when you approach it yourself you can see it there. When it appears invisible you can hear the sound of it bouncing. When you reunite a tag with its luggage there is no sound during the clip that is played.

It also seems as though many other sounds are not loading during Basic Braining. It is difficult for me to know for sure if this is the case, but the whole level seems a lot less aurally robust than I'm used to and it seems as though the coach isn't hassling you as much. Plus, some lines of dialogue seem to be cut short and some sound effects appear to load only some of the time.
Comment 12 malevolent 2012-06-04 15:37:56 EDT
Oh my god! It just works!! 

It's still buggy (textures on grass and other minor flicks) but now it does not crash at every moment!!

Now I'm gonna try unnoficial and windows spanish subtitles (that I thought the game crashed a lot for their fault) but I think that patch shoud be on HIB download section!

Thank you ryan
Comment 13 Nathan 2012-06-06 08:21:33 EDT
The new build worked until the cutscene of Raz exiting his first brain tumbler session. Fired it up from terminal and dropped the resultant text into http://pastebin.com/U2uu3bnU , in case it has anything useful in it.
Comment 14 Justin 2012-06-08 01:24:00 EDT
I've tried out this patch, which fixed the crashes with the cutscene right after Basic Braining. I can confirm that it still crashes (or, more accurately, freezes) after the first Brain Tumbler session.

There were also some inconsistent segfault crashes around the Gypsy cart.

I'm on Linux Mint 12
GPU: nVidia 6200 with proprietary drivers installed

Before the patch, cutscene crashes were caused by OpenAL errors. Disabling Hardware Acceleration doesn't help.

*SIGH*
If only I had the foresight to leave more room on my Windows partition on my ancient computer. I didn't expect I'd be using so much for games. On the bright side, I'm helping the Linux port be better.
Comment 15 Paul M Edwards 2012-06-11 00:00:14 EDT
The patch has made the game far more stable and the cutscene audio works. However, the game still crashes when scrolling the map for a bit.

Joystick input is working with this build, but performance is awful (with all effects off) and I think it's due to an issue with the joystick input polling or the game not recognizing my joystick properly...

When running in terminal the console is spammed with this message repeating:
Unknown POV hat state: -1

The right analog control which is apparently for headlook is not recognizing up/down movement, only left/right.

The joystick is a Logitech RumblePad 2.

I'm running Ubuntu 11.10 on an Intel Pentium D @ 3GHz w/2GB DDR2 RAM & an ATI Radeon X1300 PCIe w/256MB VRAM.

If I start the game with the joystick unplugged and just use keyboard/mouse, performance is fine and the log is not spammed with the "Unknown POV hat state" message.
Comment 16 Paul M Edwards 2012-06-11 00:04:08 EDT
I'm not experiencing crashes after the Brain Tumbler cutscene or when practicing telekinesis at the Gypsy Cart.
Comment 17 Erich Hoover 2012-06-11 16:39:12 EDT
Is this patch included in the version in the Ubuntu Software Center?  I had the game completely lockup my X11 display (had to switch to a terminal and force-kill the game to get it back).
Comment 18 Paul M Edwards 2012-06-11 18:12:40 EDT
MD5SUMs:
5fb19c389599fe5e9d8f1880e7872d75  Psychonauts
ada70551c0fa19e8a2e7cb7eee49b750  Psychonauts.old

Top file is from the patch. Bottom is from original HIB5 download.

Also note the file sizes:
paul@Chameleon:~/Games/psychonauts$ ls -lh Psychonauts*
-rwxrwxr-x 1 paul paul 6.4M 2012-06-03 02:31 Psychonauts
-rwxr-xr-x 1 paul paul  62M 2012-06-05 08:08 Psychonauts.old
Comment 19 Erich Hoover 2012-06-11 18:20:02 EDT
(In reply to comment #18)
> MD5SUMs:
> 5fb19c389599fe5e9d8f1880e7872d75  Psychonauts
> ada70551c0fa19e8a2e7cb7eee49b750  Psychonauts.old
> ...
MD5SUM:
abb8a87a61dd2e9736b4c1b20e589bb3  Psychonauts

File Size/Modification Date:
-rwxr-xr-x  1 root root 6.4M 2012-06-07 21:24 Psychonauts

I relaunched the game and it seemed to be working, I probably hit a different, intermittent, bug.
Comment 20 Paul M Edwards 2012-06-11 19:51:23 EDT
(In reply to comment #19)
> MD5SUM:
> abb8a87a61dd2e9736b4c1b20e589bb3  Psychonauts
> 
> File Size/Modification Date:
> -rwxr-xr-x  1 root root 6.4M 2012-06-07 21:24 Psychonauts
> 
> I relaunched the game and it seemed to be working, I probably hit a different,
> intermittent, bug.


Probably; I've experienced the same as you previously on the original build. Don't think I have on the current build, though I am having some trouble in the Levitation practice area.

I actually suspect that my video card is overheating though because the cooling fan on it quit working a while ago and this is the first time I've really pushed it hard since then... Thinking about replacing it with a newer, better card.
Comment 21 Ryan C. Gordon 2012-06-20 11:49:15 EDT
(I'm adding this comment to many bugs that this fix might apply to...sorry if you see it multiple times or it doesn't _actually_ fix your issue.)

Here is a new test build, please try it and report back. It's a 2.1 megabyte
download, so you don't have to redownload the whole game again.

This is meant to fix crash bugs mostly. We still have rendering issues, etc to sort out. If this didn't fix your issue, please report it on this bug. If there are still other unrelated issues, please file a new bug or add yourself to the CC list of one of the other bugs. Here's the open bug list if you want to check for others with the same problem:

    https://bugzilla.icculus.org/buglist.cgi?query_format=specific&bug_status=__open__&product=Psychonauts

Steam users: you'll get this through Steam shortly.

Linux users, download this...

  http://treefort.icculus.org/psychonauts/psychonauts-linux-0.3-patch.tar.bz2

...and unpack it. Overwrite Psychonauts and libSDL-1.2.so.0 with it. This works with either of the first two builds from HumbleBundle.com.

Mac users that aren't using Steam, download this...

  http://treefort.icculus.org/psychonauts/psychonauts-mac-0.3-patch.tar.bz2

...double click it, and run the patcher program it produces.

We'll do a more formal build once we get some feedback.

--ryan.
Comment 22 Ryan C. Gordon 2012-06-20 23:44:52 EDT
This bug has become a dumping ground for several unrelated crashes, most if not all of which should be fixed by 0.3, so I'm resolving it.

If you're still having issues, take a look at other open bugs and add yourself to the CC list for one that sounds right (or open a new bug).

Thanks,
--ryan.