CircumSpector / DS4Windows

A reimagination of DS4Windows.
https://discord.nefarius.at
MIT License
471 stars 31 forks source link

Find and fix STATUS_HEAP_CORRUPTION crash #49

Closed nefarius closed 1 year ago

nefarius commented 2 years ago

On random application start occasions, a silent crash of the main executable (new and old) can be observed, details in Event Viewer:

Faulting application name: DS4Windows.Client.exe, version: 1.0.0.0, time stamp: 0x6216d2c0
Faulting module name: ntdll.dll, version: 10.0.19041.1566, time stamp: 0x1be73aa8
Exception code: 0xc0000374
Fault offset: 0x00000000000ff249
Faulting process id: 0x243c
Faulting application start time: 0x01d836e39ab10d3b
Faulting application path: D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Client.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: cac51fef-f6e5-417d-8131-6ff83453b8ac
Faulting package full name: 
Faulting package-relative application ID: 

This dates quite far back, seems to appear more frequent on Debug than Release builds. Some lingering issue with either unsafe sections or P/Invoke calls. See also.

Further details:

System.AccessViolationException
  HResult=0x80004003
  Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>
nefarius commented 2 years ago

Debug session

Loading control script C:\Program Files\DebugDiag\Scripts\CrashRule_Process_DS4Windows.Client.exe.vbs
DumpPath set to D:\DebugDiag\Logs\Crash rule for all instances of DS4Windows.Client.exe
[13/03/2022 15:36:17]
  DebugDiag version 2.3.2.11
  DbgHost version 2.3.2.11
  DbgSvc version 2.3.2.11
  Process created. BaseModule - D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Client.exe. BaseThread - System ID: 32340
  C:\WINDOWS\SYSTEM32\ntdll.dll loaded at 0x5c070000
  Thread created. New thread - System ID: 27464
  Thread created. New thread - System ID: 30340
  Thread created. New thread - System ID: 31936
  Thread created. New thread - System ID: 31828
  Thread created. New thread - System ID: 28656
  Thread created. New thread - System ID: 29828
  Thread created. New thread - System ID: 21824
  C:\WINDOWS\System32\verifier.dll loaded at 0x02c50000
  C:\WINDOWS\SYSTEM32\vrfcore.dll loaded at 0x3a280000
  C:\WINDOWS\System32\KERNEL32.DLL loaded at 0x5a0d0000
  C:\WINDOWS\System32\KERNELBASE.dll loaded at 0x597e0000
  C:\WINDOWS\System32\USER32.dll loaded at 0x5af60000
  C:\WINDOWS\System32\win32u.dll loaded at 0x59df0000
  C:\WINDOWS\System32\GDI32.dll loaded at 0x5bfe0000
  C:\WINDOWS\System32\gdi32full.dll loaded at 0x59bb0000
  C:\WINDOWS\System32\msvcp_win.dll loaded at 0x59cc0000
  C:\WINDOWS\System32\ucrtbase.dll loaded at 0x59ab0000
  C:\WINDOWS\System32\SHELL32.dll loaded at 0x5b480000
  C:\WINDOWS\System32\ADVAPI32.dll loaded at 0x5aeb0000
  C:\WINDOWS\System32\msvcrt.dll loaded at 0x5b2b0000
  C:\WINDOWS\System32\sechost.dll loaded at 0x5ad00000
  C:\WINDOWS\System32\RPCRT4.dll loaded at 0x5bc40000
  C:\WINDOWS\System32\IMM32.DLL loaded at 0x5b280000
  C:\Program Files\dotnet\host\fxr\6.0.3\hostfxr.dll loaded at 0x8add0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\hostpolicy.dll loaded at 0x8ad60000
[13/03/2022 15:36:19]
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\coreclr.dll loaded at 0x89a00000
  C:\WINDOWS\System32\ole32.dll loaded at 0x5b350000
  C:\WINDOWS\System32\combase.dll loaded at 0x5a3b0000
  C:\WINDOWS\System32\OLEAUT32.dll loaded at 0x5a710000
  C:\WINDOWS\System32\bcryptPrimitives.dll loaded at 0x59d60000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Private.CoreLib.dll loaded at 0x70760000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\clrjit.dll loaded at 0x89890000
  C:\WINDOWS\SYSTEM32\kernel.appcore.dll loaded at 0x58010000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Client.dll loaded at 0xc44d0000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\PresentationFramework.dll loaded at 0x6f7d0000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\WindowsBase.dll loaded at 0x89660000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.dll loaded at 0xbf9d0000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\System.Xaml.dll loaded at 0x89500000
  C:\WINDOWS\system32\uxtheme.dll loaded at 0x56ed0000
  C:\Program Files (x86)\Stardock\Fences\FencesMenu64.dll loaded at 0x0fe30000
  C:\WINDOWS\System32\SHLWAPI.dll loaded at 0x5bf80000
  C:\WINDOWS\SYSTEM32\USERENV.dll loaded at 0x59690000
  C:\WINDOWS\SYSTEM32\WTSAPI32.dll loaded at 0x542f0000
  C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.1566_none_91a49058cc87e409\gdiplus.dll loaded at 0x44c90000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.InteropServices.dll loaded at 0x3a750000
  C:\WINDOWS\SYSTEM32\icu.dll loaded at 0x2b130000
  C:\WINDOWS\SYSTEM32\WindowsCodecs.dll loaded at 0x4c3e0000
  C:\WINDOWS\System32\bcrypt.dll loaded at 0x59e20000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Threading.dll loaded at 0x3a730000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\Microsoft.Win32.Primitives.dll loaded at 0x31350000
  C:\WINDOWS\System32\MSCTF.dll loaded at 0x5b160000
  C:\WINDOWS\SYSTEM32\textinputframework.dll loaded at 0x47790000
  C:\WINDOWS\System32\CoreUIComponents.dll loaded at 0x56750000
  C:\WINDOWS\System32\CoreMessaging.dll loaded at 0x56ab0000
  C:\WINDOWS\System32\WS2_32.dll loaded at 0x5bbd0000
  C:\WINDOWS\System32\SHCORE.dll loaded at 0x5bed0000
  C:\WINDOWS\SYSTEM32\ntmarta.dll loaded at 0x58450000
  C:\WINDOWS\SYSTEM32\wintypes.dll loaded at 0x56080000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Collections.dll loaded at 0x894c0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.ComponentModel.Primitives.dll loaded at 0x894a0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Threading.Thread.dll loaded at 0xd0640000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\PresentationNative_cor3.dll loaded at 0x762b0000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\System.Configuration.ConfigurationManager.dll loaded at 0x761b0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Collections.Specialized.dll loaded at 0x79720000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.InteropServices.RuntimeInformation.dll loaded at 0x31340000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Private.Uri.dll loaded at 0x796c0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Xml.ReaderWriter.dll loaded at 0xd1770000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Private.Xml.dll loaded at 0x6efb0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Net.WebClient.dll loaded at 0x79630000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.ComponentModel.EventBasedAsync.dll loaded at 0x00b60000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Memory.dll loaded at 0x78290000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Text.Encoding.Extensions.dll loaded at 0xd1790000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\Microsoft.Win32.Registry.dll loaded at 0x78270000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Linq.dll loaded at 0x76120000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\System.IO.Packaging.dll loaded at 0x78220000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\PresentationCore.dll loaded at 0x6e760000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\DirectWriteForwarder.dll loaded at 0x78070000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.Extensions.dll loaded at 0xd17b0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.CompilerServices.VisualC.dll loaded at 0xdef80000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Diagnostics.Debug.dll loaded at 0xd17c0000
  C:\WINDOWS\SYSTEM32\dwrite.dll loaded at 0x353b0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Collections.NonGeneric.dll loaded at 0x78200000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Threading.ThreadPool.dll loaded at 0xd17d0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Diagnostics.TraceSource.dll loaded at 0x760f0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.ComponentModel.TypeConverter.dll loaded at 0x76030000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\System.Windows.Extensions.dll loaded at 0x77f00000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.ComponentModel.dll loaded at 0xde790000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Collections.Concurrent.dll loaded at 0x75ff0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.ObjectModel.dll loaded at 0x75fd0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Client.Modules.Interfaces.dll loaded at 0xd17f0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Client.Core.Interfaces.dll loaded at 0xd1800000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Client.Core.dll loaded at 0xd1810000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.Abstractions.dll loaded at 0xd1820000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Hosting.Abstractions.dll loaded at 0xf73f0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\netstandard.dll loaded at 0xf7400000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.dll loaded at 0xf7420000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.FileExtensions.dll loaded at 0xf7430000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.Json.dll loaded at 0xf7440000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.FileProviders.Physical.dll loaded at 0xf7450000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.FileProviders.Abstractions.dll loaded at 0xf7460000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Primitives.dll loaded at 0xf8470000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Text.Json.dll loaded at 0x6deb0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Numerics.Vectors.dll loaded at 0xf8480000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.CompilerServices.Unsafe.dll loaded at 0xdd310000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Serilog.dll loaded at 0xf8490000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Serilog.Settings.Configuration.dll loaded at 0xf84c0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.DependencyModel.dll loaded at 0xf84e0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Buffers.dll loaded at 0xf8500000
  Thread created. New thread - System ID: 24604
  Initializing control script
  Clearing any existing breakpoints

  Current Breakpoint List(BL)
  Thread exited. Exiting thread - System ID: 24604. Exit code - 0x00000000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Serilog.Sinks.File.dll loaded at 0xf8510000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Serilog.Extensions.Hosting.dll loaded at 0xf8520000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Serilog.Extensions.Logging.dll loaded at 0xf8530000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Text.RegularExpressions.dll loaded at 0x6dd70000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Logging.Abstractions.dll loaded at 0xf8540000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Logging.dll loaded at 0xf8560000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.IO.FileSystem.dll loaded at 0xf8570000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Reflection.Emit.ILGeneration.dll loaded at 0xf8580000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Reflection.Emit.Lightweight.dll loaded at 0xf8590000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Reflection.Primitives.dll loaded at 0xf85a0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Hosting.dll loaded at 0xf85b0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll loaded at 0xf85d0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.DependencyInjection.dll loaded at 0xf85e0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Diagnostics.DiagnosticSource.dll loaded at 0x6dd10000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Diagnostics.Tracing.dll loaded at 0xf8600000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.EnvironmentVariables.dll loaded at 0xf8610000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.CommandLine.dll loaded at 0xf8620000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.UserSecrets.dll loaded at 0xf8630000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Configuration.Binder.dll loaded at 0xf8640000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.IO.FileSystem.Watcher.dll loaded at 0x6dcf0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.FileSystemGlobbing.dll loaded at 0xf8650000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Threading.Overlapped.dll loaded at 0xf8660000
  Thread created. New thread - System ID: 21256
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Options.dll loaded at 0xf8670000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Logging.Configuration.dll loaded at 0xf8690000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Logging.Debug.dll loaded at 0xf86a0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Logging.EventSource.dll loaded at 0xf96b0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Logging.EventLog.dll loaded at 0xf96c0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Logging.Console.dll loaded at 0xf96d0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Microsoft.Extensions.Options.ConfigurationExtensions.dll loaded at 0xf96e0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Client.Modules.dll loaded at 0xf96f0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Shared.Common.dll loaded at 0xf9770000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Shared.Configuration.Application.dll loaded at 0xf9790000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Shared.Configuration.Profiles.dll loaded at 0xf97a0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Shared.Devices.dll loaded at 0xf97c0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\DS4Windows.Shared.Emulator.ViGEmGen1.dll loaded at 0xf97e0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Net.NetworkInformation.dll loaded at 0x6dcc0000
[13/03/2022 15:36:20]
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\PInvoke.Hid.dll loaded at 0xf97f0000
  C:\WINDOWS\SYSTEM32\Hid.DLL loaded at 0x57d30000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Drawing.Primitives.dll loaded at 0x6dca0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Collections.Immutable.dll loaded at 0x6dbf0000
  C:\WINDOWS\SYSTEM32\windows.storage.dll loaded at 0x57590000
  C:\WINDOWS\SYSTEM32\Wldp.dll loaded at 0x59110000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Newtonsoft.Json.dll loaded at 0xf9860000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.Serialization.Formatters.dll loaded at 0x6dba0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Linq.Expressions.dll loaded at 0x6d7f0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.Numerics.dll loaded at 0x6d7b0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Runtime.Serialization.Primitives.dll loaded at 0xd9dc0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Data.Common.dll loaded at 0x6d4d0000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\FastDeepCloner.dll loaded at 0xfb910000
  Thread created. New thread - System ID: 27256
  Thread created. New thread - System ID: 31456
  Thread created. New thread - System ID: 1372
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\Nefarius.Utilities.DeviceManagement.dll loaded at 0xfb930000
  C:\WINDOWS\System32\setupapi.dll loaded at 0x5a7e0000
  C:\WINDOWS\System32\cfgmgr32.dll loaded at 0x59790000
  C:\WINDOWS\SYSTEM32\DEVOBJ.dll loaded at 0x59530000
  C:\WINDOWS\System32\WINTRUST.dll loaded at 0x59fb0000
  C:\WINDOWS\System32\CRYPT32.dll loaded at 0x59e50000
  C:\WINDOWS\SYSTEM32\MSASN1.dll loaded at 0x59370000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\PInvoke.Kernel32.dll loaded at 0xfb940000
  D:\Development\GitHub\DS4Windows\DS4Windows.Client\bin\Debug\net6.0-windows10.0.19041.0\PInvoke.Windows.Core.dll loaded at 0xfb960000
[13/03/2022 15:36:21]
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Threading.Channels.dll loaded at 0x6d4b0000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Net.Primitives.dll loaded at 0x6d470000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Net.Requests.dll loaded at 0x6d410000
  C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.3\System.Net.WebHeaderCollection.dll loaded at 0xce640000
[13/03/2022 15:36:23]
  Exception 0XE06D7363 on thread 32340. DetailID = 1
[13/03/2022 15:36:24]
  CLR Exception on thread 32340. DetailID = 2
[13/03/2022 15:36:26]
  Exception 0XE06D7363 on thread 32340. DetailID = 1
  CLR Exception on thread 32340. DetailID = 2
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\wpfgfx_cor3.dll loaded at 0x6d0d0000
  C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.3\D3DCompiler_47_cor3.dll loaded at 0x6cc10000
  Exception 0XC0000005 on thread 29828. DetailID = 3
  Thread exited. Exiting thread - System ID: 27464. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 31828. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 21824. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 21256. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 29828. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 31456. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 30340. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 31936. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 28656. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 27256. Exit code - 0xc0000005
  Thread exited. Exiting thread - System ID: 32340. Exit code - 0xc0000005
  Process exited. Exit code - 0xc0000005

***********************
*  EXCEPTION DETAILS  *
***********************

DetailID = 1
    Count:    2
    Exception #:  0XE06D7363
    Stack:        
        KERNELBASE!RaiseException+0x69
        coreclr!coreclr_shutdown_2+0x1d490
        coreclr!GetCLRRuntimeHost+0x4c291
        coreclr!coreclr_shutdown_2+0xa1a90
        coreclr!GetCLRRuntimeHost+0x1bc6bd
        coreclr!GetCLRRuntimeHost+0x1bda52
        coreclr!coreclr_shutdown_2+0x8fbb1
        coreclr!MetaDataGetDispenser+0xab906
        coreclr!MetaDataGetDispenser+0xab831
        coreclr!coreclr_execute_assembly+0x5573
        coreclr!coreclr_execute_assembly+0x56b0
        System_Private_CoreLib+0x31a8b6
        System_Private_CoreLib+0x31bf85
        System_Private_CoreLib+0x33ce7f
        System_Private_CoreLib+0x33cc03
        System_Private_CoreLib+0x31cdac
        System_Private_CoreLib+0x31cd05
        coreclr!coreclr_shutdown_2+0x16553
        coreclr!MetaDataGetDispenser+0x30806
        coreclr!coreclr_execute_assembly+0x241de
        coreclr!coreclr_execute_assembly+0x23fe3
        coreclr!coreclr_execute_assembly+0x23f13
        coreclr!MetaDataGetDispenser+0xaa75c
        coreclr!coreclr_execute_assembly+0x234d
        coreclr!coreclr_execute_assembly+0x3ad6b
        System_Private_CoreLib+0x342cbe
        System_Private_CoreLib+0x342c3c
        System_Private_CoreLib+0x343c1f
        System_Private_CoreLib+0x333426
        System_Private_CoreLib+0x3342c0
        System_Private_CoreLib+0x3334db
        System_Private_CoreLib+0x336399
        System_Private_CoreLib+0x336edc
        System_Private_CoreLib+0x337115
        PresentationCore+0x171ef5
        PresentationFramework+0x2dc432
        System_IO_Packaging+0x126f8
        WindowsBase+0x720c0
        PresentationCore+0x433191
        PresentationCore+0x1ebea3
        PresentationCore+0x3fae68
        PresentationCore+0x3f9650
        PresentationCore+0x401533
        PresentationCore+0x400d3c
        PresentationCore+0x400bf8
        PresentationCore+0x400b61
        0x00007fff`2aa6df77
        coreclr!coreclr_shutdown_2+0x16553
        coreclr!MetaDataGetDispenser+0x1dce0
        coreclr!MetaDataGetDispenser+0x1dc8c
        coreclr!MetaDataGetDispenser+0x1db70
        coreclr!MetaDataGetDispenser+0x1ea91
        coreclr!MetaDataGetDispenser+0x1ece8
        coreclr!coreclr_execute_assembly+0x1c0f3
        0x00007fff`2aa6d980
        0x00007fff`2aa6cdab
        0x00007fff`2aa6cc39
        0x00007fff`2aa6c9aa
        0x00007fff`2aa6be7d
        coreclr!coreclr_shutdown_2+0x16553
        coreclr!MetaDataGetDispenser+0x526da
        System_Private_CoreLib+0x34511b
        0x00007fff`2a7f7f29
        0x00007fff`2a7f586b
        0x00007fff`2a7f558a
        0x00007fff`2a7f52da
        0x00007fff`2a7f4ffb
        0x00007fff`2a7f2f3c
        System_Collections_Concurrent+0x1aed4
        0x00007fff`2a7f2991
        0x00007fff`2a80af59
        0x00007fff`2a7f289b
        0x00007fff`2aa6bc80
        0x00007fff`2a7f5a7c
        0x00007fff`2a7f57cd
        0x00007fff`2a7f558a
        0x00007fff`2a7f52da
        0x00007fff`2a7faa4e
        0x00007fff`2a7f581c
        0x00007fff`2a7f558a
        0x00007fff`2a7f52da
        0x00007fff`2a7f4ffb
        0x00007fff`2a7f2f3c
        System_Collections_Concurrent+0x1aed4
        0x00007fff`2a7f2991
        0x00007fff`2a80af59
        0x00007fff`2a7f614d
        0x00007fff`2a7f5ff0
        0x00007fff`2aa6b32d
        0x00007fff`2aa6b99f
        0x00007fff`2aa6b7d7
        coreclr!coreclr_shutdown_2+0x16553
        coreclr!MetaDataGetDispenser+0x526da
        System_Private_CoreLib+0x34511b
        0x00007fff`2a7f7f29
        0x00007fff`2a7f586b
        0x00007fff`2a7f558a
        0x00007fff`2a7f52da
        0x00007fff`2a7f4ffb
        0x00007fff`2a7f2f3c
        System_Collections_Concurrent+0x1aed4
        0x00007fff`2a7f2991
        0x00007fff`2a80af59
        0x00007fff`2a7f289b
        0x00007fff`2aa6b6c3
        0x00007fff`2a7fc609
        System_Private_CoreLib+0x46c4b5
        System_Private_CoreLib+0x2cd679
        System_Private_CoreLib+0x46c5f3
        System_Private_CoreLib+0x46c54c
        System_Private_CoreLib+0x2e88b4
        WindowsBase+0xb73bd
        WindowsBase+0xb7232
        WindowsBase+0xbdc9e
        WindowsBase+0xbdb72
        WindowsBase+0x5b677
        System_Private_CoreLib+0x2cd679
        System_Private_CoreLib+0x2cd5ff
        WindowsBase+0x5b5c3
        WindowsBase+0xbd9c2
        WindowsBase+0xba7f5
        WindowsBase+0xbad1a
        WindowsBase+0x50657
        WindowsBase+0x4f7f9
        WindowsBase+0xb739d
        WindowsBase+0xb7232
        WindowsBase+0xb934e
        WindowsBase+0x4f59b
        0x00007fff`29fc14f0
        USER32!CallWindowProcW+0x3f8
        USER32!DispatchMessageW+0x259
        0x00007fff`2a2d9afb
        WindowsBase+0xba9df
        WindowsBase+0xb8352
        WindowsBase+0xb82fe
        PresentationFramework+0x30386d
        PresentationFramework+0x301f24
        PresentationFramework+0x2fefec
        0x00007fff`29fb3834
        coreclr!coreclr_shutdown_2+0x16553
        coreclr!MetaDataGetDispenser+0x30806
        coreclr!MetaDataGetDispenser+0xa1967
        coreclr!MetaDataGetDispenser+0xa17e6
        coreclr!MetaDataGetDispenser+0xa1695
        coreclr!MetaDataGetDispenser+0xa1456
        coreclr!coreclr_execute_assembly+0xe2
        hostpolicy+0x196db
        hostpolicy+0x19a0c
        hostpolicy!corehost_main+0x107
        hostfxr!hostfxr_close+0xfb9
        hostfxr!hostfxr_close+0x3f86
        hostfxr!hostfxr_close+0x62a1
        hostfxr!hostfxr_close+0x45e2
        hostfxr!hostfxr_main_startupinfo+0xab
        DS4Windows_Client_exe+0x124b8
        DS4Windows_Client_exe+0x1282b
        DS4Windows_Client_exe+0x13cd8
        KERNEL32!BaseThreadInitThunk+0x14
        ntdll!RtlUserThreadStart+0x21

DetailID = 2
    Count:    2
    Type:     NOT_FOUND
    Message:  
    Stack:    

DetailID = 3
    Count:    1
    Exception #:  0XC0000005
    Stack:        
        Hid!HidD_FreePreparsedData+0xf
        0x00007fff`2aa546f0
        0x00007fff`2aa7331b
        0x00007fff`2aa637da
        System_Private_CoreLib+0x32c7ef
        System_Private_CoreLib+0x32c6c7
        coreclr!coreclr_shutdown_2+0x164c6
        coreclr!MetaDataGetDispenser+0x509b4
        coreclr!MetaDataGetDispenser+0x506a3
        coreclr!MetaDataGetDispenser+0x79a88
        coreclr!MetaDataGetDispenser+0x78f05
        coreclr!MetaDataGetDispenser+0x78e0a
        coreclr!coreclr_execute_assembly+0xf7c1
        KERNEL32!BaseThreadInitThunk+0x14
        ntdll!RtlUserThreadStart+0x21

***********************
*  EXCEPTION SUMMARY  *
***********************

    |-----------------------|
    | Count | Exception     |
    |-----------------------|
    | 2     | 0XE06D7363    |
    | 2     | CLR Exception |
    | 1     | 0XC0000005    |
    |-----------------------|

Debugging Overhead Cost:
    Total Elapsed Ticks = 9125 (100%)
    Total Ticks Spent in Debugger Engine = 2078 (23%)
    Total Ticks Spent in Crash Rule Script = 5266 (58%)

Used procedure.

nefarius commented 2 years ago

Hasn't happened for quite some time now, am not a 100% certain it's solved for good, leaving this open as a reminder.

nefarius commented 1 year ago

Not able to reproduce anymore, closing with confidence 🤞