Search Issue Tracker
Duplicate
Votes
1
Found in
2019.3.0a9
2019.4.10f1
2020.1
2020.2
2021.1
Issue ID
1292108
Regression
Yes
Crash on WindowsVideoMedia::CopyToRGBA when importing a black and white MP4 file
How to reproduce:
1. Create a new project
2. Import (Assets -> Import New Asset) the attached MP4 file ('RPReplay_Final1577253701.MP4')
Reproducible with: 2019.3.0a9, 2019.4.15f1, 2020.1.12f1, 2020.2.0b11, 2021.1.0a5
Not reproducible with: 2018.4.29f1, 2019.3.0a8
First lines of the stacktrace:
0x00007FF79AEAC3B0 (Unity) WindowsVideoMedia::CopyToRGBA
0x00007FF79AEB0DBE (Unity) WindowsVideoMedia::GetNextVideoFrameGeneric
0x00007FF79AEB09EA (Unity) WindowsVideoMedia::GetNextVideoFrame
0x00007FF798BBEE3C (Unity) VideoClipTranscode::SetToDefault
0x00007FF798BBD72F (Unity) VideoClipTranscode::Import
0x00007FF799039415 (Unity) VideoClipImporter::GenerateAssetData
Notes:
Does not crash when updating a 2019.3.0a8 project that has the MP4 file imported to 2019.3.0a9 but crashes when updating to 2019.3.0a10
-
Resolution Note (2020.2.X):
The movie causing the problem has rotation metadata, which is what was causing the crash. The fact that the content is black and white was not the issue. This has already been addressed elsewhere and is in the process of being backported to 2020.2, 2020.1 and 2019.4.
Note that applying rotation metadata is not yet supported by Unity, but this is easy to work around with a shader or by simply rotating the object on which the movie is applied.
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
This is a duplicate of issue #1268145