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
- [Search] Query Builder - uneditable NaN in Transform vectors
- Transform.rotation property is as a Vector4 Quaternion instead of a Vector3 field when using InspectorElement.FillDefaultInspector
- [Search] Query Builder - "Input String was not in a correct format" error when changing query options
- MacOS Xcode project build fails when a package has PrivacyManifest
- [IL2CPP] Crash when closing the Player while an exception is thrown during exception handling
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