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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
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