How can I diagnose this crash ?

Hello,

I am trying to diagnose a crash in the HoloLens emulator. The app, built in debug, stops suddenly with the following error in the log :

End showing splash screen.
UnloadTime: 27.127035 ms
WinRTScriptingObjectWrapper::InternalAddRef Reference Count cannot be zero
(Filename: C:\buildslave\unity\build\Runtime/ScriptingBackend/DotNet/ScriptingApi_DotNet.cpp Line: 650)
The program '[4756] agc.exe' has exited with code -2147483645 (0x80000003).

I have no other clue to identify what is responsible for this error. Is there any tool or mehodology to track that kind of error ?

Thanks for your help :slight_smile:

Same over here. I’m using Unity 5.6 with Visual Studio 2017 and Vuforia.
App starts up as usual:

  • Unity splash showing
  • Mapping surroundings
  • Running through all Start() methods

Then suddenly crashes:

WinRTScriptingObjectWrapper::InternalAddRef Reference Count cannot be zero
(Filename: C:\buildslave\unity\build\Runtime/ScriptingBackend/DotNet/ScriptingApi_DotNet.cpp Line: 661)

I tried adding break points everywhere, but the crash seems to occur somewhere between the last Start()-call and the first Update() call.

I’m seeing the same thing. I’m using VS2017 professional and Unity 5.6, with the HoloToolkit. Everything was OK until I upgraded to VS2017 from VS2015, but now I see this error in every project that uses the WorldAnchorManager class. I don’t think a reference project is going to help. I am using the same, very simple scene, on another PC with VS2015 and Unity 5.1.1, and it runs here with no issue. A colleague is running the same scene on VS2017 Community Version with V5.6, and that’s OK, too.

For the record, this is the error message from VS output:

‘test8.exe’ (CoreCLR: CoreCLR_UWP_Domain): Loaded ‘C:\Data\Users\DefaultAccount\AppData\Local\DevelopmentFiles\test8VS.Debug_x86.dixon\System.Linq.Expressions.dll’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
Starting the observer.

(Filename: C:/buildslave/unity/build/artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

WinRTScriptingObjectWrapper::InternalAddRef Reference Count cannot be zero

(Filename: C:\buildslave\unity\build\Runtime/ScriptingBackend/DotNet/ScriptingApi_DotNet.cpp Line: 661)

The program ‘[4144] test8.exe’ has exited with code -2147483645 (0x80000003).