Search Issue Tracker
Won't Fix
Votes
1
Found in [Package]
2.0.3
Issue ID
1150316
Regression
Yes
[WindowsMR][SpatialAnchor] - 2019.3 - Trying to retrive the Native Spatial Anchor Ptr is causing a crash
Reproduced with: 2020.1.0a2, 2018.4.8f1
Notes:
Found on trunk
Might be related to the UWP memory leak where we changed the call on the spatial stage being called only a few vs every frame
Call stack:
========== OUTPUTTING STACK TRACE ==================
0x00007FF674F5782D (Unity) WorldAnchor::GetSpatialAnchor_Internal
0x00007FF674F7BF59 (Unity) WorldAnchor_CUSTOM_GetNativeSpatialAnchorPtr
0x0000019704A9D5B3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.XR.WSA.WorldAnchor:GetNativeSpatialAnchorPtr (UnityEngine.XR.WSA.WorldAnchor)
0x0000019704A9D0DB (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Assets\Tests\WorldAnchorTest.cs:88] WorldAnchorTest/<GetAnchorSpatialPtr>d__12:MoveNext ()
0x000001976D569247 (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Attributes\TestEnumerator.cs:31] UnityEngine.TestTools.TestEnumerator/<Execute>d__5:MoveNext ()
0x000001976D5689D2 (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Commands\EnumerableTestMethodCommand.cs:58] UnityEngine.TestTools.EnumerableTestMethodCommand/<ExecuteEnumerableAndRecordExceptions>d__3:MoveNext ()
0x000001976D55E099 (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Commands\EnumerableTestMethodCommand.cs:38] UnityEngine.TestTools.EnumerableTestMethodCommand/<ExecuteEnumerable>d__2:MoveNext ()
0x000001976D55D049 (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Runner\UnityLogCheckDelegatingCommand.cs:67] UnityEngine.TestRunner.NUnitExtensions.Runner.UnityLogCheckDelegatingCommand/<ExecuteEnumerable>d__2:MoveNext ()
0x000001976D54E70C (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Commands\BeforeAfterTestCommandBase.cs:104] UnityEngine.TestTools.BeforeAfterTestCommandBase`1/<ExecuteEnumerable>d__9<T_REF>:MoveNext ()
0x000001976D54E70C (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Commands\BeforeAfterTestCommandBase.cs:104] UnityEngine.TestTools.BeforeAfterTestCommandBase`1/<ExecuteEnumerable>d__9<T_REF>:MoveNext ()
0x000001976D54E70C (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Commands\BeforeAfterTestCommandBase.cs:104] UnityEngine.TestTools.BeforeAfterTestCommandBase`1/<ExecuteEnumerable>d__9<T_REF>:MoveNext ()
0x000001976D54E70C (Mono JIT Code) [C:\unity\xrautomatedtests\WindowsMixedRealityPlatform\Library\PackageCache\com.unity.test-framework@1.0.11\UnityEngine.TestRunner\NUnitExtensions\Commands\BeforeAfterTestCommandBase.cs:104] UnityEngine.TestTools.BeforeAfterTestCommandBase`1/<ExecuteEnumerable>d__9<T_REF>:MoveNext ()
0x000001976D154644 (Mono JIT Code) [C:\buildslave\unity\build\Runtime\Export\Scripting\Coroutines.cs:17] UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
0x000001976D154830 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr (object,intptr,intptr,intptr)
0x00007FFAFC52C11B (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFAFC4B2282 (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FFAFC4BB27F (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\metadata\object.c:2968] mono_runtime_invoke
0x00007FF67720FF02 (Unity) scripting_method_invoke
0x00007FF677209CD1 (Unity) ScriptingInvocation::Invoke
0x00007FF6771D562E (Unity) Coroutine::Run
0x00007FF6771C729C (Unity) Coroutine::ContinueCoroutine
0x00007FF6768DFB88 (Unity) DelayedCallManager::Update
0x00007FF676CEB78F (Unity) `InitPlayerLoopCallbacks'::`2'::UpdateScriptRunDelayedDynamicFrameRateRegistrator::Forward
0x00007FF676CD48B8 (Unity) ExecutePlayerLoop
0x00007FF676CD4999 (Unity) ExecutePlayerLoop
0x00007FF676CD980B (Unity) PlayerLoop
0x00007FF6752447BB (Unity) PlayerLoopController::UpdateScene
0x00007FF67524232C (Unity) Application::TickTimer
0x00007FF675B5851D (Unity) MainMessageLoop
0x00007FF675B5FBDC (Unity) WinMain
0x00007FF6787C8372 (Unity) __scrt_common_main_seh
0x00007FFB23527974 (KERNEL32) BaseThreadInitThunk
0x00007FFB25DFA271 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Hover style remains on elements after the cursor is moved away when the 'transition-delay' property is used
- [Android] [UIToolkit] FPS drops/increase in time consumption in the UI Toolkit rendering when adding "style.backgroundColor" and/or "style.backgroundImage" to the VisualElement
- onDisable not always called for SearchProvider
- Build failure errors are cleared in console before you can read them
- Sprite Library Editor contains corrupted and low resolution icons
Resolution Note:
This was an error related to how our tests scripts were initialization the Holographic Emulation Window. Setting the Window's Emulation Mode after entering play-mode is not supported.