Windows error 0x80131506, -2146233082

Detailed Error Information

COR_E_EXECUTIONENGINE[1]

Message"Internal CLR error."
Comment An internal error happened in the Common Language Runtime's Execution Engine

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5382 (0x1506)

Questions

19votes
2answers

Possible .NET JIT call parameter lifetime bug?

I've been chasing down the cause of an intermittent crash in one of our .NET services due to an internal error in the .NET Runtime (exit code 0x80131506). The service in question doesn't perform any of the kinds of operation that are usually to blame for such errors (unsafe code, [...] read more
c#
.net
garbage-collection
jit
5votes
0answers

What is the meaning of the runtime error - internal CLR error 0x80131506

While I was debugging a simple bit of C#. I got the error 'internal clr error 0x80131506' and the program being debugged crashed. It's .NET Core 3.1 running on Windows 10 x64. The code wasn't doing much interesting, just calling a method that iterates an array, from another static method [...] read more
c#
.net
runtime-error
clr
3votes
2answers

Multiple problems after installing Visual Studio 2015 RTM

I've just tried installing Visual Studio 2015 RTM on my Windows 8.1 computer. The installation proceeded without any problems, but afterwards I had multiple issues: * Visual Studio 2015 itself wouldn't launch: it would crash with a Debug dialog on startup. * Visual Studio 2013, which was previously working, also [...] read more
windows-8
crash
visual-studio-2015
2votes
0answers

App crash with cryptic error code

I'm working on a C# application, but occasionally the GUI disappears (closes) without any warning. None of the exceptions catches seem to work, but I did notice the following error code in the VS output window: > The program '[5172] MyProg.vshost.exe: Managed (v4.0.30319)' has exited with > code -2146233082 (0x80131506) [...] read more
c#
1vote
1answer

Internal CLR errors (0x80131506) and crash in Powershell

I am going to preface this by saying that the cause of the error itself might not actually be related to PowerShell specifically, it may lie deeper in .NET but that is where I encountered it. PowerShell version: 7.1.0 I defined the following type in order to resolve resource requests [...] read more
.net
powershell
clr
powershell-7.0
1vote
0answers

.NET application crash with 0x80131506 error (ExecutionEngineException)

Our .NET app crashes randomly with ExecutionEngineException error. App targets .NET 4.8 x64. After some intensive reproduction attempts I've collected following facts. 1. We used WinDBG Preview with Time Travel function to capture execution history. 2. We analyzed few crashes of app collected with AdPlus where break point was set [...] read more
.net
wcf
clr
executionengineexception
1vote
1answer

Debugging an exe that crashes without raising AppDomain.UnhandledException

I have an exe that works properly in Visual Studio. When I deploy it to Windows Server, it crashes -- even though I am trying to catch its unhandled exceptions, as shown in the code below. The code DOES catch unhandled exceptions as expected in VS (i.e. it displays the [...] read more
.net
windows
1vote
3answers

Cannot debug excel vsto add-in. Excel opens and closes immediately

I am trying to create an excel add-in using Visual Studio 2013. The add-in is for Excel 2010. Now the issue I am facing... I am not able to run the add-in in debug mode. When I click "Start" to debug my code, Excel opens and closes immediately. This issue [...] read more
c#
.net
excel
vsto
vba
1vote
1answer

How to throw new exception in FirstChanceException event

I am trialling the FirstChangeException event handler for the service layer of my WCF. The aim is to capture the exception from any method and throw it as a new FaultException so it can pass back to the client. For example below is a test server class private static bool [...] read more
c#
exception
exception-handling
first-chance-exception
1vote
1answer

AppDomain.FirstChanceException event subscription causing FatalExecutionEngineError

This class exists in its own DLL. Calling the Ex method fairly obviously causes an exception to be thrown and handled: class Foo : MarshalByRefObject { public void Ex() { object o = null; try { string s = o.ToString(); } catch { } } } The following loads the [...] read more
c#
.net
0votes
2answers

IIS7 Application Pool Crash

I am running IIS 7.0 on Windows server 2008 R2 and created 1 Application Pool per site and I have 1 site which is causing the application pool to stop. These are the following errors in the Event Viewer: This shows several times: A process serving application pool 'Pilot.Mobile.SyncV2' terminated [...] read more
windows-server-2008
iis-7
application-pools
0votes
0answers

Should .net core still be throwing a System.ExecutionEngineException?

I have a .netcore 3.1 (with some .netstandard 2.0 libraries, no external references and only managed code) project where I'm currently investigating an issue with managed heap corruption. Occasionally, it throws a System.ExecutionEngineException, with HResult=0x80131506, in different areas of the code (for instance, when creating a new list). Update: I [...] read more
c#
memory
clr
0votes
0answers

Reading and converting CSV Files using Microsoft Excel Interop throws System.ExecutionEngineException

I am currently facing an issue in my program that is created for reading .xls and .csv files and match two files against each other. When using .xls files everything is fine and works as expected. However, if I am using .csv files, I always receive this error: Fatal error. [...] read more
c#
csv
interop
clr
0votes
0answers

How to correctly pass a buffer array pointer to unmanaged dll from C#

I have a function in an unmanaged library that looks like this: void fill_arr(int size, struct mystruct **buffer) { /* code that allocates memory for size number of structs and fills the pointer buffer */ } In C# i try to do the following: [DllImport("mylib.dll", CallingConvention = CallingConvention.Winapi, EntryPoint = [...] read more
c#
marshalling
0votes
1answer

Can an internal clr exception be caught and retried?

While calling .ToArray, I am hitting the following exception: Internal CLR error. (0x80131506) at System.Linq.Enumerable.ToArray[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>) This happens intermittently, and is hard to reproduce. Can this type of exception be caught and retried? Would I just have to catch a generic exception. The code to call .ToArray() [...] read more
c#
exception
.net-core
0votes
1answer

Cannot debug .NET-based PowerPoint add-in

I have a PowerPoint add-in developed with .NET Framework 4.0/C#/VSTO. The add-in loads fine when I manually launch PowerPoint, but when I press F5 in Visual Studio, the PowerPoint splash screen shows for a short period and then PowerPoint closes. The Visual Studio output window shows only the following lines: [...] read more
visual-studio-2013
0votes
1answer

Visual Studio 2012 stackoverflow after entity framework connectionstring missing

I'm working in VS2012 with update 1 on a win2k8 r2 64 bit. Within a simple class library application i do Add > New Item> ADO.NET Entity Data Model I select a SQL Server on the network and select the database and add a single table. The table gets added, [...] read more
c#
visual-studio-2012
connection-string
entity-framework-5
0votes
4answers

Is the CLR or metro buggy?

I am getting the following error when running my metro app: > The runtime has encountered a fatal error. The address of the error was at > 0x6e6b9a68, on thread 0x279c. The error code is 0x80131506. This error may be > a bug in the CLR or in the unsafe [...] read more
microsoft-metro
windows-runtime
0votes
1answer

IIS7 Application Pool Crash

I am running IIS 7.0 on Windows server 2008 R2 and created 1 Application Pool per site and I have 1 site which is causing the application pool to stop. These are the following errors in the Event Viewer: This shows several times: A process serving application pool 'Pilot.Mobile.SyncV2' terminated [...] read more
iis-7
windows-server-2008
application-pool
-1votes
1answer

C# Debugging Error Only When Stepping Through Code

My MonoGame application is outputting an error while stepping through code in visual studio, but not while running the code. I am stumped and wondering if I have been breaking some rules. So, here is the code in question: public class SpacialHash<T> { public Vector2 Size, CellSize; public HashCell<T>[,] Cells; [...] read more
c#
visual-studio

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0