Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.4.12
Issue ID
UVSB-862
Regression
Yes
NullReferenceExceptions are thrown on Bolt install or project upgrade
NullReferenceExceptions appear in the log when using Unity 2019.4.0f1 for the first time with Bolt 1.4.12. These exceptions can be cleared and Bolt works as intended.
Regression on Unity 2019.3.15f1
Steps to reproduce
- Reinstall/Install Unity 2019.4.0f1
- Open the asset store window and download Bolt (v1.4.12)
- In the toolbar navigate to Tools > Install Bolt
- Import and continue through the Bolt Setup Wizard
- Notice issue >> After installing two warnings appear in the log along with a number of errors
Alternatively, download the bolt project from [here |https://drive.google.com/open?id=1JiXkS3nAaJVl9k3sGDwYTNRe867u8EIb]and open in 2019.4.0f1.
Errors
{code:java}
FileNotFoundException: Could not load file or assembly 'UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
Ludiq.PluginContainer.InstantiateLinkedType (System.Type linkedType, Ludiq.Plugin plugin) (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Plugins/PluginContainer.cs:377)
Ludiq.PluginContainer.Initialize () (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Plugins/PluginContainer.cs:138)
Rethrow as TargetInvocationException: Failed to instantiate user-defined plugin module 'LudiqCoreConfiguration' for 'Ludiq.Core'.
Ludiq.PluginContainer.Initialize () (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Plugins/PluginContainer.cs:143)
UnityEngine.Debug:LogException(Exception)
Ludiq.PluginContainer:Initialize() (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Plugins/PluginContainer.cs:175)
Ludiq.PluginContainer:.cctor() (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Plugins/PluginContainer.cs:17)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])
{code}
{code:java}
System.NullReferenceException: Object reference not set to an instance of an object
at Ludiq.PluginManifest.get_versionMismatch () [0x00000] in C:\Users\RohitMoni\Documents\Repos\bolt\Package\Ludiq.Core\Editor\Plugins\PluginManifest.cs:48
at Ludiq.PluginContainer.Initialize () [0x00529] in C:\Users\RohitMoni\Documents\Repos\bolt\Package\Ludiq.Core\Editor\Plugins\PluginContainer.cs:196
at Ludiq.PluginContainer..cctor () [0x0000a] in C:\Users\RohitMoni\Documents\Repos\bolt\Package\Ludiq.Core\Editor\Plugins\PluginContainer.cs:17
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])
{code}
Warnings
{code:java}
Failed to load types in assembly 'Bolt.Core.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at Ludiq.TypeUtility+<GetTypesSafely>d__35.MoveNext () [0x00017] in C:\Users\RohitMoni\Documents\Repos\bolt\Package\Ludiq.Core\Runtime\Reflection\TypeUtility.cs:802
UnityEngine.Debug:LogWarning(Object)
Ludiq.<GetTypesSafely>d__35:MoveNext() (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Runtime/Reflection/TypeUtility.cs:806)
Ludiq.RuntimeCodebase:.cctor() (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Runtime/Reflection/RuntimeCodebase.cs:39)
Ludiq.Codebase:.cctor() (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Reflection/Codebase.cs:81)
Ludiq.PluginContainer:Initialize() (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Plugins/PluginContainer.cs:74)
Ludiq.PluginContainer:.cctor() (at C:/Users/RohitMoni/Documents/Repos/bolt/Package/Ludiq.Core/Editor/Plugins/PluginContainer.cs:17)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])
{code}
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
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
- Particle System Curve presets can't be scrolled and some of them can't be selected if window is too narrow to fit them all
- Mistakes in multiple Particle System Components pop-up
Resolution Note:
Bolt installs or upgrades on Unity versions after 2019.4 will no longer cause a one-time NullReferenceException