Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.
Suggestion about the ASISetROIFormat issue:
Read the Format value from a config file and set it. Perhaps the frame and image settings can be done afterwards without error.
If no config file is loaded choose the first format value you can get.
BTW: On the Controls tab the Set Auto settings are not stored in the config file while BandWidth is checked at startup. Why not store these settings in config file?