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

Graphics Device Features

-

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)

  1. Resolution Note (fix version 2022.2):

    Fixed in 2022.2.0a10

Comments (1)

  1. abbasjahangir786

    Mar 15, 2022 20:56

    techaisa.com

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.