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
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
- Editor crashes after entering long Asset name and pressing "Force Quit" in "Moving file failed" pop-up
- Long strings are not truncated in the Assistant search results list
- The Editor freezes indefinitely when copy pasting large amounts of characters into New Scaler Profile Name field in the Adaptive Performance Settings
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