Possible bug involving custom bound keys in menu

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Possible bug involving custom bound keys in menu

Postby Ryuhi » Mon Apr 29, 2019 11:52 am

Currently with my mod there is an issue involving the player pressing a key that is bound to a custom function while in menus, namely one that uses a simple script to add an item to the player's inventory for as long as it is held down, and then remove it as soon as the key is released. In testing the issue it seems to only happen if the player has not yet started a game, and seems to happen almost every time the key is pressed (even during initial binding.) The only exception I have found to this is when another key is pressed to bring up the main menu, and no navigation into the other menus (such as OptionsMenu) has been made. This issue has started in 4.0.0 and is present in 4.1.0 as well. Concerned that it may be an issue with a naming conflict with any internal changes, I have changed both the name of the alias and the scripts themselves just to be sure:

original keyconfig wording
Code: Select allExpand view
addmenukey "Kick" +Action
alias +Action "pukename StartUserAction always"
alias -Action "pukename StopUserAction always"
defaultbind Q +Action


Modified keyconfig for testing
Code: Select allExpand view
addmenukey "Kick" +GonnaKickStuff
alias +GonnaKickStuff"pukename StartKicking always"
alias -GonnaKickStuff"pukename StopKicking always"
defaultbind Q +GonnaKickStuff


With the scripts being renamed and recompiled as necessary. I did also try removing the always tag with no change.

Crash logs provided via SilentDarkness12 in the Heretical Doom topic: download/file.php?id=35185

Edit: Upon further testing, commenting out the <alias -Action "pukename StopKicking always"> seems to avoid the crash. This command is the one that removes the item from the players inventory
User avatar
Ryuhi
 
Joined: 21 Feb 2017

Re: Possible bug involving custom bound keys in menu

Postby _mental_ » Wed May 01, 2019 8:39 am

Could you please explain in a few simple steps what I should do to reproduce this crash?
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Possible bug involving custom bound keys in menu

Postby Ryuhi » Wed May 01, 2019 2:41 pm

Attached is a sample file with the minimum files to be able to trigger the crash. If you press the Q key (the default bind) before doing anything else, it will crash. If you go into the options menu and select the added menu section for the control remapping and try mapping it, it will crash.
Oddly enough, if you remove the addkeysection line from the KEYCONF lump in the file, it will cause the crash to not happen.
Attachments
kicktest.pk3
(14.77 KiB) Downloaded 15 times
User avatar
Ryuhi
 
Joined: 21 Feb 2017

Re: Possible bug involving custom bound keys in menu

Postby _mental_ » Thu May 02, 2019 2:50 am

Ryuhi wrote:Attached is a sample file with the minimum files to be able to trigger the crash.

A .wad with .pk3 extension, missing LOADACS lump, missing A_START/A_END markers...

Ryuhi wrote:If you press the Q key (the default bind) before doing anything else, it will crash.

'Before doing anything else' means nothing to me. At least, which IWAD should I load?
Should I start a new game? I guess I should because in-game bindings are not processed in menu.
Regardless of this, it doesn't crash for me.

Ryuhi wrote:If you go into the options menu and select the added menu section for the control remapping and try mapping it, it will crash.

Still no crash.

Could you please try to trigger the crash without a config?
_mental_
 
 
 
Joined: 07 Aug 2011

Re: Possible bug involving custom bound keys in menu

Postby Ryuhi » Thu May 02, 2019 3:39 am

the original crash was from Heretical Doom, I tried making a quick vaccinated archive with just the minimal files for you, i apologize for not making it perfectly in my haste. It has been reported in the thread for the mod by another user, and I have been trying to isolate it as it has only started happening since the 4.0.0 release. It has happened in multiple IWADS, and as stated, it only occurs if a new game has not yet been started.

That said, the crash DID still occur for me with the provided archive, when pressing the key and/or binding it to the function before loading or starting a new game.
User avatar
Ryuhi
 
Joined: 21 Feb 2017


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests