Search Issue Tracker
Fixed
Votes
1
Found in [Package]
1.5.2
Issue ID
UVSB-1462
Regression
No
Visual Scripting throws an exception during batchmode build
Reproduction steps:
1. Open attached project's "ScriptTest.zip" folder
2. Configure path in Build.bat to match your Editor version
3. In project folder, remove the "editor.log" file and "Builds" folder
3. Run Build.bat
4. After the build is completed, observe the newly created "editor.log" file
Expected result: No errors
Actual result: "NullReferenceException: Object reference not set to an instance of an object at Unity.VisualScripting <...>" error
Reproducible with: 1.5.2 (2021.1.6f1, 2021.2.0a16)
Not reproducible with: 1.6.0-pre.3, 1.6.1 (2021.1.6f1, 2021.2.0a16)
Could not test with: 2018.4.34f1, 2019.4.26f1, 2020.3.8f1 (VisualScripting package unavailable)
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
- "The same field name is serialized multiple times in the class or its parent class" error is thrown when private variables are declared in the class and its parent class using underscore
- Graphics.Blit() performs the operation only to the last display when a multi-display environment is used
- [Windows] Multiple Separation Lines are present in the Light Create Menu
- Warning "Item m_LightProbeSystem not found in window PC_RPAsset" logged when navigating to RP Asset from Probe Volume Component
- Tessellation has poor performance in URP when rendered using Metal
zauberzaubar
Dec 21, 2021 18:19
Builds work ok if not in batchmode, with or without nographics doesn't matter.
zauberzaubar
Dec 21, 2021 18:19
Seeing the same (probably) with 2021.2 and Visual Scripting 1.7.6:
NullReferenceException: Object reference not set to an instance of an object
at Unity.VisualScripting.GraphGUI+Styles.LoadStyles () [0x00000] in (...)/Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Graph/GraphGUI.cs:657
at Unity.VisualScripting.GraphGUI+Styles..cctor () [0x0008d] in (...)Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Graph/GraphGUI.cs:652
Rethrow as TypeInitializationException: The type initializer for 'Styles' threw an exception.
at Unity.VisualScripting.BoltCoreResources.ReloadTextureAssets () [0x00022] in (...)Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Plugin/BoltCoreResources.cs:49
at Unity.VisualScripting.BoltCoreResources.OnBuildCompleted () [0x00000] in (...)/Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Plugin/BoltCoreResources.cs:32
at (wrapper delegate-invoke) <Module>.invoke_void()
at ReloadAssets.OnPostprocessBuild (UnityEditor.BuildTarget target, System.String pathToBuiltProject) [0x00000] in (...)/Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Utilities/ReloadAssets.cs:16