FSDreamTeam forum

General Category => General Discussion => Topic started by: flyunited1979 on June 11, 2021, 03:43:59 pm

Title: P3Dv5.2 crashing Couatl ?
Post by: flyunited1979 on June 11, 2021, 03:43:59 pm
P3Dv5.2 crashed at cruise altitude and it appears this could be the culprit.
Do we expect an update to be needed to Coutatl for P3Dv5.2 compatibility?

Faulting application name: Couatl64_P3D.exe, version: 4.0.0.4475, time stamp: 0x5f92f5dd
Faulting module name: ntdll.dll, version: 10.0.19041.964, time stamp: 0xbd2c3c23
Exception code: 0xc0000374
Fault offset: 0x00000000000ff199
Faulting process id: 0x3e80
Faulting application start time: 0x01d75e64f3e22957
Faulting application path: D:\FSDT\Addon Manager\couatl64\Couatl64_P3D.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll

Report Id: 611b1052-0aa8-46df-b45e-444bf605d550
Faulting package full name:
Faulting package-relative application ID:
Title: Re: Couatl crashing P3Dv5.2?
Post by: matthewpow on June 11, 2021, 04:47:31 pm
I got this same crash for Couatl64_P3D.exe, except with ucrtbase.dll... Also on 5.2.
Title: Re: Couatl crashing P3Dv5.2?
Post by: virtuali on June 16, 2021, 09:15:52 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. Is the sim crashes abruptly, it won't sent the normal quit message to it, which would trigger some extra memory clean up 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 ways to made the sim crash. But the sim can crash it.