Model crash

Bugs that have been resolved.

Moderator: Graf Zahl

User avatar
justin023
Posts: 165
Joined: Wed Sep 21, 2005 10:51
Location: Illinois

Model crash

Post by justin023 »

I'm not sure why this happens but this is what I did:

1. Made model #1, added to definitions, summoned it, gzdoom crashed
2. Made model #2, added to definitions, summoned it, gzdoom crashed
3. Made model #3, added to definitions
4. Summoned models #1 and #2, they appeared and didn't crash
5. Summoned model #3, gzdoom crashed

I attached the crash report that happened when I summoned the "Box" model in the attached models.zip
User avatar
nwbeeman
Posts: 146
Joined: Mon Oct 17, 2005 1:18
Location: Tampa

Post by nwbeeman »

Sounds like something is not set properly in the model code, and the fact you loaded two models before it somehow allowed the code to "work". Temp solution, make the last model something not needed, and put the useful models before it.

Although if it crashes when you summoned model 1 with a model 2 defined, then the temp solution may not work properly. It would only work if only the last model defined crashed when summoned when you have two models defined. So it may be a deeper bug in the code then in the loop that phrases the model data and loads it and......... Graf, feel free to continue the explination when you find one.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

The crash is caused by heap corruption and doesn't happen to me. I fixed a bug in the model lookup code though that caused the game to lock up with your file.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

And since the crash is most likely the same as this one http://forum.drdteam.org/viewtopic.php?t=694

I'll close this report. If it still crashes for you with the next version please report again and send me everything you need to load to reproduce the crash.

Return to “Closed Bugs”