Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.4
2019.4.14f1
2020.1
2020.2.0b1
2021.1
Issue ID
1292924
Regression
Yes
[Editor] Using ScreenCapture.CaptureScreenshotAsTexture() in a button callback results in crash/hang
How to reproduce:
1. Open the attached '1292924.zip' project
2. Open 'SampleScene' Scene
3. Enter Play Mode
4. Press the 'Size1' button
Expected result: Exception is thrown
Actual result: Editor crashes
Reproducible with: 2019.4.15f1, 2020.1.14f1, 2020.2.0b1, 2020.2.0b12, 2021.1.0a6
Not reproducible with: 2018.4.29f1, 2020.2.0a21
Few lines from the macOS stacktrace:
#0 0x00000141af2866 in amdMtlBronzeReadPixelByPixel2(void, void, unsigned char const () [8], unsigned int, unsigned int, unsigned int, unsigned int)
#2 0x00000141af017f in BronzeGenerateMicroTileAddresses2D(BronzeCpuTexInterfaceRec const, ATIMipmapBufferHeader const, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, void ()(unsigned long long, unsigned int, unsigned int, unsigned int, void), void)
#3 0x00000141af08e3 in amdMtlBronzeTextureStdReadPixels(BronzeCpuTexInterfaceRec const, ATIMipmapBufferHeader const, ati_si_format_info const, unsigned long, unsigned int, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
#4 0x00000141af069d in amdMtlBronzeTextureStdAccessRegion(BronzeCpuTexInterfaceRec const, void ()(BronzeCpuTexInterfaceRec const, ATIMipmapBufferHeader const, ati_si_format_info const, unsigned long, unsigned int, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int), void ()(BronzeCpuTexInterfaceRec const, ATIMipmapBufferHeader const, ati_si_format_info const, unsigned long, unsigned int, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int), ATIMipmapBufferHeader const, ati_si_format_info const, unsigned long, unsigned int, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
#5 0x00000141af03d0 in amdMtlBronzeTextureStdReadRegion(BronzeCpuTexInterfaceRec const, ATIMipmapBufferHeader const, ati_si_format_info const, void const, unsigned int, unsigned long, unsigned long, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
Notes:
- Full stacktrace is attached in Edit
- Reproducible on macOS, could not reproduce on Windows
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
- "Customize handled extensions" part in the External Tools settings tab is not aligned with other properties
- Editor Diagnostics foldouts do not open when clicked on the foldout title
- [UI Builder] Visual Elements are not placed at the mouse cursor position when Absolute Position Placement is enabled
- "Width" and "Height" text is misaligned with slider ends in Screen Match Mode Parameters section of Panel Settings Asset
- Editor does not quit when Editor is not in focus and any floating window is opened
Resolution Note (2021.1.X):
this issue happens due to improper usage of the provided CaptureScreenshot API. When it is used as explained in the documents the issue doesnot appear