Search Issue Tracker
Won't Fix
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
- StackOverflowException occurs and tests fail to load when the Test Runner window is opened while System.Windows.Forms.dll and System.Deployment.dll are present in the project
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
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).