Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2020.3.X, 2021.2.X

Planned for 2019.4.X

Votes

0

Found in

2019.4

2020.3

2021.1

2021.2

2022.1

2022.1.0a10

Issue ID

1368301

Regression

No

Crash on MediaEncoder_CUSTOM_Internal_AddFrame_Injected when pushing a frame into MediaEncoder that has been disposed

Video

-

How to reproduce:
1. Open the attached project from "MediaEncoderCrash.zip"
2. Open Scene "SampleScene"
3. Enter Play Mode and press the spacebar on your keyboard
4. Observe crash

Reproducible with: 2019.4.31f1, 2020.3.20f1, 2021.1.24f1, 2021.2.0b14, 2022.1.0a11

First lines of the stack trace:
0x00007FF6B3A866CF (Unity) MediaEncoder_CUSTOM_Internal_AddFrame_Injected
0x0000019E235EA170 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.Media.MediaEncoder:Internal_AddFrame_Injected (intptr,UnityEngine.Texture2D,UnityEditor.Media.MediaTime&)
0x0000019E235EA013 (Mono JIT Code) UnityEditor.Media.MediaEncoder:Internal_AddFrame (intptr,UnityEngine.Texture2D,UnityEditor.Media.MediaTime)
0x0000019E235E9EDB (Mono JIT Code) UnityEditor.Media.MediaEncoder:AddFrame (UnityEngine.Texture2D)
0x0000019E2278CE03 (Mono JIT Code) [C:\Users\X\Downloads\1368301_MediaEncoderCrash\Assets\MediaEncoderCrash.cs:22] MediaEncoderCrash:Update ()

  1. Response avatar

    Resolution Note (fix version 2022.1):

    2022.1.0a16: Added console error in which Editor checks if MediaEncoder is disposed

  2. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in 2021.2.6f1
    Added Console log "ObjectDisposedException: Cannot access a disposed object."

  3. Response avatar

    Resolution Note (fix version 2020.3):

    Fixed in 2020.3.27f1

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.