StackOverflowException - VRTK.ObjectInteractEventHandler in Unity Build
See original GitHub issueEnvironment
- Source of VRTK: GitHub from 06 March 2017
- Version of VRTK: GitHub 1dd32c6dea2762a0298f60a32ae52c3320df979f
- Version of Unity3D: 5.6.0b10
Steps to reproduce
- Not sure exactly - issue relates to grabbing and ObjectInteractEventHandler. It may possible be caused by recent changes to grab mechanics.
- When the error occurred I was interacting with Unity UI on a canvas, the canvas is attached to a VRTK interactive object that is grabbed.
- After reverting my version of VRTK to 87cc894c10e36faf22c15e8ab5f5cfa72ae768b1 the problem went away.
Expected behavior
- Can move around the level and grab objects, no stack overflow error occurs.
Current behavior
- After moving around the level and grabbing / interacting with objects and UI a few times, the stack overflow error occured. Seems to follow a pattern, in terms of the frequency for occurring. Once it happened the running game did not recover.
- Error from Unity log:
StackOverflowException: The requested operation caused a stack overflow. at (wrapper delegate-invoke) VRTK.ObjectInteractEventHandler:invoke_void__this___object_ObjectInteractEventArgs (object,VRTK.ObjectInteractEventArgs) at (wrapper delegate-invoke) VRTK.ObjectInteractEventHandler:invoke_void__this___object_ObjectInteractEventArgs (object,VRTK.ObjectInteractEventArgs) at (wrapper delegate-invoke) VRTK.ObjectInteractEventHandler:invoke_void__this___object_ObjectInteractEventArgs (object,VRTK.ObjectInteractEventArgs) ...
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
StackOverflowException
Hi. I have very weird problem when it comes to compiling my project. On editor and play mode everything seems fine.
Read more >Oculus Quest Haptics Feedback not working when building
I'm trying to set up the haptic feedback on oculus quest in Unity, using VRTK but it doesn't work, both with the VRTK...
Read more >StackOverflowException when using SDK_UnityController
Opened the project in Unity 2017.4.0f1 via Unity Hub with windows selected as the build target; Confirmed "Opening project in non-matching ...
Read more >How To Use VRTK & Tillia with the De-Panther Unity WebXR ...
... to make it faster to build out VR scenes with VRTK. WebXR Setup Video : https://youtu.be/nPAHZ9Rm8d4 De-Panther WebXR Unity Exporter ...
Read more >VR Development in Unity - Getting Started With VRTK v4
Learn the basics of how to get started with VRTK v4 and build a simple VR scene with Unity. * VRTK v4 Tilia...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed with https://github.com/thestonefox/VRTK/commit/2e4cb130ba35a2f220ffdc2e78103bfd704a4ab9
Thanks for troubleshooting and fix guys!