microsoft / microsoft-ui-xaml

WinUI: a modern UI framework with a rich set of controls and styles to build dynamic and high-performing Windows applications.
MIT License
6.38k stars 683 forks source link

Long running UWP application closes randomly with Exception code #10010

Open ElaJegen opened 2 months ago

ElaJegen commented 2 months ago

This is an UWP app that communicates to PLC controllers. It send commands, receive real-time data every second, display data with graphs and textfields.

Application was running for 19+ hours before a crash happened. With Event Log, we were able to collect Exception codes: Error codes: 1: c0000005 (Windows.UI.Xaml.dll) 2: c0000374 (ntdll.dll)

We were not able to reproduce this exceptions on our debug environment. Don't have a steps to reproduce. Really appreciate any help!

Event Log for c0000005 error: Application Error: Faulting application name: [App Name], version: 1.0.0.0, time stamp: 0x5e5883fd Faulting module name: Windows.UI.Xaml.dll, version: 10.0.19041.3693, time stamp: 0x4d0a8551 Exception code: 0xc0000005 Fault offset: 0x000000000014eb49 Faulting process id: 0x259c Faulting application start time: 0x01da196718830019 Faulting application path: C:\Program Files\WindowsApps[App Name] Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll Report Id: 47086d13-72cf-43b7-b2e0-4c730e9cc6ed Faulting package full name: [App Name] Faulting package-relative application ID: App

Event Log for c0000374 Application Error: Faulting application name: [App Name], version: 1.0.0.0, time stamp: 0x5e5883fd Faulting module name: ntdll.dll, version: 10.0.19041.3636, time stamp: 0x9b64aa6f Exception code: 0xc0000374 Fault offset: 0x00000000000ff349 Faulting process id: 0x2dcc Faulting application start time: 0x01da20c57b485de4 Faulting application path: C:\Program Files\WindowsApps[App Name] Faulting module path: C:\Windows\SYSTEM32\ntdll.dll Report Id: e5a51a12-41fc-4f84-a96e-f84965d38824 Faulting package full name:[App Name] Faulting package-relative application ID: App

Windows Error Reporting: [App Name] 1.0.0.0 5e5883fd ntdll.dll 10.0.19041.3636 9b64aa6f c0000374 00000000000ff349 2dcc 01da20c57b485de4 C:\Program Files\WindowsApps[App Name] C:\Windows\SYSTEM32\ntdll.dll e5a51a12-41fc-4f84-a96e-f84965d38824 [App Name] App

github-actions[bot] commented 2 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

IstvanKor commented 2 months ago

Just an idea: It might be some issue related to app suspension. Try postponing your app suspension with extended execution. https://learn.microsoft.com/en-us/windows/uwp/launch-resume/run-minimized-with-extended-execution

var newSession = new ExtendedExecutionSession(); newSession.Reason = ExtendedExecutionReason.Unspecified; newSession.Description = "Description"; ExtendedExecutionResult result = await newSession.RequestExtensionAsync();

// Controller process

newSession.Dispose(); newSession = null;