Author Topic: CTD/freeze continues  (Read 441 times)

Gunny

  • Newbie
  • *
  • Posts: 9
CTD/freeze continues
« on: May 16, 2024, 08:03:25 pm »
I'm at a loss for words as I have updated the MSFS and GSX continually and still cannot complete a flight with a CTD/freeze of the program. All I am asking for is a solution to the attached event log. Thanks
Richard S. Churchill USMC (ret)
PVT SEL

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 50842
    • VIRTUALI Sagl
Re: CTD/freeze continues
« Reply #1 on: May 20, 2024, 09:25:03 am »
As explained so many times, Couatl cannot crash the sim.

An external .EXE cannot crash another .EXE, this is something basic about how the Windows OS works, an .EXE don't have any access to the memory space of another .EXE, unless it attached itself to it posing as a Debugger, and Couatl doesn't do anything like that.

What is possible is the opposite. If the sim crashes for other reasons, it will MADE Couatl crash, because in order to exit cleanly, Couatl needs to receive a specific command via Simconnect the sim has quit. If the sim crashes abruptly, it won't send the normal quit message to it, which would trigger some extra memory cleanup Couatl must do on itself, which if not done, will result in Couatl crashing. Not that this matters much after the sim crashed because Windows itself will clean up the memory.

That's why you see the event related to Couatl.exe in the Event Viewer: it was made to crash because the sim crashed for other reasons, so you can be easily misled thinking Couatl was the cause, but it's not. It cannot, because as a regular .EXE, it doesn't have any way to make the sim crash. But the sim can crash it.

jgoggi

  • Full Member
  • ***
  • Posts: 174
Re: CTD/freeze continues
« Reply #2 on: May 21, 2024, 09:06:52 am »
Hi Umberto,
I chime in to ask your opinion about an issue that I have 90% of my flights. During descent, most frequently around 3000-2000 ft on approach, I get a freeze of the sim of about 5 to 10 seconds, (during which everything freezes except sound), then it resumes to normal operation, without crashing. I don't have other stutter/freezing issues but this. Could it depend on GSX loading at the destination airport? If I takeoff from airport X, fly around say for 15-20 minutes, then land back at airport X, everything is ok. If I takeoff from airport X and land at airport Y, most times this happens.
Thank you.
James Goggi

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 50842
    • VIRTUALI Sagl
Re: CTD/freeze continues
« Reply #3 on: May 22, 2024, 01:54:42 pm »
During descent, most frequently around 3000-2000 ft on approach, I get a freeze of the sim of about 5 to 10 seconds, (during which everything freezes except sound), then it resumes to normal operation, without crashing. I don't have other stutter/freezing issues but this. Could it depend on GSX loading at the destination airport?

By default (unless you tweaked the airport visibility setting in GSX for that airport), GSX will load the airport at exactly 3.0 NM from the airport reference point. So, assuming an airport at roughly sea level, your 3000-5000 altitude range seems to be a bit farther away, indicating the problem is not GSX loading the airport from the Navdata.

In addition to that, thanks to the fact GSX runs completely externally to the sim, in the Couatl .exe, it runs in different threads, so even if GSX would hypothetically "stall", maybe waiting some data, it will NOT block the sim, because it's running in a separate thread, the only effect would be it might get the data later, but it has no ability to stall the sim.

The one and only time when GSX (INDIRECTLY) can cause a pause/stutter, is when it's creating objects. Which in MSFS only means ground vehicles at the parking spot you selected (and if you pre-select a gate before landing, they are not loaded until AFTER you land), because GSX only sends the commands to create objects to the sim, which will then proceed to create the requested objects, so it's the simulator itself which is not capable to create new objects on a separate thread and can stutter when requested to so so, that's why I said GSX is "causing" some stutter when it creates objects, but indirectly.

Opposite to FSX/P3D with SODE, GSX doesn't even create jetways anymore, they are loaded by the sim automatically.

The only thing GSX creates at an airport, at exactly 3.0 NM out, are custom VGDS added with a GSX custom profile. Those *might* cause a brief pause for the reasons explained above. But if it's not happening for you at exactly 3.0 NM, it's not GSX. And, there's an option in the airport profile to prevent their creation and only create the one you are using on your gate.

Quote
If I takeoff from airport X, fly around say for 15-20 minutes, then land back at airport X, everything is ok. If I takeoff from airport X and land at airport Y, most times this happens.

Which further confirms it's not GSX, because if you exit the airport range ( 3.0 NM by default ), GSX will go through the exact same procedure of reloading the airport Navdata, and eventually create VGDS, there's just no difference between this and after a long flight.

The difference in a complete flight, instead, is possibly exceed the maximum number of objects, which might happen during the flight and possibly accumulate, which leads to the very well known problem (in the worse situations), of entire airports disappearing on arrival.

Gunny

  • Newbie
  • *
  • Posts: 9
Re: CTD/freeze continues
« Reply #4 on: May 23, 2024, 08:45:43 pm »
I appreciate your response and understand it from previous admissions to the forum. What  I was looking for was a possible solution  to my continual CTDs if that is possible. Thanks
Richard S. Churchill USMC (ret)
PVT SEL

jgoggi

  • Full Member
  • ***
  • Posts: 174
Re: CTD/freeze continues
« Reply #5 on: May 25, 2024, 11:55:49 am »
Thank you, Umberto, for your detailed reply.

And, there's an option in the airport profile to prevent their creation and only create the one you are using on your gate.

I did not know about that. What should I do to let GSX create only the VDGS  I will use?
James Goggi

virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 50842
    • VIRTUALI Sagl
Re: CTD/freeze continues
« Reply #6 on: May 30, 2024, 11:13:04 pm »
The option is in the DETAILS button of the airport customization page.