.NET: Microsoft Technologies based on the .NET software framework. Runtime: An environment required to run apps that aren't compiled to machine language.
A fatal CLR 0x80131506 path can occur without a debugger; the existing dump proves that the CLR detected an unrecoverable condition, but it does not by itself prove debugger-controlled continuation, identify the preceding converged route, or make the preceding UI Automation exception causal.
What the evidence establishes
- For .NET Framework,
fatalExecutionEngineErrormeans that the CLR detected fatal corruption and will terminate the process. Microsoft lists malformed P/Invoke, invalid interop data, unmanaged callbacks, COM-wrapper cleanup races, and similar corruption mechanisms as possible causes—not as findings for this incident.^1^ - Therefore, neither the fatal-reporting block nor the route returning from
RaiseExceptioninherently requires a debugger. - A debugger receives first-chance and, if unhandled, last-chance notifications. It may continue an exception as handled or unhandled, and may modify thread state. WinDbg’s
ghexplicitly marks an exception handled; the normal/default disposition is unhandled.^2^ ^3^ - Consequently, a compatible route could have been affected by debugger disposition, but its presence in
clr.dlldoes not establish that it was. The debugger transcript or automation script is needed to show whethergh,-h, register modification, or equivalent behavior occurred.
ElementNotAvailableException means that the referenced UI Automation element no longer exists—for example, because its dialog or application closed.^4^ It is ordinarily a recoverable UIA race/staleness condition. Its proximity to ElementProxy.GetRuntimeId() is relevant chronology, but does not establish that it corrupted the CLR.
Can the existing dump distinguish the routes?
Since the CLR image is already matched, concentrate on whether the dump retained the pre-convergence context, not only the final fatal-reporting context:
!analyze -v
.exr -1
.ecxr
r
kv
u @rip-40 @rip+40 ; x64
u @eip-40 @eip+40 ; x86
Use only the disassembly command matching the dump architecture. .exr -1 displays the latest exception record; .ecxr selects its saved register context and stack.^5^ ^6^
Route attribution is possible only if:
- that exception context corresponds to the relevant transfer;
- registers, flags, return addresses, or stack memory still encode the predecessor; and
- the decisive state was not overwritten after both routes converged.
If those artifacts are absent, the fault offset and matching binary cannot reconstruct branch history. Public symbols may also be insufficient to name private CLR routines or explain both branches semantically. A debugger transcript or execution trace is then required.
Useful sanitized follow-up output would be:
- dump type and capture method;
-
!analyze -v; -
.exr -1; -
.ecxr; r; kv; - architecture and module/version output;
- disassembly around the convergence point and both predecessors;
- debugger exception filters and the commands used to continue execution.
Known issues and servicing
The reviewed public documentation does not identify a .NET Framework 4.8 update for this exact combination of ExecutionEngineException, UI Automation, WPF, and ElementNotAvailableException. Similar UIA exceptions have been reported in WPF, but that report does not establish this fatal signature.^7^
Two older 4.8 fixes are adjacent but not exact matches:
- concurrent queries against the same managed
ITypeInfocould crash; - WPF applications could crash around
GetWindowText/GetWindowTextLength.^8^
The November 2026 preview lists no corresponding 4.8 CLR/WPF fix.^9^ Install the latest cumulative Windows/.NET Framework update applicable to the exact Windows version, but there is no documented signature-specific mitigation in these release notes.^10^
If it recurs
Capture a full postmortem dump without simultaneously attaching another debugger:
mkdir C:\Dumps
procdump.exe -accepteula -ma -i C:\Dumps
ProcDump supports postmortem installation and -ma full dumps.^11^ If debugger interaction itself must be studied, use WinDbg Time Travel Debugging; unlike a dump, it records executed control flow and can be replayed backward.^12^
For a controlled reproduction, relevant diagnostic MDAs include:
<mdaConfig>
<assistants>
<fatalExecutionEngineError />
<callbackOnCollectedDelegate />
<invalidIUnknown />
<invalidVariant />
<raceOnRCWCleanup />
</assistants>
</mdaConfig>
These are diagnostic probes for possible callback/COM corruption, not evidence that any such mechanism occurred here.^1^
If no route-discriminating state remains, escalate first to NinjaTrader with the full dump, exact clr.dll and matching DAC, Windows build and installed KB inventory, Event Viewer records, application configuration, debugger transcript/disposition, custom-indicator package, and reproduction details. NinjaTrader can supply private symbols and escalate a suspected CLR/WPF defect to Microsoft. An eligible Microsoft support agreement is the alternative escalation route. Without predecessor state, a debugger transcript, or a reproduction trace, support cannot reliably infer which converged route ran from the final offset alone.
References
- fatalExecutionEngineError MDA
- Debugger Exception Handling
- Controlling Exceptions and Events
- ElementNotAvailableException Class (System.Windows.Automation) | Microsoft Learn
- .exr (Display Exception Record)
- .ecxr (Display Exception Context Record)
- Error: Element does not exist or it is virtualized; use VirtualizedItem Pattern · Issue #648 · dotnet/wpf
- .NET Framework May 2024 security and quality rollup
- .NET Framework November 2026 cumulative update preview
- .NET Framework release notes
- ProcDump v12.02
- Time Travel Debugging - Overview