Add exception handling to ScreenSaver#ProcessSession
ProcessSession calls ScreenSaver#EnqueueData, which can throw an Exception when it runs into an error in file format regarding misaligned triggers, namely Unaligned session and eyedata! Are there missing triggers in eyelink or Unity data?.
This PR handles this Exception by wrapping EnqueueData in a try-catch block, stopping the coroutine & logging the above warning if the exception occurs.
Also, the program will check for if the generation actually completed or interrupted, printing a message to VirtualMazeBatchLog.txt if it was interrupted. See below for an example.
In practice, this will mean the application will exit (slightly more) gracefully when it runs into trigger errors in the dataset.
Add exception handling to
ScreenSaver#ProcessSession
ProcessSession
callsScreenSaver#EnqueueData
, which can throw anException
when it runs into an error in file format regarding misaligned triggers, namelyUnaligned session and eyedata! Are there missing triggers in eyelink or Unity data?
.This PR handles this
Exception
by wrappingEnqueueData
in atry-catch
block, stopping the coroutine & logging the above warning if the exception occurs.Also, the program will check for if the generation actually completed or interrupted, printing a message to
VirtualMazeBatchLog.txt
if it was interrupted. See below for an example.In practice, this will mean the application will exit (slightly more) gracefully when it runs into trigger errors in the dataset.