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)
Comments (2)
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
- Mouse input is registered incorrectly in Custom RP when downscaling Render Target and rendering Overlay UI before final upscale
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
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