-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes the game crash when the player takes a berserk power up #503
Comments
Oh! Could you try to narrow down when this happens? Does it only happen with NEIS.wad? Did you change sound settings or display size? |
Does windows print anything when the game crashes? Any message? |
Windows wrote this |
Sigh, nothing relevant in these files. Could you describe a bit more precise what happens? Do you hear the pick-up sound? Does the game crash immediately, or only after a few frames? Does the current weapon start to lower? |
Can you record a demo of your actions up to the crash? It doesn't actually have to be from a crashing run. |
The pickup sound did play i think, the game then freezes for less than a second and then shuts down without any error messages. I will record next time when the game crashes Also excuse me for being poor with information, i should have shared this information from the very start |
I noticed that the pickup palette fades out too quickly, just blinks for a moment. Maybe that issue could be related? EDIT: the behavior is the same in older versions, so most likely palette stuff is not the culprit. |
@IsBebs This may be crash-prone, there is a DEHACKED patch inside NEIS.wad, so you should not load NEIS.deh separately (btw, where have you got the DEH for NEIS? It's not bundled separately... |
Is this in general or only related to this mod? |
In general. Though most likely it's a false alarm, I don't know how long the pickup palette should last, most likely it works properly as the behavior is the same in older versions. |
That's probably the problem, i loaded dehacked files without checking if they were in the wad. |
@IsBebs readmes are useful :) the NEIS readme says clearly:
|
The game crashed again and the dehacked file wasn't loaded, so that wasn't the problem. |
I made a recording where i recreated the crash, the movie file is to large so i share it through onedrive |
Does not crash under Linux, either playing the demo or manually loading the save and picking up the berserk. No errors under Valgrind either. I only tried a few times though, it looks like you had to do it a lot of times. Can you either find a more consistent way to manually reproduce or use some debugging tools yourself? |
@Zodomaniac I'm using the ultimate Doom wad from the GOG version, it says that the version is 1.9 |
...and again.
Edit: does not seems to be caused by 09efa6e, even after reverting to original |
Interesting. After couple of attempts to reproduce it again,
By looking into map in Doom Builder, MT type 32000 is "visual mode camera" (screenshot). AFAIR, this thing was used in versions of Doom Builder, 1.x for sure, and probably in some earlier 2.x, it keeps camera position of visual mode. Nowadays, camera position is saved in I have deleted this thing, resaved whole NEIS.wad and tried again to reproduce this crash. After about ~100 attemps there were no crash. Could it be a key? |
@JNechaevsky Thanks for testing! Though, I don't think it has to do with this spurious map thing. After all, the fact that it has no skill level set means that it will never appear on the map. A crash in |
...a-a-and,
Well, my steps to reproduce:
|
This only makes sense if the Unfortunately, this issue is so rarely reproducible that I cannot really tell if the idea I have to fix this actually works. However, since this appears to be a memory management issue, it should be possible to increase the chances by forcefully decreasing the available memory size with a e.g. The last remaining question, though, is what is so special about NEIS.wad that this issue appears there? Is the berserk box patch used in a texture so that its lump is only needed temporarily during texture composition and thus has its flag changed to |
I tried the -mb 4 parameter |
Still doesn't reproduce for me on Linux under Valgrind, with or without |
Alright, I have found the cause! First, steps to reproduce:
Repeat until it crashes. But, why does it crash? If you pick up the Berserk kit the first time and have the Crispy HUD enabled, its sprite is shown as a patch in the bottom left corner of the screen. For this, the sprite lump is loaded with the However, in order for the Berserk kit to be rendered in the game scene, its sprite must be loaded into a "vissprite" in |
Congratulations @IsBebs on reporting and helping to track down a really obscure bug! |
Version of Crispy Doom: Daily build 5.6.3 20191203
Operating System and version: Windows 10 Home v1903
Game: Doom
Any loaded WADs and mods :
crispy-doom.exe -iwad DOOM.WAD -merge NEIS.wad -deh NEIS.deh
Bug description
Observed behavior:
Sometimes the game crashes when i take a berserk power up. If i restart and take same power up again, the game doesn't crash
The text was updated successfully, but these errors were encountered: