Event Viewer Application Crash - decrypting the error message - c#

Does anyone know how to decrypt this to find out where in the program the crash is happening from the Event Viewer in Windows?
Faulting module name: clr.dll, version: 4.6.81.0, time stamp: 0x5584e56f
Exception code: 0xc00000fd
Fault offset: 0x004219ca
Faulting process id: 0x141c
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 648e6840-f685-11e5-8913-005056ab66a9
Thanks for you help!

This won't tell you where the error is, but a simple Google on 0xc00000fd will tell you it's a stack overflow (so you've reported it to the right place!). Try catching exceptions in the code, also monitoring memory usage as the program runs, etc.

Related

When the desktop bridge application uses the update API, disconnecting the network will cause the app to crash

Using StoreContext.CanSilentlyDownloadStorePackageUpdates when the network is disconnected will cause the app to crash, and I try to use Try-Catch to fail to catch this exception.
In addition, when I use StoreContext.TrySilentDownloadStorePackageUpdatesAsync to download the update package, disconnecting the network at this time will also cause the APP to crash too.
Code snippet:
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
public bool CanSilentlyUpdate()
{
try
{
//There will be an error:
// System.AccessViolationException :“Attempted to read or write protected memory.
// This is often an indication that other memory is corrupt.”
return StoreContext.GetDefault().CanSilentlyDownloadStorePackageUpdates;
}
catch (Exception ex)
{
Debug.WriteLine(ex);
return false;
}
}
The following is the error log in Event Viewer:
Eventlog 1: Application: MyApp.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException at
Windows.Services.Store.StoreContext.get_CanSilentlyDownloadStorePackageUpdates()
Eventlog 2: Faulting application name: MyApp.exe, version: 1.0.0.0,
time stamp: 0x96223b82 Faulting module name:
Windows.ApplicationModel.Store.dll, version: 10.0.19041.329, time
stamp: 0x92fa3e59 Exception code: 0xc0000005 Fault offset: 0x0009fcb0
Faulting process id: 0x6d0c Faulting application start time:
0x01d6511c5d86de48 Faulting application path: C:\Program
Files\WindowsApps\MyApp\MyApp.exe Faulting module path:
C:\Windows\System32\Windows.ApplicationModel.Store.dll Report Id:
d67098d6-39c7-4a02-a837-b523821c9ca2 Faulting package full name: MyApp
Faulting package-relative application ID: App
Eventlog 3: Application: MyApp.exe Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 7947FCB0
Stack:
Eventlog 4: Faulting application name: MyApp.exe, version: 1.0.0.0, time
stamp: 0x96223b82 Faulting module name:
Windows.ApplicationModel.Store.dll, version: 10.0.19041.329, time
stamp: 0x92fa3e59 Exception code: 0xc0000005 Fault offset: 0x0009fcb0
Faulting process id: 0x36a0 Faulting application start time:
0x01d65131af3782e2 Faulting application path: C:\Program
Files\WindowsApps\MyApp\MyApp.exe Faulting module path:
C:\Windows\System32\Windows.ApplicationModel.Store.dll Report Id:
4a027389-345c-4f16-a605-276f2774c768 Faulting package full name: MyApp
Faulting package-relative application ID: App
This kind of exception seems to be unable to be caught using managed code, what should I do?
After discussing with other engineers, it looks like there is no other way to handle it.
This method should be running in the background so that you could not catch it in the UI thread. It essentially bypasses any chance dev has at handling the exception.
Our suggestion is that you need to check the network before calling this method and give a tip when calling this method to tell the user to keep network connection. And you could try to subscribe to the NetworkInformation.NetworkStatusChanged Event in your app.

How to resolve problem with StackOverflowException on MVC Core

There is problem with hosting application on IIS by VS2017 (15.9.3). I have MVC app write in .NET Core 2.0 with enabled logging on web.config
stdoutLogEnabled="true" stdoutLogFile="c:\Logs\log.txt"
After any request is made I get 502.3 error.
HTTP Error 502.3 - Bad Gateway The specified CGI application
encountered an error and the server terminated the process.
On my log file there is short info:
Process is terminating due to StackOverflowException.
On EventViewer I get more descriptive error:
Faulting application name: w3wp.exe, version: 7.5.7601.17514, time
stamp: 0x4ce7afa2
Faulting module name: ntdll.dll, version: 6.1.7601.24260, time stamp:
0x5b9470be
Exception code: 0xc000070a
Fault offset: 0x00000000000139d7
Faulting process id: 0x2304
Faulting application start time: 0x01d48723e2a88740
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: f7ca32d0-f31c-11e8-83db-1c4d70da3d0a
Exception is probably generated by something in my code, maybe configuration of sth is wrong, but how can I find reason of it?
What could be the best strategy to find solution?

Wpf application crash dwrite.dll

My WPF application crashes on some different PC's.
Here is Windows Event Log:
Faulting module name: dwrite.dll, version: 6.3.9600.18696,time stamp:0x5915df3a<br/>
Exception code:0xc00000fd<br/>
Fault offset:0x0000706a<br/>
Faulting process id:0x59f8<br/>
Faulting application start time:0x01d3b7aa9dba2f15<br/>
Faulting application path:C:\Windows\SYSTEM32\dwrite.dll<br/>
Faulting package full name: <br/>
Faulting package-relative application ID:<br/>
Windows 10 and video driver are updated. dxdiag did not find any problems. Please tell me the direction to solve this problem.
Exception code 0xc00000fd is a stack overflow exception. The most likely causes of a stack overflow are infinite recursion (probably an event that keeps on calling itself, but I am not sure if your dll can prevent this by itself) or a huge value type passed as an argument to a function.
Difficult to say anything more concrete given the total absence of any code in your question.

Unhandled Exception, Access violation reading location

I use third party libary in my forms application with C# Visual Studio 2013 and I take fingerprints with a fingerprint scanner.
While taking fingerprints my application throw unhandled exeption. What can be reason of this error?
This is error:
"Unhandled exception at 0x693B0A37 (msvcr100.dll) in
GetFingerprints.exe: 0xC0000005: Access violation reading location
0x0E762000."
And here is the error which shows in event viewer.
Faulting application name: GetFingerprints.exe, version: 1.0.0.0, time
stamp: 0x542bcc4c Faulting module name: MSVCR100.dll, version:
10.0.40219.325, time stamp: 0x4df2be1e Exception code: 0xc0000005 Fault offset: 0x00010a37 Faulting process id: 0x1094 Faulting
application start time: 0x01cfdd5c12b8ea77 Faulting application path:
C:\Proje\MyProject\bin\Debug\GetFingerprints.exe Faulting
module path: C:\Windows\system32\MSVCR100.dll Report Id:
fdc362c7-494f-11e4-9a0a-f0921cdc1fd5

How to solve stopped windows service 'clr.dll error?

Hi; i have a windows service. i want to start my windows service by a batch file(.bat file). i do it succesfully.
My service is starting very good. But 4-5 seconds later stop itself. Not working 4-5 seconds later.if i look my event logs on my windows server 2008,
an error occured. My error is below. How can i solve this problem?
Faulting application name: MyProject.WindowsService.exe, version: 1.0.0.0, time stamp: 0x4ffec57c
Faulting module name: clr.dll, version: 4.0.30319.269, time stamp: 0x4ee9ae83
Exception code: 0xc00000fd
Fault offset: 0x003565fd
Faulting process id: 0x1bbc
Faulting application start time: 0x01cd60323465e0b0
Faulting application path: C:\MyProject.WindowsService\bin\Debug\MyProject.WindowsService.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 742f8164-cc25-11e1-ae08-00155d100687
0xc00000fd indicates a stack overflow.
Are you calling Win32 apis using p/invoke?
Can you add some logging to the application and see how far it gets before faulting
Does it fail when running as an application (not as a service?)

Categories