Page MenuHomeFeedback Tracker

Throwing inside scheduled environment without a catch causes error spam
New, NormalPublic

Description

It seems throwing without a catch block inside a scheduled environment has an erroneous loop / failure to exit the script completely.
Throwing in this scenario stops execution of the script but will spam errors (to both -showScriptErrors and the RPT file).
Note that returning to the escape menu (pausing the simulation) appears to end the error spam.

Tested on following version:
["Arma 3","Arma3",194,145977,"Stable",false,"Windows","x64"]

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1809
Category
Scripting
Steps To Reproduce
  • Create an empty mission
  • Create any unit
  • Play mission
  • Run the script below in debug and close the escape menu within 3 seconds
[] spawn {
uisleep 3;
systemChat "test1";
throw "test";
systemChat "test2";
}
Additional Information

23:05:32 Error Unhandled exception: "test"
23:05:32 Error in expression < spawn {
uisleep 1;
systemChat "test1";
throw "test";
systemChat "test2";
}>
23:05:32 Error position: <throw "test";
systemChat "test2";
}>
23:05:32 Error Unhandled exception: "test"
23:05:32 Error in expression < spawn {
uisleep 1;
systemChat "test1";
throw "test";
systemChat "test2";
}>
23:05:32 Error position: <throw "test";
systemChat "test2";
}>
23:05:32 Error Unhandled exception: "test"
23:05:32 Error in expression < spawn {
uisleep 1;
systemChat "test1";
throw "test";
systemChat "test2";
}>
23:05:32 Error position: <throw "test";
systemChat "test2";
}>
23:05:32 Error Unhandled exception: "test"

[Continues Many Times]

Event Timeline

Jaffa created this task.Aug 19 2019, 12:11 AM
Jaffa updated the task description. (Show Details)
Astaroth claimed this task.Aug 22 2019, 5:20 PM
Astaroth added a subscriber: Astaroth.

Hi,
thanks for the report. We will look on it.

Jaffa changed Severity from Minor to Major.Feb 13 2020, 5:51 AM

I've updated this to major as when it happens, it causes huge log spam which can affect server performance. We had one error from this bug that resulted in 1.5 million log lines for a half hour period.