Skip to content

Visual Studio 2019 crashes with mixed debugging (.Net Core)  #1

@fobrs

Description

@fobrs

The latest version of Visual Studio 2019 (16.5.2) crashes when in a mixed debugging (.Net Core) session.

As soon as you want to look at a managed variable the crash occurs. So if you want to look at the value of _managedState, Visual Studio 2019 crashes.

image
Event Viewer shows:

Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x01548ca0
Faulting process id: 0x2914
Faulting application start time: 0x01d607a4b457b6d1
Faulting application path: E:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\devenv.exe
Faulting module path: unknown
Report Id: a0ae67a1-4bdf-4467-9c83-6c9549ac87a2
Faulting package full name: 
Faulting package-relative application ID:

And:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
   at MCppEE.QueryAssemblyCompiler.GetIlasmNameInternal(MCppEE.Type, Boolean, Boolean)
   at MCppEE.QueryAssemblyCompiler.GetIlasmName(MCppEE.Type, Boolean)
   at MCppEE.QueryAssemblyCompiler.GetIlasmNameInternal(MCppEE.Type, Boolean, Boolean)
   at MCppEE.FunctionBuilder.GetFunctionDefinition()
   at MCppEE.CompilerEntryPoint.GetClrLocalVariableQuery(Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionContext, Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionAddress, Boolean)
   at Microsoft.VisualStudio.Debugger.EntryPoint.IDkmClrExpressionCompiler_GetClrLocalVariableQuery(IntPtr, IntPtr, IntPtr, Byte, IntPtr ByRef)

Apparently mixed .Net Core debugging is using .Net Framework!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions