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
- Modifying UI Prefab child's Height only confirms the first 1 or 2 digits when the Scene is newly opened or the Prefab is newly created
- ProfilingSampler.Get() returns null and makes the Player only render black when building a Release Build
- Search text field visual controls for the Path binding in an Input Actions Asset is misaligned
- Display issues in VideoPlayer when using Screen.SetResolution on certain Google Pixel devices
- Crash on Texture::TextureIDMapInsert when opening a specific project
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