microsoft / HoloLens2ForCV

Sample code and documentation for using the Microsoft HoloLens 2 for Computer Vision research.
MIT License
494 stars 144 forks source link

Unity crashing when exiting Playmode on UWP using Azure Object Anchors #107

Closed DerAlexF closed 3 years ago

DerAlexF commented 3 years ago

Good afternoon everyone,

I am currently creating an application for the HoloLens2 that uses Azure Object Anchors. Somehow I am the only person in my team that gets an error. The error occurs when exiting playmode with Unity version 2019.4.25f1


Stacktrace:

at <0xffffffff> at (wrapper managed-to-native) Microsoft.Azure.ObjectAnchors.NativeLibrary.aoa_object_observer_dispose (intptr) [0x00009] in <62a4bee72f004891b4f54433b8cbfc0f>:0 at Microsoft.Azure.ObjectAnchors.ObjectObserver.Dispose () [0x00001] in C:\Users\aft\Documents\UnityProject\GreenHouseWatcher\Library\PackageCache\com.microsoft.azure.object-anchors.runtime@e6141841516a-1636534478230\Editor\Runtime\Api\Microsoft.Azure.ObjectAnchorsBridge_Editor.cs:1391 at Microsoft.Azure.ObjectAnchors.Unity.ObjectAnchorsService.DisposeManagedResource () [0x00008] in C:\Users\aft\Documents\UnityProject\GreenHouseWatcher\Library\PackageCache\com.microsoft.azure.object-anchors.runtime@e6141841516a-1636534478230\Runtime\Core\ObjectAnchorsService.cs:559 at Microsoft.Azure.ObjectAnchors.Unity.DisposeModel.Dispose (bool) [0x0001d] in C:\Users\aft\Documents\UnityProject\GreenHouseWatcher\Library\PackageCache\com.microsoft.azure.object-anchors.runtime@e6141841516a-1636534478230\Runtime\Core\DisposeModel.cs:63 at Microsoft.Azure.ObjectAnchors.Unity.DisposeModel.Dispose () [0x00001] in C:\Users\aft\Documents\UnityProject\GreenHouseWatcher\Library\PackageCache\com.microsoft.azure.object-anchors.runtime@e6141841516a-1636534478230\Runtime\Core\DisposeModel.cs:41 at Microsoft.Azure.ObjectAnchors.Unity.GHW.ObjectTracker.OnDestroy () [0x00001] in C:\Users\aft\Documents\UnityProject\GreenHouseWatcher\Assets\MixedReality.AzureObjectAnchors\Scripts\ObjectTracker.cs:278 at (wrapper runtime-invoke) object.runtime_invoke_voidthis (object,intptr,intptr,intptr) [0x00020] in :0

Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

Crash!!!


I am really bad at formatting btw. I really hope someone can help me with this problem. Thank you in advance, Alex

DerAlexF commented 3 years ago

Opened in the wrong repo :')