Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
Votes
1
Found in
2021.3.9f1
2022.1.16f1
2022.2.0b7
2023.1.0a10
Issue ID
UUM-14310
Regression
No
Player crashes when disposing of a NativeArray
Reproduction steps:
1. Open the attached project “IN-15295.zip”
2. Click Edit > Build And Run
3. Press “F” to engage in dialogue
4. Press “Space” repeatedly until the crash
Expected result: Build does not crash
Actual result: Build crashes
Reproducible with: 2021.3.9f1, 2022.1.16f1, 2022.2.0b7, 2023.1.0a10
Couldn't test with: 2020.3.38f1 (couldn’t downgrade because the scripts don’t support the older c# language version)
Reproducible on: Windows 10 Pro 21H2, MacOS 12.2.1 (Intel), macOS Monterey 12.5 (M1 Max), MacOS 12.5
Note: Lines 176-177 in “Assets/Scripts/UI/Dialog/DialogBubbleMeshSimulation.cs” causes the crash
Comments (1)
-
Mahdi-Jeddi
Sep 09, 2022 12:04
As working more on this issue, I think the condition in the StructureJob fails and makes the job system to write over the bounds of positions to velocities and corrupt it somehow. That's why it crashes when trying to dispose the velocities nativearray.
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
- Performance Markers Search window shows an empty entry in the list
- Enabling Deep Profiling in Performance Markers Search window breaks Inspector panel buttons when navigating through the marker items
- Dragging selector from selector row background shows preview but does not apply class in UI Builder
- An "InvalidOperationException" error is thrown when TryRemoveItem is used with rebuildTree set to false
- Build fails with IL2CPP error when building on Android platform in a specific project
Resolution Note:
This would report safety error in editor. Disposing copy of NativeArray will crash when job debugger is not present (i.e. in the player build).
Resolution Note (2023.1.X):
This would report safety error in editor. Disposing copy of NativeArray will crash when job debugger is not present (i.e. in the player build).