http://www.doomworld.com/idgames/index.php?id=16043
Crashes on attempting to load the map.
Does not happen ZDoom [r2666].
[r931] Awakening crashes on load
Moderator: Graf Zahl
-
- Posts: 106
- Joined: Fri Sep 02, 2005 9:15
- Location: Texas
[r931] Awakening crashes on load
- Attachments
-
- CrashReport.zip
- (21.44 KiB) Downloaded 78 times
- Gez
- Developer
- Posts: 1399
- Joined: Mon Oct 22, 2007 16:47
Re: [r931] Awakening crashes on load
There were several crashes that suddenly appeared with the update to that ZDoom revision. I've applied some "band-aid fixes" but more investigation are needed to find the root cause of the problem, rather than simply dodging it.
But that one crash seems older than this revision because I also have it in my experimental "GZDoom64" branch which is based on r929.
I just don't get it. There is this "for" loop:
And when I debug, the crash happens somewhere inside the loop. And MSVC tells me that numside's value is 0xc689 (50825), but that i is a huge value like 0x256db8 (2 452 920). How does this even make sense?
But that one crash seems older than this revision because I also have it in my experimental "GZDoom64" branch which is based on r929.
I just don't get it. There is this "for" loop:
Code: Select all
for (i = 0; i < numsides; ++i)
{
... lotsa stuff...
sides[i].RightSide = right;
sides[right].LeftSide = i;
}
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: [r931] Awakening crashes on load
Do you by any chance debug a release build?
- Gez
- Developer
- Posts: 1399
- Joined: Mon Oct 22, 2007 16:47
Re: [r931] Awakening crashes on load
Yeah, but it usually works. Whereas debug builds tend not to reproduce the crashes in the first place...
Couldn't get it to crash in the debug build until I fell in deep nukage and it called P_FreeLevelData() during the attempt to restart the level.
Couldn't get it to crash in the debug build until I fell in deep nukage and it called P_FreeLevelData() during the attempt to restart the level.
- Gez
- Developer
- Posts: 1399
- Joined: Mon Oct 22, 2007 16:47
- NeoHippo
- Posts: 408
- Joined: Tue Sep 13, 2005 0:47
- Location: British Columbia Canada
Re: [r931] Awakening crashes on load
I just tried Awakening with various versions and for me the crash happens starting with r906.
If that is any help.
If that is any help.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: [r931] Awakening crashes on load
Are you sure that r905 still works? r906 only makes a minor change to the actor initialization code concerning Strife dialogues that's only relevant for UDMF maps.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: [r931] Awakening crashes on load
Getting closer. It's just dumb luck that the debug build does not crash. I added an assert for the crash condition and it also gets triggered in Debug. No crash though. It just trashes some random memory.
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact: