Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2019.4
2019.4.23f1
2020.3
2021.1
2021.2
Issue ID
1331434
Regression
No
[MacOS] Editor crashes on _platform_strlen when running tests that use Application.temporaryCachePath with sudo
How to reproduce:
1. Extract the attached project ('BugReport.zip')
2. Open the Terminal and run the following command: sudo "Unity path" -projectPath "Project path"
3. Open the Test Runner window (Window -> General -> Test Runner)
4. While in EditMode press 'Run All'
Reproducible with: 2019.4.25f1, 2020.3.6f1, 2021.1.5f1, 2021.2.0a15
Could not test with: 2018.4.35f1 (doesn't crash but doesn't generate the results file)
First lines of the stack trace:
0x007fff2080f552 in _platform_strlen
0x0000010786a7bf in systeminfo::GetTemporaryCachePath()
0x000001041eb10f in GetTemporaryCachePathApplicationSpecific()
0x0000010508d656 in Application_Get_Custom_PropTemporaryCachePath()
Notes:
- issue doesn't reproduce when running the command without sudo (using 2019.4, 2020.3, 2021.1), however, 2021.2.0a15 crashes with or without sudo
- 2021.2.0a15 crashes with a different stack trace, so it might be a different issue
- The crash doesn't occur when using any Unity version on Windows
- Not reproducible using Application.persistentDataPath 2019.4, 2020.3, 2021.1 but reproducible 2021.2.0a15
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a19
Resolution Note (fix version 2020.3):
Fixed in 2020.3.16f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.29f1