Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 2017.1.X
Votes
0
Found in
2017.1.0p1
Issue ID
935733
Regression
No
"Rewired" asset becomes corrupted when Unity enters Play mode second time
To reproduce:
1. Download attached project "CrashTest.zip" and open in Unity
2. Open "Test" scene
3. Enter to Play mode
Note: Observe that no error occurs on Console and everything is fine
4. Exit from Play mode
5. Again enter to Play mode
Expected Result: Everything still works fine
Actual Result: Console will spam a lot of errors and "Rewired" asset becomes corrupted
Notes:
- This issue appears only on .NET 4.6
- Errors that Console will spam:
Assertion failed: Assertion failed on expression: 'exception != SCRIPTING_NULL'
Couldn't extract exception string from exception (another exception of class 'ArgumentException' was thrown while processing the stack trace)
TypeLoadException: Error Loading class
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs:89)
UnityEditor.EditorAssemblies.ProcessEditorInitializeOnLoad (System.Type type) (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:136)
UnityEditor.EditorAssemblies.ProcessInitializeOnLoadAttributes () (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:162)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
Unloading broken assembly Library/ScriptAssemblies/Assembly-CSharp-Editor.dll, this assembly can cause crashes in the runtime
TypeLoadException: Error Loading class
System.RuntimeType.GetMethodsByName (System.String name, System.Reflection.BindingFlags bindingAttr, System.Boolean ignoreCase, System.RuntimeType reflectedType) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/ReferenceSources/RuntimeType.cs:481)
System.RuntimeType.GetMethodCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.CallingConventions callConv, System.Type[] types, System.Boolean allowPrefixLookup) (at /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/rttype.cs:2825)
System.RuntimeType.GetMethods (System.Reflection.BindingFlags bindingAttr) (at /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/rttype.cs:3078)
UnityEditor.Build.BuildPipelineInterfaces.InitializeBuildCallbacks (UnityEditor.Build.BuildPipelineInterfaces+BuildCallbacks findFlags) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:182)
Reproduced on Unity 5.6.3f1, 2017.1.0p2, 2017.2.0b5 and 2017.3.0a2
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
- [General] Terminate Unity Player is never executed when an infinite loop that increments an integer is running in IL2CPP without sleep
- Dropdown list context menu opens in the wrong place when another section is focused in VFX Graph
- White artifacts are displayed in the Editor when switching the Build Profile to Android while using Intel Iris Xe Graphics GPU
- [sw-unity-6-1] UI Toolkit Debugger's "Pick Element" functionality does not work when hovering on any Editor panel except the Game view
- [Silicon] Crash with multiple StackTraces when entering Play Mode in a project with corrupted FBX files
BaiUmkA
Sep 20, 2017 18:01
Have same problem, can some-one help?