MantisBT - Zandronum
View Issue Details
0003649Zandronum[All Projects] Bugpublic2019-05-04 03:132022-10-12 21:50
BLOODWOLF 
 
normalcrashalways
closedinvalid 
LaptopWindows8.1
3.0 
 
0003649: Unhandled exception in zandronum.exe
Issue seems to be intermittent but, occurs every Brutal Doom 2 game session (I really hope it's not being caused by BD but, will do some checking). And I believe it occurs after killing a shotgun zombie then Zand will close out and windows will inform the user that Zandronum.exe has stopped working. So, clicked the debugger button to open it up in Visual Studio [provided screenshot] and states:

Unhandled exception at 0x6EA065A2 (riched20.dll) in zandronum.exe: 0xC0000005: Access violation writing location 0x000E0E58. occurred

With process[3768] Zandronum.exe
Thread [1412] Main Thread
Stack Frame [6EA065A2]
Pretty sure it occurs after killing a shotgunguy. Might happen on the first map or might happen on the fourth map or later. Just happens during normal play.
I don't have any experience in the C languages and am using a few mods:
-Doom2.wad
-BD21RC9.pk3
-BD21RC9Patch20190503.pk3
-BD21_XVME12RC920190503.pk3
-BD21_XVME12RC9_respawner20190503.pk3
-BDV21MUT_EWMRC920190503.pk3
-DoomMetalVol5.wad
No tags attached.
png screenshot.png (111,062) 2019-05-04 03:13
/tracker/file_download.php?file_id=2481&type=bug
png

zip ZandronumCrash.zip (1,894) 2019-05-05 20:51
/tracker/file_download.php?file_id=2482&type=bug
Issue History
2019-05-04 03:13BLOODWOLFNew Issue
2019-05-04 03:13BLOODWOLFFile Added: screenshot.png
2019-05-04 18:59BLOODWOLFNote Added: 0020635
2019-05-05 17:23Edward-sanNote Added: 0020637
2019-05-05 17:23Edward-sanStatusnew => feedback
2019-05-05 20:51BLOODWOLFFile Added: ZandronumCrash.zip
2019-05-05 20:52BLOODWOLFNote Added: 0020638
2019-05-05 20:52BLOODWOLFStatusfeedback => new
2019-05-05 20:55BLOODWOLFNote Edited: 0020635bug_revision_view_page.php?bugnote_id=20635#r12569
2022-10-12 21:50DrinkyBirdNote Added: 0022436
2022-10-12 21:50DrinkyBirdStatusnew => closed
2022-10-12 21:50DrinkyBirdResolutionopen => invalid

Notes
(0020635)
BLOODWOLF   
2019-05-04 18:59   
(edited on: 2019-05-05 20:55)
Found out this was being caused by a bad script I wrote in the Patch.pk3
#library "CVARSPatch"
#include "zcommon.acs"

Script "BD_DisableReloading" Enter
{
    if (GetCvar("bd_disablereloading") == 1) {GiveInventory("turboreload",1);}
    if (checkinventory("istacticalclass") == 1){TakeInventory("turboreload",1);}
}

Change it to this, recompiled, and cannot reproduce a crash anymore:
#library "CVARSPatch"
#include "zcommon.acs"

Script "BD_DisableReloading" Enter
{
    If(GetCvar("bd_disablereloading") == 1 && checkinventory("istacticalclass") == 0)
    {
        GiveInventory("turboreload",1);
    }
}

Is it possible to have it give the user a hint as to the problem in a catch block maybe?

(0020637)
Edward-san   
2019-05-05 17:23   
Can you make two reduced wad examples with the supposedly correct and the wrong script, respectively?
(0020638)
BLOODWOLF   
2019-05-05 20:52   
Uploaded the two reduced pk3's with the old script (Bad) and new script (Good). Have to be loaded after the bd21rcX (doesnt matter what version for these honestly).
Pretty sure the new script is good, played last night on Doomseeker for at least four levels and never crashed so I am assuming the Good version is actually good.
(0022436)
DrinkyBird   
2022-10-12 21:50   
[22:44] BLOODWOLF: can we close our own issues on the tracker? I still have a few open that were screw ups I made in BD and not actually zand issues
[22:45] BLOODWOLF: 3649 and 3832 are both dumbz on my part and should be closed