Page MenuHomeFeedback Tracker

configproperties causes CTD when config path includes nil
Assigned, WishlistPublic

Description

If command configproperties is given a config path that includes an undefined variable or nil Arma 3 will crash to desktop without logging a related error message, just an access violation.

Details

Legacy ID
1464722721
Severity
None
Resolution
Open
Reproducibility
Always
Category
Game Crash
Steps To Reproduce
  1. Start Arma 3.
  2. Open the editor on any map. Place a NATO rifleman and Preview.
  3. Open the debug console and type:

var = configproperties [configfile >> x];

where x is undefined or nil.

  1. Click Local Execute.
  2. Arma 3 CTD
Additional Information

One part of my script that can cause the crash:

{

_classes pushback _x;

} foreach configproperties [missionconfigfile >> "loadout_define" >> _equip_side >> _equip_faction >> _typeofunit, "isclass _x"];

Where _equip_side, _equip_faction, and _typeofunit are supposed to be strings. If one of these variables is nil when configproperties executes, the game will crash immediately.

Particularly annoying when typing this command into one of the debug console's monitoring fields.

Event Timeline

jorsh edited Steps To Reproduce. (Show Details)Sep 29 2015, 6:41 PM
jorsh edited Additional Information. (Show Details)
jorsh set Category to Game Crash.
jorsh set Reproducibility to Always.
jorsh set Severity to None.
jorsh set Resolution to Open.
jorsh set Legacy ID to 1464722721.May 8 2016, 12:50 PM
jorsh edited a custom field.