AICreateSimulatedObject using an aircraft will freeze or CTD the sim every time in SU2

Version: 1.4.12.0

Frequency: Consistently

Severity: High
Marketplace package name: N/A

Context: Injecting object using AICreateSimulatedObject via SimConnect

Similar MSFS 2020 issue: N/A

Bug description:

Repro steps: Simply trying to use AICreateSimulatedObject or AICreateSimulatedObject_EX1 with an aircraft (including FSLTL, AIG, FSTraffic, etc library models) crashes instantly and consistently in the SU2 betas. This continues to function completely as expected in SU1

For reference: Creating the same object using AICreateNonATC, Enroute, Parked, etc will work perfectly fine, it’s explicitly only via AICreateSimulatedObject that the freeze/CTD will occur.

Attachments: N/A

Private attachments: N/A

1 Like

Hello @Marajin360,

I tested with the SDK sample AIObjectsAndWaypoints and could not reproduce the issue.
Could you specify exactly which aircraft you tried to spawn?

Also, please provide use with a dmp file.
See Section 2 & 3 here.

Regards,
Boris

Have you tested to inject other types of SimObjects? We use the same function for Humans and GroundVehicles and have no issues.

Hi guys. Thanks for looking at this. Unfortunately super super busy this last day or two but I will work up a more explicit example/sample for you as soon as I get a moment @Boris

@Kaiii3 Yep, it seems to explicitly be aircraft… the more I think about it, it may explicitly be the FSLTL models. I will try to test more specifically and see if your AIG models actually trigger the same issue later.

will run a few tests on my end to see if I can replicate and if so pack a test package for ASOBO.

unable to replicate, I have tested with some of our AIG models and some default stuff.

Really appreciate your time and attention on this one. I’ve been running some tests (I will do some repeated testing to verify). Tried the following:
AIGAIM_easyJet Airbus A320-200SL - John Barton = No crash
AIGAIM_Ryanair Boeing 737 MAX 200 - Vote for Europe = No Crash
AIGAIM_Emirates Airbus A380-800 - EA Wifi = No Crash
AIGAIM_Etihad Airways Boeing 777-300ER - OC = Sim froze

Edit: I tried specifically injecting that 773 again and experienced no freeze… however when I injected it a 2nd time at a different location and the sim froze instantly, so it seems highly repeatable but not100% guaranteed that it will trigger the sim to freeze on a single injection.

Interestingly it also seems to not honour the on_ground flag for these, they are sunk into the ground like the root 0,0 is being placed on the ground rather than aligning the wheels.

Via AICreateNonATCAircraft (all other variables kept the same) they all work flawlessly…

Images via AICreateSimulated Object:

image

vs via AICreateNonATCAircraft:

I will try to cross verify this against SU1 and 2020 also to see if the sinking into the ground issue is universal or specifically SU2.

Edit: Confirmed in 2020 using AICreateSimulatedObject with the AIG models they spawn correctly aligned (same airport and scenery used also) with no freezes, will repeat in 2024 SU1 also:

Confirmed in SU1:

All aircraft are AIG (except the user aircraft bottom left) and painted in using AICreateSimulatedObject. No sunk through the terrain, no freeze

Hello and sorry for the delay,

Can you test using the SU3 (currently in flighting) and tell me if you still reproduce the issue since the last flighting update ?

If yes, we will need your RAI repport (How to report a bug or a crash)

Regards,
Boris

There is an AICreateSimulatedObject_EX1? Is this some part of a “new” SDK that I missed? Or is this a typo?

MSFS2020 SDK docs: https://docs.flightsimulator.com
MSFS2024 live SDK docs: https://docs.flightsimulator.com/msfs2024/
MSFS2024 beta SDK docs: https://docs.flightsimulator.com/msfs2024/flighting/

THANK you for that. I totally missed it!!!

1 Like

Hi Boris,

I guess I could say the same! FS Expo at the time of your message and then I got sidetracked and completely forgot to circle back. My bad.

Initially it does look like this no longer is producing crashes but I’ll do some more detailed checks to verify consistently reliable and whether the alignment issues are gone also! Will report back.

1 Like

Hi bud, Good news and bad news. Crashes seem rare or completely gone from this issue, it’s a little hard to tell cause SU3 is still ornery and I get quite a few CTDs in general, but it’s probably not related to this one at least!

the bad news is, there’s still definitely some weirdness going on with placing the aircraft on ground despite that flag being set. Number of cases where they’ll be spawned, they have frozen positions but physics simulations are still occurring, and they’re sometimes placed at odd angles relative to the ground. This is resulting in them billowing smoke from the wheels sometimes (May only be FSLTL models? It’s almost always the FSLTL ERJ when the billowing smoke occurs but it can happen rarely with others), building up phantom forces and speeds and just having strange pitches. Looks like their positions just aren’t quite being calculated properly when the on ground flag is set still?

Example with the default beech 18 PassiveAircraft:

I’ll continue to dig on this one.

1 Like

Hello,

Did you have the time to test in SU4 (in flighting) yet ?

I just checked and could spawn the FSLTL CRJ and the Beech D18S without any issue on SU4.

Regards,
Boris

1 Like

Ehh, we stopped using it in favour of a different method a while back. We ran some quick tests though and initially it seems good but intermittently it seems to crash the simulator after enough injections. As usual, I’ll try to dig a little deeper and if needs be we’ll put together a sample package and extra details for you to try to reproduce :slight_smile:

1 Like

Hello @Marajin360 ,

I’ll tag this topic as obsolete as we haven’t had any further news or reports.

Feel free to ping us if you’re still experiencing freezes or crashes when using AICreateSimulatedObject with repro steps :wink:

Regards,
Boris