Search Issue Tracker
Fixed in 4.6.1
Votes
5
Found in
4.5.4f1
Issue ID
637318
Regression
No
UnityScript files with a child class and an IEnumerator function cause an exception
Unityscripts with inheritance and IEnumerator functions can cause an exception once called:
[System.Runtime.InteropServices.SEHException] {System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at UnityEngine.Internal.$Calli.Invoke90(Int32 arg0, Int64 arg1, IntPtr method)
at UnityEngine.MonoBehaviour.StartCoroutine_Auto(IEnumerator routine)
at Test.$onClick$1.$.MoveNext()
at UnityEngine.Internal.$MethodUtility.$Invoke85(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)} System.Runtime.InteropServices.SEHException
To reproduce:
1. Download the attached scripts
2. Import them into a new unity project
3. Add the TestSub script to the main camera
4. Build & run for WP8 (development build with the current scene)
5. Press the button. Wait for a few seconds - the text appears as it normally would, but an exception is also thrown
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
- [Mobile] The Material is not visible when using the Decal Renderer Feature
- Uncaught TypeError: Cannot read properties of undefined is thrown when the tab is inactive for several minutes
- Crash on mono_array_length when building a project
- "StackOverflowException" error when changing spline curve type from "Bezier" to "Auto" in the "Element Inspector"
Add comment