1.19.9.0 Turning off AutoPilot in G1000 Nxi resulted in CTD

Are you using Developer Mode or made changes in it? No

Brief description of the issue: Pushing the ‘AP’ button to disengage autopilot while approaching final approach fix for RJTT Tokyo Haneda airport with G1000 Nxi (0.60) made MSFS CTD.

Detail steps to reproduce the issue encountered: Fly C172 Skyhawk G1000 (with NXI 0.60) and select approach ILS-22 mid-flight. Enable NAV, VNV, and get close to NITRO waypoint, which is the final approach fix. I meant to push ‘APR’ to catch the glide scope, but by mistake, I pressed ‘AP’. A split second later, the program CTD’d.

Build Version # when you first started experiencing this issue: 1.19.9.0

Are you on the Steam or Microsoft Store version? Microsoft Store version

Did you submit this to Zendesk? If so, what is your ticket #? No.

WinDbg analysis of the core dump below:

Microsoft (R) Windows Debugger Version 10.0.22415.1003 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Loading Dump File [C:\Users\taro\AppData\Local\CrashDumps\FlightSimulator.exe.25896.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

************* Path validation summary **************
Response Time (ms) Location
Deferred srv*
Symbol search path is: srv*
Executable search path is:
Windows 10 Version 19043 MP (16 procs) Free x64
Product: WinNt, suite: SingleUserTS
Edition build lab: 19041.1.amd64fre.vb_release.191206-1406
Machine Name:
Debug session time: Sat Sep 18 01:42:45.000 2021 (UTC + 8:00)
System Uptime: 2 days 12:22:05.824
Process Uptime: 0 days 0:38:17.000




Loading unloaded module list

This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(6528.e2a0): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtWaitForMultipleObjects+0x14:
00007ff8`603cd8c4 c3 ret
0:000> !analyze -v


  •                                                                         *
    
  •                    Exception Analysis                                   *
    
  •                                                                         *
    

*** WARNING: Unable to verify checksum for FlightSimulator.exe
*** WARNING: Unable to verify checksum for WwiseLibPCx64P.dll
*** WARNING: Unable to verify checksum for ■■■.dll
*** WARNING: Unable to verify checksum for CoherentUIGT.dll
*** WARNING: Unable to verify checksum for CoherentUIGTDevelopment.DLL
*** WARNING: Unable to verify checksum for XPlatCppWindows.dll

KEY_VALUES_STRING: 1

Key  : AV.Fault
Value: Read

Key  : Analysis.CPU.mSec
Value: 9343

Key  : Analysis.DebugAnalysisManager
Value: Create

Key  : Analysis.Elapsed.mSec
Value: 135395

Key  : Analysis.Init.CPU.mSec
Value: 217

Key  : Analysis.Init.Elapsed.mSec
Value: 34652

Key  : Analysis.Memory.CommitPeak.Mb
Value: 620

Key  : Timeline.OS.Boot.DeltaSec
Value: 217325

Key  : Timeline.Process.Start.DeltaSec
Value: 2297

Key  : WER.OS.Branch
Value: vb_release

Key  : WER.OS.Timestamp
Value: 2019-12-06T14:06:00Z

Key  : WER.OS.Version
Value: 10.0.19041.1

Key  : WER.Process.Version
Value: 1.19.9.0

NTGLOBALFLAG: 0

PROCESS_BAM_CURRENT_THROTTLED: 0

PROCESS_BAM_PREVIOUS_THROTTLED: 0

APPLICATION_VERIFIER_FLAGS: 0

CONTEXT: (.ecxr)
rax=00007ff7e9cf7800 rbx=00000230be8e2050 rcx=00000230be8e2050
rdx=00000230be8e2050 rsi=0000022aa27f60d0 rdi=00007ff7e9cf77e8
rip=00007ff85dbe328d rsp=0000004185d7fb30 rbp=0000022ad7112f90
r8=0000000000000006 r9=0000000000000003 r10=00000000000002d0
r11=0000000000000050 r12=0000000000000000 r13=0000000000000000
r14=0000000000000000 r15=0000000000000000
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
ucrtbase!aligned_free+0xd:
00007ff85dbe328d 488b49f8 mov rcx,qword ptr [rcx-8] ds:00000230be8e2048=???
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ff85dbe328d (ucrtbase!aligned_free+0x000000000000000d)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 00000230be8e2048
Attempt to read from address 00000230be8e2048

PROCESS_NAME: FlightSimulator.exe

READ_ADDRESS: 00000230be8e2048

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: 00000230be8e2048

STACK_TEXT:
0000004185d7fb30 00007ff7e5b12800 : 00000230be8e2050 00007ff7e9cff7c0 0000022aa27f60d0 00007ff7e9cf77e8 : ucrtbase!aligned_free+0xd
0000004185d7fb60 00007ff7e5de573a : 0000022ad7054cc0 0000022aa27f60d0 00001c720000000d 0000000000000c8d : FlightSimulator!FlightSimGetProcessId+0x91ea60
0000004185d7fb90 00007ff7e5c1bb61 : 0000022ad7054cc0 0000022aa27f60d0 0000022aa27f60d0 0000022aa2226300 : FlightSimulator!FlightSimGetProcessId+0xbf199a
0000004185d7fbc0 00007ff7e5f44677 : 000001f9fe262200 0000022aa2226300 0000022ad6d6b660 0000000000000000 : FlightSimulator!FlightSimGetProcessId+0xa27dc1
0000004185d7fc30 00007ff7e5f441e0 : 0000000000000000 00007ff7e86ad8c0 0000000000000001 0000000000000007 : FlightSimulator!FlightSimGetProcessId+0xd508d7
0000004185d7fc80 00007ff7e59fbee5 : af35876900009fe0 af358769e4469aa8 00007ff7e59fe3f0 0000000000000000 : FlightSimulator!FlightSimGetProcessId+0xd50440
0000004185d7fcc0 00007ff7e67e8122 : 0000000000000005 0000000000000000 0000000000000000 01d7abe622ff6aa3 : FlightSimulator!FlightSimGetProcessId+0x808145
0000004185d7fd00 00007ff85f4f7034 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : FlightSimulator!FlightSimGetProcessId+0x15f4382
0000004185d7fd40 00007ff860382651 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : kernel32!BaseThreadInitThunk+0x14
0000004185d7fd70 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x21

SYMBOL_NAME: ucrtbase!aligned_free+d

MODULE_NAME: ucrtbase

IMAGE_NAME: ucrtbase.dll

STACK_COMMAND: ~0s ; .ecxr ; kb

FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_ucrtbase.dll!aligned_free

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 10.0.19041.789

FAILURE_ID_HASH: {d5bbf60f-a007-a4c5-e67c-5f66e2c5e6ab}

Followup: MachineOwner