Page MenuHomeFeedback Tracker

1.66 RC ctrlRemoveAllEventHandlers in buttonClick eventhandler crashes
Acknowledged, NormalPublic

Description

When refering to RPT i mean the mainLog one.
My buttonClick ctrlEventHandler was triggering 3 times. As seen in RPT lines 985,991,996.
Although i only added the handler once.. To circumvent that i added a
_control ctrlRemoveAllEventHandlers "buttonClick";
to the beginning of the EH.
After that you can see the EH being called once (RPT L1055) and after that when Arma previously would call the EH again.. it just crashes.

In short if there are multiple EH's attached to a control and you remove a EH that is in the call queue from another EH in that queue. Arma tries to access that EH after it was deleted.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 8 x64
Category
Scripting
Steps To Reproduce
private _fnc_onConfirm = {
    params [["_ctrlButtonOK", controlNull, [controlNull]]];
    _ctrlButtonOK ctrlRemoveAllEventHandlers "buttonClick";
};
_control ctrlAddEventHandler ["buttonClick", _fnc_onConfirm];
_control ctrlAddEventHandler ["buttonClick", _fnc_onConfirm];
_control ctrlAddEventHandler ["buttonClick", _fnc_onConfirm];
Additional Information

Crash dumps https://www.dropbox.com/sh/hyvi1g3vs74pu8z/AABOI17vSP4wMfXEC7xPg2xea?dl=0
Btw why can't i upload zip files :/
Running 1.66 RC
Looks like EventHandlersUI::Process is not handling that a handler could be removed in EventHandlerUI::Process

Event Timeline

dedmen created this task.Nov 16 2016, 5:37 PM
dedmen edited Additional Information. (Show Details)Nov 16 2016, 6:02 PM
dedmen updated the task description. (Show Details)Nov 16 2016, 6:10 PM
dedmen edited Steps To Reproduce. (Show Details)Nov 16 2016, 6:47 PM
dedmen edited Steps To Reproduce. (Show Details)Jan 31 2017, 5:07 AM
Alwin claimed this task.Jan 31 2017, 2:37 PM
Alwin changed the task status from New to Reviewed.

Hi,
can you please upload your crash dumps again please. Dropbox shows Error 429.
Thank you

dedmen added a comment.Feb 1 2017, 4:22 PM

Need to find out what is eating my Dropbox traffic :x


Alwin changed the task status from Reviewed to Acknowledged.Feb 2 2017, 10:56 AM