Share via

Exception 0xc0000409 with ucrtbase.dll

Anonymous
2025-05-05T15:31:41+00:00

Hi,

I have an issue with ucrtbase.dll when starting a program linked to a device for Flight Simulator:

Faulting application name: miniCOCKPIT Data Link Software - MSFS2020 - 2024.exe, version : 0.0.0.0, horodatage : 0x67d702c0
Faulting module name: ucrtbase.dll, version : 10.0.26100.3912, horodatage : 0xbd96a17b
Exception code: 0xc0000409
Fault offset: 0x000000000001cba8
Faulting process id: 0x62E4
Faulting application start time: 0x1DBBDCA6D928D28
Faulting application path: D:\Programmes\miniCOCKPIT\miniCOCKPIT Data Link Software - MSFS2020 - 2024\miniCOCKPIT Data Link Software - MSFS2020 - 2024.exe
Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
Report Id: faa6b61b-53e6-468d-89b9-6883c00dfc80
Faulting package full name:
Faulting package-relative application ID:

The program worked before on this computer and works fine on my laptop. I changed my processor from Intel i5-12600K to AMD Ryzen 7 9800X3D (chanhe also the motherboard and the RAM to DDR5) so it is maybe due to that (I hadn't played to Flight Simulator for months so I cannot confirm that the issue is due to that).

I tried a lot of solutions found on the Internet but nothing worked:

  • This dll is linked to Microsoft Visual C++ Redistributable I tried to repair but also to uninstall and install again these packages:
  • I tried to uninstall and install again the program after deleting entries in the registry
  • I tried these commands to fix Windows: Dism.exe /online /Cleanup-Image /checkhealthDism.exe /online /Cleanup-Image /scanhealthDism.exe /online /Cleanup-Image /Restorehealthsfc /scannowDism.exe /Online /Cleanup-Image /AnalyzeComponentStoreDism.exe /Online /Cleanup-Image /StartComponentCleanup- I tried to repair Windows via Windows UpdateThe dll was updated (last modification date) but I still have the issue In the report of the failure (Report.wer), I see a long list of dll that are executed:

LoadedModule[0]=D:\Programmes\miniCOCKPIT\miniCOCKPIT Data Link Software - MSFS2020 - 2024\miniCOCKPIT Data Link Software - MSFS2020 - 2024.exe
LoadedModule[1]=C:\WINDOWS\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\WINDOWS\SYSTEM32\MSCOREE.DLL
LoadedModule[3]=C:\WINDOWS\System32\KERNEL32.dll
LoadedModule[4]=C:\WINDOWS\System32\KERNELBASE.dll
LoadedModule[5]=C:\Program Files\Bitdefender\Bitdefender Security\bdhkm\dlls_267531291714407084\bdhkm64.dll
LoadedModule[6]=C:\Program Files\Bitdefender\Bitdefender Security\atcuf\dlls_267664814140849387\atcuf64.dll
LoadedModule[7]=C:\WINDOWS\System32\SHLWAPI.dll
LoadedModule[8]=C:\WINDOWS\System32\msvcrt.dll
LoadedModule[9]=C:\WINDOWS\System32\USER32.dll
LoadedModule[10]=C:\WINDOWS\System32\win32u.dll
LoadedModule[11]=C:\WINDOWS\System32\GDI32.dll
LoadedModule[12]=C:\WINDOWS\System32\gdi32full.dll
LoadedModule[13]=C:\WINDOWS\System32\msvcp_win.dll
LoadedModule[14]=C:\WINDOWS\System32\ucrtbase.dll
LoadedModule[15]=C:\WINDOWS\System32\WS2_32.dll
LoadedModule[16]=C:\WINDOWS\System32\RPCRT4.dll
LoadedModule[17]=C:\WINDOWS\System32\ADVAPI32.dll
LoadedModule[18]=C:\WINDOWS\System32\sechost.dll
LoadedModule[19]=C:\WINDOWS\System32\SHELL32.dll
LoadedModule[20]=C:\WINDOWS\System32\wintypes.dll
LoadedModule[21]=C:\WINDOWS\System32\combase.dll
LoadedModule[22]=C:\WINDOWS\System32\CRYPT32.dll
LoadedModule[23]=C:\WINDOWS\System32\WLDAP32.dll
LoadedModule[24]=C:\WINDOWS\System32\Normaliz.dll
LoadedModule[25]=D:\Programmes\miniCOCKPIT\miniCOCKPIT Data Link Software - MSFS2020 - 2024\MSVCP140.dll
LoadedModule[26]=D:\Programmes\miniCOCKPIT\miniCOCKPIT Data Link Software - MSFS2020 - 2024\VCRUNTIME140.dll
LoadedModule[27]=D:\Programmes\miniCOCKPIT\miniCOCKPIT Data Link Software - MSFS2020 - 2024\VCRUNTIME140_1.dll
LoadedModule[28]=D:\Programmes\miniCOCKPIT\miniCOCKPIT Data Link Software - MSFS2020 - 2024\bcrypt.dll
LoadedModule[29]=C:\WINDOWS\System32\IMM32.DLL
LoadedModule[30]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll
LoadedModule[31]=C:\WINDOWS\SYSTEM32\kernel.appcore.dll
LoadedModule[32]=C:\WINDOWS\SYSTEM32\VERSION.dll
LoadedModule[33]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
LoadedModule[34]=C:\WINDOWS\SYSTEM32\VCRUNTIME140_1_CLR0400.dll
LoadedModule[35]=C:\WINDOWS\SYSTEM32\VCRUNTIME140_CLR0400.dll
LoadedModule[36]=C:\WINDOWS\SYSTEM32\ucrtbase_clr0400.dll
LoadedModule[37]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\mscorlib\8967064a93c70884749ad00de74dd7a1\mscorlib.ni.dll
LoadedModule[38]=C:\WINDOWS\System32\ole32.dll
LoadedModule[39]=C:\WINDOWS\System32\bcryptPrimitives.dll
LoadedModule[40]=C:\WINDOWS\system32\uxtheme.dll
LoadedModule[41]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll
LoadedModule[42]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\System\fc7509f3c5d3bef48dfefcb3947d3b56\System.ni.dll
LoadedModule[43]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\System.Drawing\f8bbe472ae72b0b981525825470239b1\System.Drawing.ni.dll
LoadedModule[44]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\System.Windows.Forms\050d53bc454495448563778ee06e7501\System.Windows.Forms.ni.dll
LoadedModule[45]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\System.Core\cf9616e40d9e7e4d682f88f6d5725156\System.Core.ni.dll
LoadedModule[46]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\System.Configuration\5981d875c9b7bffd26ef1ecacb57079c\System.Configuration.ni.dll
LoadedModule[47]=C:\WINDOWS\assembly\NativeImages_v4.0.30319_64\System.Xml\712338b74f96d32fc2d4d8d3c14667d5\System.Xml.ni.dll
LoadedModule[48]=C:\WINDOWS\SYSTEM32\windows.storage.dll
LoadedModule[49]=C:\WINDOWS\System32\SHCORE.dll
LoadedModule[50]=C:\WINDOWS\SYSTEM32\profapi.dll
LoadedModule[51]=C:\WINDOWS\SYSTEM32\CRYPTSP.dll
LoadedModule[52]=C:\WINDOWS\system32\rsaenh.dll
LoadedModule[53]=C:\WINDOWS\SYSTEM32\CRYPTBASE.dll
LoadedModule[54]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.26100.1882_none_87f34cef7a28f535\comctl32.dll
LoadedModule[55]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.26100.3912_none_6ef289223dc78d4c\gdiplus.dll
LoadedModule[56]=C:\WINDOWS\SYSTEM32\DWrite.dll
LoadedModule[57]=C:\WINDOWS\System32\MSCTF.dll
LoadedModule[58]=C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
LoadedModule[59]=C:\WINDOWS\SYSTEM32\TextShaping.dll
LoadedModule[60]=C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.26100.3912_none_3e07963ce335137e\comctl32.dll
LoadedModule[61]=C:\WINDOWS\System32\OLEAUT32.dll
LoadedModule[62]=C:\WINDOWS\SYSTEM32\textinputframework.dll
LoadedModule[63]=C:\WINDOWS\SYSTEM32\CoreMessaging.dll
LoadedModule[64]=C:\WINDOWS\SYSTEM32\CoreUIComponents.dll

I do not undersand the reason of the exception (Exception code: 0xc0000409, Fault offset: 0x000000000001cba8 and Faulting process id: 0x62E4).

Can you help me to solve this issue without installing again Windows please?

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2025-05-07T19:44:52+00:00

    Hi phildeg31

    Thank you for trying all the steps above.

    It is best to perform the Repair in-place upgrade by following the steps from the link.

    Errors Observed: Process Monitor revealed several errors with the miniCOCKPIT Firmware Uploader on the problematic computer, notably:

    BUFFER OVERFLOW: Occurring on multiple QueryDirectory calls for essential DLLs. This often signals that the caller's buffer isn't large enough to capture the data, which might be handled gracefully by some applications but not in this case.

    INVALID DEVICE REQUEST: Indicating that the uploader issued a device control request that the target hardware or its drivers did not support.

    Differences Between Environments: Since the software functions correctly on your laptop but fails on your AMD-based system (with a Ryzen 7 9800X3D and DDR5 memory), the issue likely stems from hardware/driver differences or environmental factors on your primary machine.

    Potential Causes:

    A mismatch between the application’s bundled runtime DLLs (like MSVCP140.dll and VCRUNTIME140.dll) and the system versions.

    Differences in how the new AMD system's drivers handle low-level file system operations and control requests.

    The firmware uploader encountering unexpected conditions or device states specific to the desktop configuration.

    Next Steps to Consider:

    Update & Compare DLLs: Verify that the local DLLs bundled with the application are either up to date or temporarily let the application use the system versions.

    Driver & Firmware Verification: Ensure that all drivers (chipset, storage, device-specific) and firmware are updated on your AMD system.

    Further Debugging: Consider capturing a crash dump with debugging tools to pinpoint which function is mishandling the buffer overflow.

    Vendor Support: Share your detailed Process Monitor logs with miniCOCKPIT’s support to check if others with similar AMD setups have identified a workaround or patch.

    The next steps to perform a Reset PC Keep files. If this is not an option for you.

    It is best to contact our Microsoft Support.

    If you prefer to contact our phone or chat teams, you can do so by following the link below:

     https://support.microsoft.com/home/contact?ContactUsExperienceEntryPointAssetId=S.HP.outlook

    Once you've opened the link, do the following:

    (1) Provide a brief description of your problem and click Get Help;

    (2) click Contact Supportat the bottom of the****results that appear;

    (3) click Confirm after making sure which product you have a problem with**;** and

    (4) Finally, you will have the option of contacting an Office chat representative or receiving a call from an Office telephone representative.

    Best regards

    Lonex P.

    Microsoft Moderator

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-05-07T19:11:09+00:00

    After taking time to analyze the processes with Process Monitor tool, I extracted in excel files the list of processes linked to the miniCockpit program when the program works (on my laptop) and when it does not work (on computer where I use Flight Simulator).

    Some parts are similar but I see a lot of differences and some strange errors in processes when it does not work (INVALID DEVICE REQUEST and BUFFER OVERFLOW):

    FileSystemControl D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\miniCOCKPIT Firmware 20241117 Uploader.exe INVALID DEVICE REQUEST Control: 0x90390 (Device:0x9 Function:228 Method: 0)
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\MSVCP140.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: MSVCP140.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\api-ms-win-crt-stdio-l1-1-0.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: api-ms-win-crt-stdio-l1-1-0.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\api-ms-win-crt-heap-l1-1-0.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: api-ms-win-crt-heap-l1-1-0.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\KERNEL32.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: KERNEL32.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\api-ms-win-crt-runtime-l1-1-0.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: api-ms-win-crt-runtime-l1-1-0.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\VCRUNTIME140.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: VCRUNTIME140.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\USER32.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: USER32.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\SHELL32.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: SHELL32.dll; 2: MSXT
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\api-ms-win-crt-string-l1-1-0.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: api-ms-win-crt-string-l1-1-0.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\api-ms-win-crt-convert-l1-1-0.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: api-ms-win-crt-convert-l1-1-0.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\api-ms-win-crt-filesystem-l1-1-0.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: api-ms-win-crt-filesystem-l1-1-0.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\api-ms-win-crt-locale-l1-1-0.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: api-ms-win-crt-locale-l1-1-0.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\VCRUNTIME140_1.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: VCRUNTIME140_1.dll; 2: MS
    QueryDirectory D:\Programmes\miniCOCKPIT\miniCOCKPIT Firmware 20241117 Uploader\mscoree.dll BUFFER OVERFLOW FileInformationClass: FileNamesInformation; Filter: mscoree.dll; 2: MS

    I can provide the 2 excel files.

    Do you know what can cause these kind of errors?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-05-07T19:06:12+00:00

    Hi,

    This is my answer:

    Check for Compatibility Issues

    The tool is compatible with AMD processors because it is used by other users having an AMD processor.

    Run Windows Memory Diagnostic

    mdsched.exe has been executed without any error.

    Disable Overclocking

    CPU is not overclocked by me. For RAM, I use XMP profile on my motherboard for the new compatible DDR5 to have 6000MHz instead of default 5600MHz.

    Try Running the Program in Compatibility ModeI

    Already tried and I do not have Windows 10 but only Windows 8 and previous versions.

    Check for Conflicts with Bitdefender

    On my laptop, where I also have Bitdefender, it is working. I also tried to disable the Bitdefender protection but I still have the issue.

    Reinstall Microsoft Visual C++ Redistributables

    Already done as explained in previous message.

    Check for Missing Dependencies

    I checked and it seems that I already have the last version of .NET Framework (installation is refused because of that).

    For DirectX, by executing dxdiag, I have the last version (12).

    Perform Repair in-place upgrade

    This was already done using Windows Update repair function.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-05-06T17:17:32+00:00

    Hi phildeg31

    Thank you for posting in Microsoft Community.

    I understand the frustration you must be feeling with this issue. Since you have already tried various troubleshooting steps without success, Here are a few additional troubleshooting steps you might try:

    Check for Compatibility Issues

    Since you've switched from Intel to AMD, ensure that miniCOCKPIT Data Link Software is compatible with AMD processors. Some applications may have optimizations for Intel architectures.

    Run Windows Memory Diagnostic

    Faulty RAM can cause unexpected crashes. Run mdsched.exe to check for memory issues.

    Disable Overclocking

    If your CPU or RAM is overclocked, try reverting to default speeds.

    Try Running the Program in Compatibility Mode

    Right-click the executable, go to Properties > Compatibility, and try running it in Windows 10 mode.

    Check for Conflicts with Bitdefender

    Your crash report lists Bitdefender DLLs loaded. Try temporarily disabling Bitdefender to see if it resolves the issue.

    Reinstall Microsoft Visual C++ Redistributables

    You've already tried reinstalling them, but make sure you install all versions (2015, 2017, 2019, and 2022) from Microsoft's official site.

    Check for Missing Dependencies

    Some users have reported that ucrtbase.dll crashes can be linked to missing .NET Framework or DirectX components. Try reinstalling them.

    Perform Repair in-place upgrade: This will reinstall your Operating System and will keep your files and apps. This will take some time depending on the computer performance and internet speed. You can follow the steps from this link: How to perform repair upgrade in Windows 11 - Microsoft Community. I know that you don't want to reinstall your Windows, but this is worth a try.

    Please let me know if this works

    Best Regards,

    Lonex P.

    Microsoft Moderator

    Was this answer helpful?

    0 comments No comments