Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MSBuild fatal unhandled exception #16034

@mrward

Description

@mrward

Steps to Reproduce

Install Mono 6.4.0.148 (2019-06/84bc821cdc3 Thu Aug 1 07:34:53 EDT 2019)
Install .NET Core SDK 2.1.701

mkdir angular-test
cd angular-test
dotnet new angular
msbuild
msbuild /t:Rebuild

Current Behavior

Build succeed.
Fatal MSBuild error.
Exit code 255 returned from msbuild.

[ERROR] FATAL UNHANDLED EXCEPTION: System.ObjectDisposedException: Safe handle has been closed
  at System.Runtime.InteropServices.SafeHandle.DangerousReleaseInternal (System.Boolean dispose) [0x00031] in <d826688bf0184e629043e8d66af1d42b>:0 
  at System.Runtime.InteropServices.SafeHandle.InternalFinalize () [0x00008] in <d826688bf0184e629043e8d66af1d42b>:0 
  at System.Runtime.InteropServices.SafeHandle.Dispose (System.Boolean disposing) [0x0000a] in <d826688bf0184e629043e8d66af1d42b>:0 
  at System.Runtime.InteropServices.SafeHandle.Finalize () [0x00000] in <d826688bf0184e629043e8d66af1d42b>:0 

We believe that the above exception is crashing MSBuild when running the VS Mac tests sometimes.

Expected Behavior

MSBuild succeeds with no errors. Exit code is not 255.

On which platforms did you notice this

[x] macOS
[ ] Linux
[ ] Windows

Version Used:

6.4.0.148 (2019-06/84bc821cdc3 Thu Aug 1 07:34:53 EDT 2019)

We believe 6.4.0.110 to be OK.

Stacktrace

[ERROR] FATAL UNHANDLED EXCEPTION: System.ObjectDisposedException: Safe handle has been closed
  at System.Runtime.InteropServices.SafeHandle.DangerousReleaseInternal (System.Boolean dispose) [0x00031] in <d826688bf0184e629043e8d66af1d42b>:0 
  at System.Runtime.InteropServices.SafeHandle.InternalFinalize () [0x00008] in <d826688bf0184e629043e8d66af1d42b>:0 
  at System.Runtime.InteropServices.SafeHandle.Dispose (System.Boolean disposing) [0x0000a] in <d826688bf0184e629043e8d66af1d42b>:0 
  at System.Runtime.InteropServices.SafeHandle.Finalize () [0x00000] in <d826688bf0184e629043e8d66af1d42b>:0 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions