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)
- 
        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. 
- 
        ProgOrion Nov 15, 2018 19:19 I get it tooo :/ 
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
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- Addressables Profiles and Analyze windows no minimum window size
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Resolution Note (fix version 2018.3):
Fixed in 2019.2.0a7
Backported to 2018.3.11f1, 2019.1.0b8