[Hexen] SEGV during 3D weapon use
Using 3D weapon near walls causes segmentation fault.
How to reproduce:
1. Copy Axe 3D model from http://colocall.net/~vvv/HUD-Axe.pk3 to data/jhexen/auto directory.
The model is extracted from XCCP 1.2.
2. Unpack files from attached savegame.zip to runtime/hexndata/hexen directory.
3. Start Hexen.
4. Load the game named "Segmentation fault".
5. Use the weapon (press Ctrl or left mouse button).
#3 Updated by skyjake over 10 years ago
Some offline comments:
- - - - - - - - - - - -
This assert fails in P_NewParticle():
pt->sector = R_PointInSubsector(FIX2FLT, FIX2FLT)->sector;
danij: Hmm, the would indeed suggest a degenerate nodebuild case. I'll test this once I've merged the map-cache changes (I've addressed the two causes of degenerates known to me).
#4 Updated by vvv1 over 10 years ago
#8 Updated by danij about 10 years ago
I think the best we can hope to achieve with this issue at present is to quietly kill any particle which ends up in a degenerate BSP leaf (i.e., sector == NULL as per the assert() in Generators_LinkToList() ).
This particular instance can be resolved but there are many others. The Hexen IWAD is (unfortunately) so riddled with mapping bugs that solving all the degenerate cases is a very tall order indeed.