Search Issue Tracker
Fixed
Fixed in 1.8.12
Votes
2
Found in [Package]
1.8.10
Issue ID
BUR-2563
Regression
Yes
Error "NullReferenceException: Object reference not set to an instance of an object" is thrown when building the project with Android Platform selected and "Enable Armv9 Features for Arm64" is enabled
How to reproduce:
1. Open the "IN_60882" project
2. In the Project Settings make sure "Enable Armv9 Features for Arm64" is enabled
3. In the Build Settings select the Android Platform
4. Press Build
Expected result: Build successful
Actual result: Build fails with an error "NullReferenceException: Object reference not set to an instance of an object"
Reproducible with: 1.8.10 (2022.3.13f1, 2022.3.14f1, 2023.1.20f1, 2023.2.1f1)
Not reproducible with: 1.8.9 (2022.3.13f1, 2022.3.14f1, 2023.1.20f1, 2023.2.1f1)
Couldn’t test with: 2021.3.32f1 (no “Enable Armv9 Features for Arm64” option), 2023.3.0a15 (due to another build error (JDK not found, couldn’t fix this error in External Tools by setting JDK))
Reproducible on: Windows 10 Pro
Not reproducible with: No other environment tested
Notes:
- Reproducible with Mono and IL2CPP Scripting Backends
- Not reproducible when Windows Standalone Platform is selected (others not tested)
First lines of error:
NullReferenceException: Object reference not set to an instance of an object
Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoSetup (UnityEditor.Build.Reporting.BuildReport report) (at ./Library/PackageCache/com.unity.burst@1.8.10/Editor/BurstAotCompiler.cs:256)
Unity.Burst.Editor.BurstAOTCompilerPostprocessor.PrepareOnMainThread (UnityEditor.Build.IGenerateNativePluginsForAssemblies+PrepareArgs args) (at ./Library/PackageCache/com.unity.burst@1.8.10/Editor/BurstAotCompiler.cs:137)
UnityEditor.Modules.BeeBuildPostprocessor.GetGenerateNativePluginsForAssembliesSettings (UnityEditor.Modules.BuildPostProcessArgs args) (at <7aeb7d7a52d04045b8a1c734633fa931>:0)
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
- Polygons are created on the opposite side of the Sprite when the Sprite boundaries are above the edge of the Texture
- Render Graph Viewer Resource list becomes shrunk after using a filter that yields no results
- [Android] [Vulkan] "VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT" not added on some Android devices in "com.unity3d.player.UnityPlayerActivity/2D Colour Attachement"
- ResolveUsePasses now extracts passes from all subshaders including fallbacks, in contrast to documented behaviour
- [UIBuilder] Changes aren't detected on types implementing IList
undeadx
Dec 19, 2023 17:38
same issue
p0w1nd
Nov 29, 2023 05:51
I have this same error when building on macOS.
dinindu_d
Nov 24, 2023 06:22
Reproducible with: 1.8.11 (2022.3.14f1)