#3 Failure to allocate memory; failed assertion on startup

open
nobody
None
5
2000-10-04
2000-10-04
No

System: LinuxPPC2000 on an Apple Powerbook (Pismo) G3 400Mhz.
Game version: tuxracer 0.60 (tar-ball)

I had to change the following in fonts.c (line 81) to get this to run properly:

texture_node_t *tex;
...
check_assertion( tex != NULL, "out of memory" );

TO

texture_node_t *tex = (texture_node_t *)malloc(sizeof(texture_node_t));
...
check_assertion( tex != NULL, "out of memory" );

I realize I may have added a memory leak (I didn't scan all the code for that dependency) - but at least the game doesn't die on startup saying that all of my 320MB of RAM are consumed! Now I just need to figure out how to get the graphics acceleration working and I'm set to go.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks