Search Issue Tracker

Duplicate

Votes

0

Found in

2017.1.0b1

Issue ID

902662

Regression

No

Unity crashes when using a Mono 4.5 class library on .NET 4.6

Scripting

-

Reproduction steps:
1. Open project attached(Test46.zip)

Expected result: Unity launches, and gets ready for work.
Actual result: Unity crashes after launching. (On compiling?)

Note: This only happens when all 4 assets are together. Instead of crash, user receives this error:
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: 2017.1.0b1.

  1. This is a duplicate of issue #902670

    Unity crashes with user's assets when using .NET 4.6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.