Search Issue Tracker
Won't Fix
Won't Fix in 2021.3.X
Votes
1
Found in
2021.3.27f1
Issue ID
UUM-40848
Regression
No
[Burst] [Collections] NullReferenceExceptions thrown when using NativeText.Dispose(JobHandle)
Reproduction steps:
1. Open the “NativeTextDispose“ project
2. Open the “SampleScene“ scene
3. Enter Play Mode
4. Observe the Console
Expected result: No errors
Actual result: 2 NullReferenceExceptions
Reproduced in: 1.2.4 (2021.3.0f1, 2021.3.27f1, 2022.2.0a15)
Not reproduced in: 1.2.4 (2022.2.0a16, 2022.3.4f1, 2023.1.1f1, 2023.2.0a21)
Reproduced using: Linux (by the reporter), macOS 13.4 (Intel)
First few lines of error #1:
System.NullReferenceException: Object reference not set to an instance of an object
This Exception was thrown from a job compiled with Burst, which has limited exception support.
#3 Unity.Collections.LowLevel.Unsafe.UnsafeText.set_Length(Unity.Collections.LowLevel.Unsafe.UnsafeText* this, int value) -> void_fa987e683e737f22e74ebd39ccd6c6ad
First few lines of error #2:
NullReferenceException: Object reference not set to an instance of an object
Unity.Collections.Unicode.Utf8ToUcs (Unity.Collections.Unicode+Rune& rune, System.Byte* buffer, System.Int32& index, System.Int32 capacity) (at Library/PackageCache/com.unity.collections@1.2.4/Unity.Collections/Unicode.cs:221)
Notes:
1. Not reproduced with NativeArray and NativeList
2. Could not test in Player (application not responding)
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
- [Usability] “Sorry, no templates match the search “”” message is not informative when creating a new Project in the Hub with Custom Template filtering enabled but no Custom Templates created
- AI Assistant upgrade banner's `Open package Manager` link doesn't work
- Scene flickers with a green tint when using Screen Space Ambient Occlusion and Contact Shadows with raytracing
- Scripts with null Components on GameObjects are not removed when calling GameObjectUtility.RemoveMonoBehavioursWithMissingScript
- Selection highlight is drawn in an Animation Window when clicking in another Animation Window after highlighting items in the first one
Resolution Note:
It doesn't occur in LTS Release 2022.3.17f1.
Repro also shows incorrect usage:
Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old - this is not allowed and likely a leak
Resolution Note (2021.3.X):
It doesn't occur in LTS Release 2022.3.17f1.
Repro also shows incorrect usage:
Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old - this is not allowed and likely a leak