Search Issue Tracker
Fixed
Votes
0
Found in
5.3.0b1
Issue ID
734404
Regression
Yes
[iOS][Graphics] ReadPixels fails for a few seconds after the game was started
Reproduction steps:
1. Open attached project "ReadPixelsError"
2. Build scene "Test1" for iOS
3. Run the game on a device or through a simulator
4. Look in the Xcode log
--- You should see this error: ReadPixels was called to read pixels from system frame buffer, while not inside drawing frame
Code that seems to be causing this issue:
IEnumerator Start () {
...
yield return new WaitForEndOfFrame();
targetTexture.ReadPixels(new Rect(0, 0, renderTexture.width, renderTexture.height), 0, 0);
targetTexture.Apply();
...
}
Notes:
--- No error in editor nor in OSX Standalone
--- On iOS error is thrown with both IL2CPP and Mono
Regression since version: 5.2.1p3 (b7d18ab613bc)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment