[Fixed] Key bound to MDK causes crash

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Key bound to MDK causes crash

Postby Enjay » Fri Jan 18, 2019 3:02 pm

gzdoom-g3.8pre-232-g395d61391

I have a key bound to MDK. If I press that key to kill an enemy, the game crashes.

If I press my bound key while pointing at something that is not an enemy (e.g. a wall) a bullet puff appears and no crash.

If I place the crosshair over an enemy, bring down the console and type MDK, the enemy gets killed and no crash.


Steps to replicate:

Start a normal game of GZDoom.

Bring down the console and type

bind [type key of choice here] mdk

e.g. I use bind j mdk

close the console

place the crosshair over an enemy

press your bound key

crash!
Attachments
CrashReport.zip
(23.34 KiB) Downloaded 8 times
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Key bound to MDK causes crash

Postby Graf Zahl » Sat Jan 19, 2019 3:39 am

No, does not happen.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Key bound to MDK causes crash

Postby Nash » Sat Jan 19, 2019 4:32 am

Does this happen with a modded enemy, or just the stock Doom enemies?
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: nVidia with Vulkan support

Re: Key bound to MDK causes crash

Postby Enjay » Sat Jan 19, 2019 4:37 am

Absolutely stock. Nothing else loaded.

However, I just tried deleting my ini and giving it another go - no crash. So, I went through my old ini and found the one setting needed to make this happen reliably.

Starting GZDoom with an ini that contains nothing more than

Code: Select allExpand view
[Doom.ConsoleVariables]
cl_bloodtype=1

[Doom.Bindings]
j=mdk


will cause a crash when I centre the view on an enemy and press j.

Blood types of "sprites and particles" and "particles" cause the crash. Sprites only does not.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: Key bound to MDK causes crash

Postby Graf Zahl » Sat Jan 19, 2019 4:52 am

That was a crucial omission, considering that it was the particle code that crashed...
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Key bound to MDK causes crash

Postby Enjay » Sat Jan 19, 2019 4:58 am

Thanks for the fix.

I didn't even think about the particles being responsible until you said it didn't crash for you. So I whittled down the possibilities in my ini and there it was. :)
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests