RequestSystemState for FlightLoaded produces no response instead of an empty one

Version: SimConnect 1.1.2, SunRise version 12.1

Frequency: Consistently

Severity: Medium

Context: SimConnect

Bug description: SimConnect_RequestSystemState for FlightLoaded will neither fail nor produce a response as long as no flight is loaded. In Free flight mode the first time a response is given is when “Ready to Fly” is clicked, in which case “C:\Users\<user>\AppData\Local\Packages\Microsoft.Limitless_8wekyb3d8bbwe\LocalState\MISSIONS\Custom\CustomFlight\CustomFlight.FLT” is returned. Any SimConnect app expecting a response (even an empty one) will hang.

Repro steps: Start simulator, wait for it to be ready (i.e., the “Start” button is shown), connect and request the state.

Attachments: See the example code in this repository, folder “part-2/2-1 SystemState”.

Private attachments: