Search Issue Tracker

Won't Fix

Votes

0

Found in

5.3.4f1

Issue ID

793216

Regression

No

Unity crashes in av_read_frame after regaining window focus when a Video is playing

Video

-

How to reproduce:

1. Open attached project
2. Open scene Scenes/Game.unity
3. Play the scene
- Wait about 10 seconds after the scene is played (to allow the game to settle down)
4. While the Game window is in focus, switch to a different application
- Note that there is an error in the console:
NullReferenceException: Object reference not set to an instance of an object
at MediaPlayerCtrl.Call_UpdateVideoTexture () [0x003ae] in /Users/Rigel/Downloads/case_793216-zen.baccarat/Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs:2495
at MediaPlayerCtrl.Update () [0x00145] in /Users/Rigel/Downloads/case_793216-zen.baccarat/Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs:442

(Filename: Assets/EasyMovieTexture/Scripts/MediaPlayerCtrl.cs Line: 2495)

5. Switch back to Unity
- Unity crashes immediately and the Bug Reporter is launched

- Reproduced in Version 5.4.0b17 (d34aa569a642), Version 5.3.4p4 (43a3882ae25c)
- Blocked from testing 5.2

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.