Search Issue Tracker
Won't Fix
Votes
4
Found in
2023.2.0a7
2023.3.0a3
Issue ID
UUM-29676
Regression
No
[XR][Hololens 2] stack overflow crash calling GameAssembly.dll!InputDeviceBuilder_AddChildren
I'm hitting a stack overflow in the XR automation URP end to end test project a few seconds after launching it on the Hololens 2.
> GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 309 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
GameAssembly.dll!GC_clear_stack_inner(void * arg, char * limit) Line 319 C
[Inline Frame] GameAssembly.dll!GC_clear_stack_inner(void *) Line 315 C
GameAssembly.dll!GC_clear_stack(void * arg) Line 368 C
[Inline Frame] GameAssembly.dll!GC_malloc_kind_global(unsigned __int64) Line 327 C
GameAssembly.dll!GC_malloc_kind(unsigned __int64 lb, int k) Line 333 C
[Inline Frame] GameAssembly.dll!il2cpp::vm::Object::AllocatePtrFree(unsigned __int64) Line 71 C++
GameAssembly.dll!il2cpp::vm::Array::NewSpecific(Il2CppClass * klass, unsigned __int64 n) Line 128 C++
GameAssembly.dll!Array_Resize_TisWordWrapState_tD71131CF008362DB9562FB9794AE9D9225D8F123_mC2C5CCD04965125A2DD09E3165052FA4E1A4F0AD_gshared(WordWrapStateU5BU5D_t4AA4AAC14B38359416C63A57A1ADDD9C2004EAC8 * * ___0_array, int ___1_newSize, const MethodInfo * method) Line 30570 C++
[Inline Frame] GameAssembly.dll!Array_Resize_TisControlBitRangeNode_t21274A438B0E0877F1495EC579EB1DAF81B1A6B0_m6D0521F0039770147C812C11E641EE9378CCACEB(ControlBitRangeNodeU5BU5D_t912A404149DE6D350D1735A026182C409C510F27 * *) Line 5062 C++
GameAssembly.dll!InputDeviceBuilder_AddChildren_m68BCACD6044476C1B97159E393AB5CE4353CD16A(InputDeviceBuilder_t7F4266EBB8FB0AC0DAE225F7FA1532B9AA9174BE * __this, ControlBitRangeNode_t21274A438B0E0877F1495EC579EB1DAF81B1A6B0 * ___0_parent, ControlBitRangeNode_t21274A438B0E0877F1495EC579EB1DAF81B1A6B0 ___1_left, ControlBitRangeNode_t21274A438B0E0877F1495EC579EB1DAF81B1A6B0 ___2_right, const MethodInfo * method) Line 11451 C++
GameAssembly.dll!InputDeviceBuilder_InsertControlBitRangeNode_mE370C7509CB5388630397B3AC30ED4440B621F66(InputDeviceBuilder_t7F4266EBB8FB0AC0DAE225F7FA1532B9AA9174BE * __this, ControlBitRangeNode_t21274A438B0E0877F1495EC579EB1DAF81B1A6B0 * ___0_parent, InputControl_t74F06B623518F992BF8E38656A5E0857169E3E2E * ___1_control, int * ___2_controlIndiciesNextFreeIndex, unsigned short ___3_startOffset, const MethodInfo * method) Line 10710 C++
GameAssembly.dll!InputDeviceBuilder_InsertControlBitRangeNode_mE370C7509CB5388630397B3AC30ED4440B621F66(InputDeviceBuilder_t7F4266EBB8FB0AC0DAE225F7FA1532B9AA9174BE * __this, ControlBitRangeNode_t21274A438B0E0877F1495EC579EB1DAF81B1A6B0 * ___0_parent, InputControl_t74F06B623518F992BF8E38656A5E0857169E3E2E * ___1_control, int * ___2_controlIndiciesNextFreeIndex, unsigned short ___3_startOffset, const MethodInfo * method) Line 10874 C++
...then this last line just repeats until it overflows.
This project works fine on other platforms however. I also don't think I have any input components or anything, its a pretty bare bones project. I have a project zip and dump file but they are too big for attachments I guess so let me know if you need them. You can get the project at [https://github.cds.internal.unity3d.com/unity/xr.xrautomatedtests] its the \GraphicsTests\EndToendTests\URPIntegrationTests\ but it needs some set up for WMR out of the repo.
Comments (4)
-
hatamoto77
Jun 27, 2023 15:23
Same issue with Unity 2012.3.27f1, MRTK 2.8.3 which imports InputSystem 1.6.1 and does not allow downgrade to 1.5.1 where this issue was once fixed according to some posts.
-
EricVoll
Apr 18, 2023 06:02
What fixed this for me was to add the package `com.unity.inputsystem` version 1.5.1
-
EricVoll
Apr 18, 2023 05:10
Same issue, but with Unity 2021.3.20f1, MRTK 2.8...
-
unity_46DB31172182D30ECE4A
Apr 10, 2023 00:57
I'm running into the same issue. Any solutions on this?
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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Resolution Note:
We are not able to reproduce this issue.