Full Version: Spa crash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
pwp71 pointed this out to me today in IRC. Here's how to reproduce it.

First start a practice game with most any car (I used the T73) on Spa-Francorchamps. Then Pause the game and select Leave Game, and Yes when asked to confirm. Then back at the main menu, select Practice Game again, and start the game with the same car & track selection. When it gets to "Loading...Done" it will segfault. In gdb I found that it didn't segfault right away, first I got a Simulation Error, then the next time I started a practice game it segfaulted. Here's the backtrace I got:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1223403824 (LWP 3984)]
0x080712cb in AABB::GetCenter (this=0x3f7fdf5e) at include/quat.h:159
159             VERTEX GetCenter() {return center;}
(gdb) bt
#0  0x080712cb in AABB::GetCenter (this=0x3f7fdf5e) at include/quat.h:159
#1  0x08080296 in OBJECTS::DrawObject (this=0x8435cc0, object=0x925af60, max_view_dist=2500, envmap=false, lightmap=false, cubelighting=true) at src/objects.cpp:91
#2  0x08080b13 in OBJECTS::Draw (this=0x8435cc0, cull=true, viewdist=2500, FOV=45, hwratio=1.25, envmap=false, lightmap=false) at src/objects.cpp:250
#3  0x0805b6b2 in OBJECTS::Draw (this=0x8435cc0, cull=true, maxrange=2500, FOV=45, hwratio=1.25) at include/objects.h:171
#4  0x08080ee6 in OBJECTS::Draw (this=0x8435cc0, cull=true) at src/objects.cpp:160
#5  0x08050a6b in drawGLScene () at src/main.cpp:1188
#6  0x080580c5 in main (argc=Cannot access memory at address 0x0
) at src/main.cpp:2071

Looks like it's related to the object/collision code somehow.
Should be fixed, R1603. I added a new cached object list for blended skyboxes and wasn't clearing it when loading a new track. Whoops!