Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2019.4
2020.3
2020.3.17f1
2021.1
2021.2
2022.1
Issue ID
1365218
Regression
No
Crash on an out of memory error when running Play Mode on Metal MacOS
How to reproduce:
1. Open the user's attached project from "Aurelia.zip"
2. Enter Play Mode
Reproducible with: 2019.4.31f1, 2020.3.20f1, 2021.1.24f1, 2021.2.0b14, 2022.1.0a11
Notes:
1. Reproduces on macOS Metal, no repro on Windows
How to avoid the issue:
This issue is caused by calling Texture2D.ReadPixels with a rect that lies outside the valid range of pixel coordinates. As a workaround, make sure the source argument overlaps the (0, 0, width, height) rect of the currently set rendertarget before calling Texture2D.ReadPixels
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
- Crash on EditorOnlyPlayerSettings::GetDefaultTextureCompressionFormat when switching or opening a specific project with Android or IOS Platform
- [Mobile] Player silently crashes on a mobile device when using a lot of "Camera" GameObjects (40 and more) in the Scene
- Scene is modified after exiting Play Mode when Graphics Compositor is enabled in HD RP
- Shortcuts inconsistently trigger when they have a conflict with the same Command
- On Script import/reimport MonoImporter does not generate consistent results due to updating Custom packages
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a6: Added error checking for negative sizes in ReadPixels, so they will lead to an error message rather than an out-of-memory crash.