Search Issue Tracker

Fixed

Fixed in 2022.2.9f1, 2023.1.0a23

Votes

1

Found in

2021.3.11f1

2022.1.20f1

2022.2.0b12

2023.1.0a15

Issue ID

UUM-12908

Regression

Yes

Crash on ImageFilters::Blit when saving a Timeline containing a Video while the Timeline is playing

--

-

Reproduction steps:
1. Open the attached project "minTimelineCrash.zip" and load Scene "SampleScene"
2. Select the "Take Recorder" GameObject in the Hierarchy
3. Open the Timeline window (Window -> Sequencing -> Timeline)
4. Play the Timeline
5. Press Ctrl+S on the keyboard
6. If the crash does not occur, repeat step 5

Reproducible with: 2022.1.0a7, 2022.1.15f1, 2022.2.0b6, 2023.1.0a9
Not reproducible with: 2020.3.38f1, 2021.3.9f1, 2022.1.0a6

First lines of the stack trace (Windows):
0x00007ff682661680 (Unity) ImageFilters::Blit
0x00007ff68266148d (Unity) ImageFilters::Blit
0x00007ff6845e80a8 (Unity) video_YUV420_convert::Blit
0x00007ff683627134 (Unity) WindowsVideoTextureOutput::UpdateTexture
0x00007ff683626cf6 (Unity) WindowsVideoMedia::UpdateTexture

First lines of the stack trace (macOS (Intel)):
#0 0x00000113034450 in typeinfo for EditorExtension
#1 0x0000010f6b2c9e in RenderTexture::Create(RenderTexture::CreateFlags)
#2 0x0000010f5852c8 in SetCurrentRenderTarget(RenderTexture*, int, RenderTexture::SetActiveFlags, CubemapFace)
#3 0x0000010f5858f0 in ImageFilters::Blit(ShaderPassContext&, Texture*, RenderTexture*, int, SharedMaterialData const*, char const*, Shader*, int, ImageFilters::BlitFlags, CubemapFace, Vector2f const&, Vector2f const&)
#4 0x0000010f56be10 in ImageFilters::Blit(ShaderPassContext&, Texture*, RenderTexture*, int, Material*, int, ImageFilters::BlitFlags, CubemapFace, Vector2f const&, Vector2f const&)
#5 0x0000011187e0a8 in video_YUV420_convert::Blit(video_YUV420_convert::DecodeFunction, Texture2D const&, RenderTexture&, bool, VideoImageColorStandard, Vector2f const&, Vector2f const&)

  1. Resolution Note (fix version 2023.1.0a23):

    The VideoPlayer used to cache RenderTexture pointers in a way that makes it unsafe for usage when saving can be triggered during playback. Caching is now done in a safe way.

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.