Search Issue Tracker

Fixed in 2018.3

Fixed in 2019.1

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. Response avatar

    Resolution Note (fix version 2018.3):

    Fixed in 2019.2.0a7
    Backported to 2018.3.11f1, 2019.1.0b8

Comments (11)

  1. 36c65e3934745df83910152c6a077e4a?d=mm

    shubhamswaraj2021

    Aug 22, 2020 01:43

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  2. C5729fd7bb362cc059a87fab3c2018dd?d=mm

    lijinglue

    Apr 25, 2019 20:53

    2018.3.8f1 is impacted.

  3. Eab972f20c2d5b28430be5e10a7f35ad?d=mm

    Runwild

    Jan 24, 2019 16:38

    The exact project works in 2018.2.14f1 but I get these errors in 2018.3.2f1

  4. Eab972f20c2d5b28430be5e10a7f35ad?d=mm

    Runwild

    Jan 24, 2019 16:37

    The exact project works in 2018.2.14f1 but I get these errors in 2018.3.2f1

  5. 3aeb0f51a6a4913af6368e3ca1324c63?d=mm

    trothmaster

    Jan 02, 2019 20:09

    Also get this on 2018.3.0f2 AFTER I changed Scripting Runtime to .NET 4

  6. 7db190f2d73d64829eab49874b409553?d=mm

    Jrdavis

    Dec 21, 2018 20:58

    I started seeing this in 2018.2.15f1, but ONLY when I switched my Scripting Runtime Version to .NET 4.x Equivalent. Did not see it when we were using .NET 3.5

  7. 95a98bffae11cea0162c502d0e49b6e6?d=mm

    thoxyu

    Dec 20, 2018 12:39

    i get it too on 2018.3.0b11

  8. 70ab645d208dadb922145fe7cafc3527?d=mm

    teknocub

    Dec 15, 2018 03:53

    I just upgraded to 2018.3 and exactly this started to happen :(

    I have some substance shaders working in 2018.2

  9. Eb27f6c8bcd5f940cb7e23f0fa6ebadf?d=mm

    StarCoop

    Nov 23, 2018 06:57

    Happens in 2018.2.17f1, too!
    Had to downgrade to 2018.2.13f1.
    Major issue, because substance painter is one of the most important assets out there?

  10. 0b4ab71c8c2dbbde7bd86b15bce777f3?d=mm

    radiantboy

    Nov 20, 2018 04:00

    I also get this on 2018.2.16f1 :-( please fix or at least point to file that causes it, this also stops f to focus working making unity unusable.

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.