UWP app crash immediately after opening with Faulting module name: KERNELBASE.dll Event Log

Samip Dahal 1 Reputation point
2022-01-21T09:43:48.22+00:00

Hi all,

I have developed a UWP app and uploaded it to Windows Store. Everything was working perfectly fine until I created a new self-signing certificate after the previous one expired and re-published the new changes to the store. The application after downloading and installing from the store crashes immediately after opening and leaves an event log with the below error in the Windows Event Viewer. The same issue occurs when installing through a side-loading build.

I have tried all methods suggested online(running system scan for corrupted files, register dll, use dll file from another system, etc). I have also uploaded an image showing my windows version. Any help will be appreciated. Thank you.

167139-image.png

Faulting application name: XYZWindowsApps.exe, version: 1.0.1.0, time stamp: 0x61e99c28
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1466, time stamp: 0xe01c7650
Exception code: 0xc000027b
Fault offset: 0x000000000010b362
Faulting process id: 0x2d0c
Faulting application start time: 0x01d80e24b18250ad
Faulting application path: C:\Program Files\WindowsApps\NameXYZ.AppName_1.0.13.0_x64__tesn1012p7f1y\XYZWindowsApps.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 07e3f487-1127-4f89-ba1b-1e1cb032168c
Faulting package full name: NameXYZ.AppName_1.0.13.0_x64__tesn1012p7f1y
Faulting package-relative application ID: App

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,574 questions
Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,204 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,336 Reputation points
    2022-01-25T11:50:33.877+00:00

    Hi there,

    As it seems you have tried all possible solutions (running system scan for corrupted files, register dll, use DLL file from another system, etc) the only option would be to do an in-place upgrade.

    How to perform an In-place Upgrade with Windows 10 Step-by-Step Guide
    https://answers.microsoft.com/en-us/windows/forum/all/how-to-perform-an-in-place-upgrade-with-windows-10/7f0b236e-3c6c-4913-9691-c4baa2a6190a

    The file KernelBase.dll is a DLL file stored in the system folder of the Windows operating system. It is created automatically during the installation of the Windows operating system. KernelBase.dll is used to launch .exe applications. When it is corrupt, you will get .dll missing or not found error when you start the programs.


    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.

  2. KeNtEr Shan 0 Reputation points
    2024-02-21T09:35:09.8633333+00:00

    我的问题可能和你是一样的。我使用xamarin.forms开发,启动UWP时可能会闪退。

    Windows日志显示: 错误模块名称: KERNELBASE.dll,版本: 10.0.19041.3996,时间戳: 0xb756c9ff 异常代码: 0xc000027b 错误偏移量: 0x000000000012d952 错误进程 ID: 0x4dc8 错误应用程序启动时间: 0x01da648d8a2b6a8d 错误应用程序路径: C:...\CsaApp\CsaApp.UWP\bin\x64\Debug\AppX\CsaApp.UWP.exe 错误模块路径: C:\WINDOWS\System32\KERNELBASE.dll

    调试时异常错误: 连到系统上的设备没有发挥作用。 (Exception from HRESULT: 0x8007001F)

    堆栈: at Windows.UI.Xaml.FrameworkElement.OnApplyTemplate() at Xamarin.Forms.Platform.UWP.FormsTextBox.OnApplyTemplate() at Windows.UI.Xaml.UIElement.Measure(Size availableSize) at Xamarin.Forms.Platform.UWP.VisualElementRenderer2.MeasureOverride(Size availableSize) at Windows.UI.Xaml.UIElement.Measure(Size availableSize) at Xamarin.Forms.Platform.UWP.VisualElementRenderer2.MeasureOverride(Size availableSize) at Windows.UI.Xaml.UIElement.Measure(Size availableSize) at Xamarin.Forms.Platform.UWP.VisualElementRenderer2.MeasureOverride(Size availableSize) at Windows.UI.Xaml.UIElement.Measure(Size availableSize) at Xamarin.Forms.Platform.UWP.VisualElementRenderer2.MeasureOverride(Size availableSize) at Windows.UI.Xaml.UIElement.Measure(Size availableSize) at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.MeasureOverride(Size availableSize)

    调试时异常位置: App.g.i.cs #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION UnhandledException += (sender, e) => { if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break(); <<<此处异常 }; #endif

    我还不知道如何解决这个问题,但是现在能够知道的是这个错误和打印有关系,只要用户使用了APP中的打印功能,再次重新打开APP时就会闪退。我在APP中使用的打印控件是Syncfusion.Xamarin.SfPdfViewer。重新安装APP可以解决这个问题,但是打印后重新启动还会闪退。 如果有人知道如何解决请告诉我。

    0 comments No comments