Page MenuHomeFeedback Tracker

Crash with Triggers
New, NormalPublic

Description

I have sporadic crashes with triggers, seemingly tied to passing "thisTrigger" to a spawned script inside of the trigger WITHOUT assigning it a local variable. As soon as I assign "thisTrigger" to a local variable, it no longer seems to crash.

This seems to be random crashes, and probably not a very important, but I have also linked the crash dumps below. This also happens without any mods enabled, I just had some enabled in these crashes for ease of testing.

Details

Severity
Crash
Resolution
Open
Reproducibility
Sometimes
Operating System
Windows 10 x64
Category
Game Crash
Steps To Reproduce
  1. Run below script in console
  2. Run around for a little while. This has taken me as low as 1 minute and as much as 20.
[]spawn{
  while{true}do {
    uiSleep 0.1;
    _t = createTrigger["EmptyDetector", getPos player, false];
    _t setTriggerActivation ["VEHICLE","PRESENT",true];

    _t setTriggerStatements ['this && (missionNamespace getVariable ["test_lastLocationTrig",objNull]) isNotEqualTo thisTrigger', format["
      test_lastLocationTrig = thisTrigger;
      thisTrigger spawn{
        uiSleep 3;
        if (test_lastLocationTrig isNotEqualTo _this || !(player inArea _this)) exitWith {};
        _original = ""<t font='PuristaMedium' color='#CCffffff' size='0.75'>"";
  
        _timeSet = systemTime apply {[""0"" + str _x,str _x] select (_x >= 10)};
        _time = [((_timeSet select [0,3]) joinString ""-""), ((_timeSet select [3,2]) joinString "":"")];
  
        _text = [
          _original + ""Welcome to %1"",
          ""<t font='PuristaMedium' color='#CCffffff' size='0.65'>"" + (_time joinString "" "")
        ];
  
        if ('%2' isNotEqualTo '') then {
          _text pushBack ""<t font='PuristaMedium' color='#CCffff08' size='0.55'>%2"";
        };
  
        _text = _text apply {[_x, 0.7, 0.1]};
      };
    ", "HELLO", "TESTING"],
    ""];
    
    _t setTriggerArea ([100,100,0,false,100]);
    _t triggerAttachVehicle [player];
  };
};
Additional Information

Event Timeline

Fraali created this task.Mar 8 2023, 10:33 AM
This comment was removed by Geez.
This comment was removed by Geez.
Geez added a subscriber: Geez.Mar 9 2023, 9:26 AM

you create trigger every 0.1 seconds what do you think is going to happen in 1 minute 20 seconds?

The point of creating them constantly was to make the crash happen faster, not that that was what I was doing to cause the crash in the first place. I had created the script in an attempt to be able to induce the crash so I could help get it solved faster.

Up to you if you want to use that one specifically or not.

I cannot reproduce the crash, the scripts start and finish so at any point my pc has only 30. If I open debug console and leave it open they start to accumulate and scripts are created but not executed, is this the case? Do you crash when you open debug console and leave it on?

Execute

oneachframe {hintsilent str diag_activeScripts}

and observe how many scripts are there before it crashes

This comment was removed by Geez.
dedmen added a subscriber: dedmen.EditedMar 15 2023, 9:36 AM

Please put mdmp files into a zip archive when you upload them. makes them alot smaller.
I have seen this crash a couple times in the past, never in relation with triggers though and never with a working repro.
Its crashing while cleaning up a physics item. So not related to Triggers.

I just found the old ticket from 2020, I have over a dozen crashes on this, with no leads about what causes it.

dedmen set Ref Ticket to AIII-53478.Mar 15 2023, 9:40 AM

Ah okay. I'll see if I can run some more testing to see if I am able to reproduce it more frequently.

This comment was removed by BIS_fnc_KK.