Page MenuHomeFeedback Tracker

[Crash] Exception code: C0000005 ACCESS_VIOLATION at 00000000
New, NormalPublic

Description

Im working on something that uses cba progressBar that is executed by an ACE interaction on an object.

The code (steps to reproduce), as is, crashes the game with Exception code: C0000005 ACCESS_VIOLATION at 00000000.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Mods:
CBA + ACE

veteran29 — heute um 14:00 Uhr
Delay it a frame
starting the progress bar from ACE Interaction crashes the game.

sqf
_cvo_fullAceHeal = [
    "CVO_FullHeal",
    "Get Full Health Check",
    "",
    {
        [
            "Get Treated...",
            30,
            {true},
            {
                [player] call ace_medical_treatment_fnc_fullHealLocal;
                 hint "testheal done";
            }
        ] call CBA_fnc_progressBar;
    },
    {true}
] call ace_interact_menu_fnc_createAction;


[
    "UK3CB_KDF_O_Gaz66_Med",        // class the action should be assigned to
    0,                                // Type of action, 0 for action, 1 for self-actionIDs
    ["ACE_MainActions"],            // Parent path of the new action <Array>
    _cvo_fullAceHeal
] call ace_interact_menu_fnc_addActionToClass;
Additional Information

The following workaround fixed the issue:

[{
    [
        "Get Treated...",
        30,
        {true},
        {
            [ACE_player] call ace_medical_treatment_fnc_fullHealLocal;
                hint "testheal done";
        }
    ] call CBA_fnc_progressBar;
}] call CBA_fnc_execNextFrame;

Event Timeline

mrzorn created this task.Aug 8 2022, 2:59 PM
mrzorn updated the task description. (Show Details)