Page MenuHomeFeedback Tracker

Throwing inside scheduled environment without a catch causes error spam
Assigned, 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.

dedmen added a subscriber: dedmen.Fri, Oct 30, 10:55 AM

Cannot repro, I get one log print in 2.01
And as far as I'm aware that code wasn't touched since your last comment in february.

dedmen claimed this task.Fri, Oct 30, 11:02 AM
dedmen changed the task status from New to Assigned.
dedmen set Ref Ticket to AIII-51693.
R3vo added a subscriber: R3vo.Fri, Oct 30, 12:11 PM

Can confirm in 2.01.146823

Can confirm in 2.00.146773

Please note, that it ONLY happens when in a mission. Running the script from the debug console in 3den only returns the error once.

R3vo added a comment.EditedFri, Oct 30, 3:24 PM

Please note, that it ONLY happens when in a mission. Running the script from the debug console in 3den only returns the error once.

I cannot confirm that on 2.01. Spam happens both in Debug Console and during scenario.

noLogs = false;
showScriptErrors = true;

R3vo removed a subscriber: R3vo.Tue, Nov 3, 2:06 PM