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
- Changing "PreWarm" parameters on VFX Graph leads to significant performance drops and freeze
- Player display resolution changes to the native resolution of the monitor when Player becomes unresponsive
- [Quest] Game View is no longer rendered in the HMD if it's hidden in the Editor when using Meta Link
- Unity auto-generates code it can't compile when classes are renamed
- Terrain's "Grass Tint" Color picker has Alpha 0 by default
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