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
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.
<...>
Comments (11)
-
shubhamswaraj2021
Aug 22, 2020 01:43
good one <a href="https://www.lyricsauto.com">lyricsauto</a>
-
lijinglue
Apr 25, 2019 20:53
2018.3.8f1 is impacted.
-
Runwild
Jan 24, 2019 16:38
The exact project works in 2018.2.14f1 but I get these errors in 2018.3.2f1
-
Runwild
Jan 24, 2019 16:37
The exact project works in 2018.2.14f1 but I get these errors in 2018.3.2f1
-
trothmaster
Jan 02, 2019 20:09
Also get this on 2018.3.0f2 AFTER I changed Scripting Runtime to .NET 4
-
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
-
thoxyu
Dec 20, 2018 12:39
i get it too on 2018.3.0b11
-
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
-
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? -
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unable to undo or redo color swatch changes when creating or deleting color swatches
- [Linux][Vulkan] Silent crash when tooltip appears while hovering over a label
- Material Properties are not preserved when overriding Shader using Render Objects
- Scene view flickers when both Scene and Game view are active and DX11 API is used with Gamma Color Space
- ZivaRT Player and ML Agents packages Deprecated label color differs from other Deprecated packages
Resolution Note (fix version 2018.3):
Fixed in 2019.2.0a7
Backported to 2018.3.11f1, 2019.1.0b8