ACE3 icon indicating copy to clipboard operation
ACE3 copied to clipboard

ace_common_executePersistent cause memory crash

Open havena opened this issue 11 years ago • 7 comments

CE3 Version: 3.2.1

Mods:

@cba_a3 @ace3 @rhs @tfr Placed ACE3 Modules: http://pastebin.com/uGuAaH8i (i have try with / without medical, wind & ballistic)

None. Description: since a3 1.48 / ace 3.1.1 / cba rc7 i have server crash every day. i have a verbose cba_xeh with debug diag_log and this is the RPT results on Crash :

22:41:18 init_enum: _cfgEntry = bin\config.bin/Extended_InitPost_EventHandlers/All/ace_common_executePersistent
=======================================================
-------------------------------------------------------
Exception code: C0000005 ACCESS_VIOLATION at 00B5BD0C
23:20:41 init_enum: _cfgEntry = bin\config.bin/Extended_InitPost_EventHandlers/All/ace_common_executePersistent
=======================================================
-------------------------------------------------------
Exception code: C0000005 ACCESS_VIOLATION at 00B5BD0C

Where did the issue occur? "Multiplayer"

RPT log file: No need.

havena avatar Aug 15 '15 21:08 havena

Could you post full rpt? Does the issue happen with just CBA and ACE (last line doesn't always mean it's the problem)?

Right now, Dedicated server's don't need the dlls. If this is on a dedicated server, try removing the ace_xxx.dlls and see if it still has problems.

PabstMirror avatar Aug 15 '15 23:08 PabstMirror

I think i have already try without server dll. I will try one more time.

for ace_common_executePersistent : I saw that ace_common_execPersistentFnc increment ACE_PersistentFunctions variable. (https://github.com/acemod/ACE3/blob/c9529a1e1c2b908def1ad2e9940ac12a9560ef3e/addons/common/functions/fnc_execPersistentFnc.sqf) but i dont find where and by whom ace_common_execPersistentFnc is call?

havena avatar Aug 16 '15 10:08 havena

Always crash without dll. some RPT https://mega.co.nz/#!ftIj3YhT!1me7_USgfQemao8iOL1CB_kbkV3e0stG6lW47ovfLRw

havena avatar Aug 17 '15 21:08 havena

i will try to add a diag_log debug in executePersistent for see exactly when server crash

havena avatar Aug 18 '15 11:08 havena

i have add a diag_log debug in ace_common_executePersistent, but nothing was call by this fnc... look like ACE_PersistentFunctions is empty so... any idea?

// by commy2
#include "script_component.hpp"

PARAMS_1(_target);

{
    if (isNil "_x") then {
        diag_log text format ["[ACE] ERROR: No argument and function for remote function. ID: %1", _forEachIndex];
    } else {
        if (typeName _x == "ARRAY") then {
            diag_log format ["DEBUG ACE executePersistent === %1 - %2 call %3",_x select 0,_target,_x select 1];
            [_x select 0, _target] call (_x select 1);
        };
    };
} forEach (_target getVariable ["ACE_PersistentFunctions", []]);

havena avatar Aug 18 '15 13:08 havena

Also reference: https://github.com/CBATeam/CBA_A3/issues/126

ViperMaul avatar Aug 19 '15 03:08 ViperMaul

Sounds like it's been fixed in CBA thread.

PabstMirror avatar Sep 27 '15 02:09 PabstMirror