Search Issue Tracker
Fixed in 5.4.1
Votes
1
Found in
5.4.0b22
Issue ID
805483
Regression
No
Texture2D.ReadPixels crashes/hangs when reading out of rendertarget bounds
ReadPixels does not guard against trying to read out of render target bounds. What exactly happens depends largely on the graphics API used, some handle it better than others.
Original information (somewhat misleading):
Reproduction steps:
1. Open the attached project
2. Switch to DirectX 11
3. Open the available scene
4. Play scene
5. Stop playback
6. Play scene again
Result: Editor freezes, unable to stop playback. Might crash if attempting stop scene.
Note: Might take a couple of tries to reproduce. Only occurs on a NVIDIA GPU in Dx11 mode
Note: Attempting this with Dx9 throws errors, without any performance problems:
'Trying to read pixel out of bounds, reading (1759, 550, 40, 40) from (984, 615)'
Reproduced with: 5.5.0a1, 5.4.0rc3
Not reproducible: 5.3.5p4, 5.2.3p3
Regression since: 5.4
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text cursor and text highlighting is misaligned and cut off in the search bar when typing something and highlighting text in the "Add Default Preset" window
- [Android][UI Toolkit][GameActivity] Swipe‑typed word overrides a last entry with an InputField with a large amount of characters
- Texture Map Viewer shows "Loading..." text instead of indicating users that Baked Texture Maps are missing
- "Analyze Import Process" button misaligned in Import Activity window
- Text in “Baked Shadowmask” mode is difficult to read in Baked Lightmap Viewer when Editor theme is set to Light
Add comment