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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment