Page 1 of 1

[r100] Dynamic light related crash on respawn

Posted: Thu May 01, 2008 16:19
by Torr Samaho
Start GZDoom with

Code: Select all

gzdoom.exe -host 1 +map map01 -file lights.pk3
grab the rocketlauncher, suicide by firing against a wall, respawn and GZDoom will crash.

Posted: Fri May 09, 2008 20:51
by Torr Samaho
Some more information on the crash: It happens in gl_SetActorLights, because the dynamiclights array of the doomplayer actor contains NULL pointers after respawning. For the time being I just remove the NULL pointers from the array in ST to workaround the crashes. Of course this is just an ugly hack and the crashes should be fixed by not letting these NULL pointers appear in the first place.

Posted: Tue May 13, 2008 10:41
by Graf Zahl
I just ported your fix because I currently have no idea why this is happening.