r3088 Crash when starting a game
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
-
- Posts: 26574
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
r3088 Crash when starting a game
On starting a game of Doom2 with my build of r3088, the game crashes as the level starts. The compile did not report any errors.
Seeing as how the binary doesn't work, I haven't put it on to the DRD SVN page but I have uploaded the map file to the server:
http://svn.drdteam.org/zdoom/zdoom-r3088.map.gz
If you need the binary, let me know.
[edit] GZdoom r1156, based off of r3088, does not crash. [/edit]
Seeing as how the binary doesn't work, I haven't put it on to the DRD SVN page but I have uploaded the map file to the server:
http://svn.drdteam.org/zdoom/zdoom-r3088.map.gz
If you need the binary, let me know.
[edit] GZdoom r1156, based off of r3088, does not crash. [/edit]
-
-
- Posts: 26574
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
-
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
Re: r3088 Crash when starting a game
Does r3087 work properly?
-
-
- Posts: 17934
- Joined: Fri Jul 06, 2007 3:22 pm
Re: r3088 Crash when starting a game
I don't get crashes with my own build.
-
-
- Posts: 26574
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: r3088 Crash when starting a game
Strange. I have now downloaded and compiled all revisions from 3085 to 3089 and they all crash for me. The compiling process seems to be going properly - there are no warnings - but the game crashes when I try to start a level. This is even more worrying because I can download and play r3085 (and other revisions) from the DRD SVN page and it works - and it was me who compiled them!
I have cleaned and rebuilt the solution a number of times. I have done a completely fresh check out and build. Neither worked.
I have made a debug build but when it crashed everything froze and it was difficult to get back to the Visual C++ screen, but I managed. I also ran the minidump file from a crash report through the debugger and both the minidump and the debug build ended up pointing at the same location:
Any ideas?
I have cleaned and rebuilt the solution a number of times. I have done a completely fresh check out and build. Neither worked.
I have made a debug build but when it crashed everything froze and it was difficult to get back to the Visual C++ screen, but I managed. I also ran the minidump file from a crash report through the debugger and both the minidump and the debug build ended up pointing at the same location:
Spoiler:I have recently formatted my computer and reinstalled everything so there could be something going wrong with my compiling environment. However, I can see absolutely nothing to give me a clue as to what it is. Zdoom is apparently compiling correctly, but it crashes. GZdoom compiles properly and does not crash. I can't think of anything that I did differently when setting up my compiling environment.
Any ideas?
-
- Lead GZDoom+Raze Developer
- Posts: 49184
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r3088 Crash when starting a game
The crash appears to happen in some assembly code so I guess something went wrong there during your reinstall.
-
-
- Posts: 26574
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: r3088 Crash when starting a game
Any clues as to how I can track that down or why GZdoom works when Zdoom doesn't?
-
-
- Posts: 17934
- Joined: Fri Jul 06, 2007 3:22 pm
Re: r3088 Crash when starting a game
It's a render function, and presumably you use GZDoom in OpenGL mode...
-
-
- Posts: 26574
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: r3088 Crash when starting a game
Indeed, and I can't even remember how to get GZdoom to run in software mode to check.Gez wrote:It's a render function, and presumably you use GZDoom in OpenGL mode...
However, finding out that the problem was in assembly code gave me the clue that I needed. When I installed my compiling environment, I downloaded the windows install version of nasm (nasm-2.09.04-installer.exe) so I unzipped the old copy of nasm from my backup zip (nasm 2.01) and now my builds work.
So, for what ever reason, Zdoom does not seem to be compatible with nasm-2.09.04. I don't know if this is something that needs to be looked at or not, but it is what was at the root of my problem.
[edit spelling]
Last edited by Enjay on Tue Jan 04, 2011 3:47 pm, edited 1 time in total.
-
-
- Posts: 17934
- Joined: Fri Jul 06, 2007 3:22 pm
Re: r3088 Crash when starting a game
The version I use is 2.07; so presumably the problem appeared either in 2.08 or 2.09.
If anybody feels like trying with 2.08: http://www.nasm.us/pub/nasm/releasebuilds/2.08/win32/
If anybody feels like trying with 2.08: http://www.nasm.us/pub/nasm/releasebuilds/2.08/win32/
-
- Lead GZDoom+Raze Developer
- Posts: 49184
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: r3088 Crash when starting a game
Maybe they changed something that doesn't work with ZDoom's self-modifying code...
-
-
- Posts: 26574
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: r3088 Crash when starting a game
OK, I checked with 2.08.01 and then rechecked with 2.09.04 (this time, just the zipped version rather than the windows exe installer).
2.08.01 did not crash but, like before 2.09.04 did. So, there is indeed some incompatibility between Zdoom and nasm 2.09.04.
2.08.01 did not crash but, like before 2.09.04 did. So, there is indeed some incompatibility between Zdoom and nasm 2.09.04.
-
- Site Admin
- Posts: 7749
- Joined: Wed Jul 09, 2003 10:30 pm
Re: r3088 Crash when starting a game
The culprit is this change in 2.09:
There are some four-byte values that get self-modified, and they were optimized into byte values, so the self-modification ended up trashing the following instructions.NASM Version History wrote:Make -Ox the default optimization level.
-
- Posts: 1749
- Joined: Mon Aug 11, 2008 12:59 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Winchester, VA
Re: r3088 Crash when starting a game
Damn, thanks, this was the reason I couldn't test my patches.