Search Issue Tracker
Fixed in 2022.2.X
Duplicate in 2020.3.X
Votes
1
Found in
2019.4
2020.3
2021.2
2021.2.7f1
2022.1
2022.2
Issue ID
1410831
Regression
No
Crash on ScreenCapture::CaptureScreenshotIntoRend when taking screenshot using CaptureScreenshotIntoRenderTexture in a Coroutine
How to reproduce:
1. Open the attached project from "1410831screen.zip"
2. Open Scene "SampleScene"
3. Enter Play Mode and press "T" on the keyboard
Reproducible with: 2019.4.36f1, 2020.3.31f1, 2021.2.16f1, 2022.1.0b12, 2022.2.0a8
First lines of stack traces:
0x00007ff79aba4ec2 (Unity) ScreenCapture::CaptureScreenshotIntoRenderTexture
0x00007ff7998d5265 (Unity) ScreenCapture_CUSTOM_CaptureScreenshotIntoRenderTexture
0x000001957bff250a (Mono JIT Code) (wrapper managed-to-native) UnityEngine.ScreenCapture:CaptureScreenshotIntoRenderTexture (UnityEngine.RenderTexture)
0x000001957bfefbc3 (Mono JIT Code) [TakeScreenShot.cs:55] TakeScreenShot/<recordCapture>d__6:MoveNext ()
0x000001957bfef8b0 (Mono JIT Code) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
0x000001957bfef9df (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr (object,intptr,intptr,intptr)
0x00007FF7F246EBA7 (Unity) RenderTexture::GrabPixels
0x00007FF7F03613D2 (Unity) ScreenCapture::CaptureScreenshotIntoRenderTexture
0x00007FF7F0738571 (Unity) ScreenCapture_CUSTOM_CaptureScreenshotIntoRenderTexture
0x0000017556E058BE (Mono JIT Code) (wrapper managed-to-native) UnityEngine.ScreenCapture:CaptureScreenshotIntoRenderTexture (UnityEngine.RenderTexture)
0x0000017556E04B9B (Mono JIT Code) [C:\Users\siaur\Downloads\My project\Assets\TakeScreenShot.cs:54] TakeScreenShot/<recordCapture>d__6:MoveNext ()
0x0000017556E04591 (Mono JIT Code) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a10