Search Issue Tracker

Fixed in 2018.3.X

Fixed in 2019.1.X

Votes

6

Found in

2019.1.0a6

Issue ID

1093274

Regression

Yes

TargetParameterCountException errors are thrown after importing 'Substance in Unity' asset

Scripting

-

How to reproduce:
1. Open a new Unity project
2. Open Asset Store
3. Find "Substance in Unity" asset
4. Import it into the project
5. Wait for the importing process to finish
-- Lots of TargetParameterCountException errors are thrown in the Console.

Reproducible with - 2019.1.0a6
Not reproducible with - 2017.4.14f1, 2018.2.14f1, 2018.3.0b7, 2019.1.0a5

Errors thrown:
TargetParameterCountException: Number of parameters specified does not match the expected number.
System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Delegate.DynamicInvokeImpl (System.Object[] args) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
System.Delegate.DynamicInvoke (System.Object[] args) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
Substance.Game.NativeFunctionsShared.cppInitSubstance (System.String applicationDataPath) (at <a7f324179b874bf6be743a4296b96d4e>:0)
Substance.Game.NativeFunctions.cppInitSubstance (System.String applicationDataPath) (at <a7f324179b874bf6be743a4296b96d4e>:0)
Substance.Game.NativeCallbacks.InitSubstance () (at <a7f324179b874bf6be743a4296b96d4e>:0)
Substance.Game.SubstanceMain.Initialize () (at <8dbf4539bab24c648c0b65d631ff5426>:0)
Substance.Game.SubstanceMain..cctor () (at <8dbf4539bab24c648c0b65d631ff5426>:0)
Rethrow as TypeInitializationException: The type initializer for 'Substance.Game.SubstanceMain' threw an exception.
<...>

  1. Resolution Note (fix version 2018.3):

    Fixed in 2019.2.0a7
    Backported to 2018.3.11f1, 2019.1.0b8

Comments (11)

  1. ProgOrion

    Nov 15, 2018 19:19

    I get it tooo :/

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.