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
- “ValidateSchema Error2” error is thrown in the Player when using IL2CPP Scripting Backend
- Symbolic links disappear when a .xcframework file is added through the Unity Editor
- Errors regarding importing occur upon opening a project when the "Library" folder is deleted
- MeshRenderer.sortingLayerID cannot be changed when change is being done in a built Player
- Warnings related to App Icon are being thrown when building project to VisionOS Platform
Add comment