Using the HoloLens, the call to GetAsync() in WorldAnchorManager::Awake() never returns. A breakpoint on line 65 is hit, then the app crashes. Runs fine in Release mode.
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).
We can replicate this on PCs with VS2017 Enterprise and Community, with Unity 5.6, and on two separate HoloLens devices.
We can replicate this on PCs
GetAsync is/will never called in the editor nor on PC, but the crashing on HL is concerning.
I'll need a bit more information about your setup.
Just see this topic:
https://forums.hololens.com/discussion/7203/vs2017-u5-6-crash-winrtscriptingobjectwrapper-internaladdref-reference-count-cannot-be-zero
Have the same problem with VS2017, Unity 5.60f3 and Hololens
Did you try the 5.6.0p1 patch release? They seemed to have addressed a lot of windows store platform build fixes.
Updated. The same result.
My 2 cents: tested with Unity3D 5.6.0p2, and I got the same error.
This only happens in a Debug build correct?
Have you tried Release or Master builds?
I believe this was a Unity bug and has been resolved in later editor releases. Please reopen if issue persists in Unity Editor 2017+
I can confirm this. I’m working with v2017.1.0f3, and all is well. Thank you.
From: Stephen Hodgson [mailto:[email protected]]
Sent: 01 August 2017 02:02
To: Microsoft/HoloToolkit-Unity HoloToolkit-Unity@noreply.github.com
Cc: dixoncb dixoncb@btconnect.com; Author author@noreply.github.com
Subject: Re: [Microsoft/HoloToolkit-Unity] WorldAnchorManager causes WinRTScriptingObjectWrapper crash in Debug Mode (#623)
I believe this was a Unity bug and has been resolved in later editor releases. Please reopen if issue persists in Unity Editor 2017+
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/Microsoft/HoloToolkit-Unity/issues/623#issuecomment-319238097 , or mute the thread https://github.com/notifications/unsubscribe-auth/AH5Crm5GHVuk-tCJNnio9SWg8e-7Yptoks5sTnkAgaJpZM4M-aMA . https://github.com/notifications/beacon/AH5CruPaP2Y8Edv6yE9BcWjuxGlGQ30Uks5sTnkAgaJpZM4M-aMA.gif
Most helpful comment
Updated. The same result.