Page 1 of 1

[r168] r_smoothlighting causes fatal crash

Posted: Thu Sep 04, 2008 9:11
by Rachael
http://sp.drdteam.org/r168crash.zip

Included in the zip is my compiled version of the executable, with the MAP file, and the crash report. You may not need it.

Suspected function is wallscan_striped, in r_segs.cpp. It appears that when the GL renderer is enabled, it does not like this CVAR enabled. This problem may appear elsewhere in the code, as well.

Posted: Thu Sep 04, 2008 14:38
by Graf Zahl
No, crashing function is side_t::GetLightLevel, which coincidentally is the only place in the code where smoothlighting is used.

Posted: Thu Sep 04, 2008 14:57
by Rachael
Ah, ok. I'm still trying to figure out how to read crash dumps and MAP files. :)

Posted: Thu Sep 04, 2008 15:13
by Graf Zahl
If you want to find the function look for the latest 'call' that might result in the address where it crashes and then look up that value in the map file.

Posted: Thu Sep 04, 2008 15:22
by Rachael
Thank you, Graf. :)