Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Video Player crash when playing video on Windows 7 machines

Discussion in 'Audio & Video' started by mahdi_jeddi, Jul 24, 2018.

  1. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246
    Our games crash on Windows 7 64bit machines when a video starts playing. The videos are all standard H.264 1080p files that correctly play on Windows 10 and consoles. We're building the video files into asset bundles and load them from StreamingAssets folder.
    After trying Transcode option, one of the videos plays properly and the other one really slowly. And it crashes anyway if stop the playback.

    Is there a known issue or resolution limitation on Windows 7?

    I attached the crash dump files to this post.
     

    Attached Files:

  2. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246
    Update: I tried lowering the resolution to 720p and seems to have fixed the immediate crashes. But the build still crashes after a few videos. Looks like a memory leak in Unity's video player to me.
     
  3. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246
    Another Update: There is an error message when the video is being played:

    WindowsVideoMedia error 0xc00d36b2 while reading archive:/CAB-2d16d79b9859a6cd28f19559f209a262/CAB-2d16d79b9859a6cd28f19559f209a262.resource
    Context: IMFSourceReader::SetStreamSelection
    Error details: The request is invalid in the current state.
    Track types:
    Audio Track, type:
    (Filename: C:\buildslave\unity\build\Modules/Video/Public/Media/WindowsMedia/WindowsVideoMedia.cpp Line: 2456)
    WindowsVideoMedia error 0xc00d36b3 while reading archive:/CAB-2d16d79b9859a6cd28f19559f209a262/CAB-2d16d79b9859a6cd28f19559f209a262.resource
    Context: IMFSourceReader::WaitForSample
    Error details: The stream number provided was invalid.
    Track types:
    (Filename: C:\buildslave\unity\build\Modules/Video/Public/Media/WindowsMedia/WindowsVideoMedia.cpp Line: 2456)
     

    Attached Files:

  4. David_Fenner

    David_Fenner

    Joined:
    Dec 14, 2015
    Posts:
    16
    Hi!! I'm having the same issue. Have you found a solution?
     
  5. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246
  6. zach_unity281

    zach_unity281

    Joined:
    Jun 22, 2019
    Posts:
    1
    Seeing this too in 2018.3.14! Any updates?
     
  7. LightArc

    LightArc

    Joined:
    Nov 11, 2013
    Posts:
    3
    On 2019.1.8f1 we are hitting Windows 7 only crash. Its a 4 minute 1080p video, with transcoding flagged set. Has been on auto and now forced to H264. User logs show following stack but looks like it might be wrong thread.

    ========== OUTPUTTING STACK TRACE ==================
    0x000007FED53CACDE (UnityPlayer) PAL_Timer_WaitForAtLeast
    0x000007FED473E04E (UnityPlayer) UnityMain
    0x000007FED4D02AB4 (UnityPlayer) UnityMain
    0x000007FED4D04111 (UnityPlayer) UnityMain
    0x000007FED4D04248 (UnityPlayer) UnityMain
    0x000007FED4CF6BB3 (UnityPlayer) UnityMain
    0x000007FED490D999 (UnityPlayer) UnityMain
    0x000007FED490E9FC (UnityPlayer) UnityMain
    0x000007FED490DAB7 (UnityPlayer) UnityMain
    0x000007FED490DE30 (UnityPlayer) UnityMain
    0x000007FED490EF33 (UnityPlayer) UnityMain
    0x000007FED49B28C9 (UnityPlayer) UnityMain
    0x0000000076D759CD (kernel32) BaseThreadInitThunk
    0x0000000076EAA561 (ntdll) RtlUserThreadStart
    ========== END OF STACKTRACE ===========

    I tried H265 and user reported it just hangs on black screen rather than crashing. Any ideas?
     
  8. LightArc

    LightArc

    Joined:
    Nov 11, 2013
    Posts:
    3
    Note. Some shorter vids we have seem to work ok with same settings.
     
  9. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246
    Our issue seemed like a memory leak because we would get a crash after player a few videos. Shorter videos may not crash immediately, but the subsequent playbacks may finally crash the game. As I said we could wait for a solution from Unity, so we decided to have an alternative MJPG version of all of our videos and show them when we detect a Win7 machine. It's not an elegant solution but can't see any other one.
     
  10. LightArc

    LightArc

    Joined:
    Nov 11, 2013
    Posts:
    3
    Thanks for getting back to me. I've reported to Unity also, but might copy your approach. At the moment I've just disabled / skipped the vids for win 7 so at least they can play the rest of the game.
     
  11. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246
    Thanks for reporting the bug. I don't remember if I reported a bug back then or not, but it never hurts to have multiple bug reports for the same issue.
     
  12. CarlT17

    CarlT17

    Joined:
    May 2, 2017
    Posts:
    1
    Hi all!

    We're also experiencing this issue in 2018.3.7f1.

    WindowsVideoMedia error 0xc00dd36b2 while reading .../Project_Data/sharedassets2.resource
    Context: IMFSourceReader: SetStreamSelection
    Error details: The request is invalid in the current state.
    Track types:
    Video track [1920 x 1080], type: H264

    WindowsVideoMedia error 0xc00dd36b3 while reading .../Project_Data/sharedassets2.resource
    Context: IMFSourceReader: WaitForSample
    Error details: The stream number provided was invalid.
    Track types:


    In our project, the videos break immediately. The two videos are both 1920x1080 encoded as H.264 and are 01:07 and 02:17 in duration. The problem is only seen on Windows 7. They appear to work more often at lower resolutions.

    @LightArc, have you heard anything from Unity regarding your report?
     
  13. drHogan

    drHogan

    Joined:
    Sep 26, 2012
    Posts:
    201
    I am experiencing the same problem with 2018.4.3f1, a 1.5 minute 1080p video h264 works like a charm on W10, crashes with the same error messages you guys got on a W7 machine (with a ton of free ram, so it doesn't really look like a leak somehow).

    Anybody had any luck with any of the workarounds beside adding an additional player?
     
  14. drHogan

    drHogan

    Joined:
    Sep 26, 2012
    Posts:
    201
    Is there any news about this one? We are one month from release, and while VP8 transcoded-videos work, they have horribile performances even on good test machines (on low end test machines the videos stutter so much that they are impossible to watch).

    How is it possible that such a big bug is still unsolved? The amount of Windows 7 machines is pretty big on the Steam store, I can't just ignore them unfortunately. Or has it been solved and I am missing something? I am still running on 2018.4 LTS.
     
  15. drHogan

    drHogan

    Joined:
    Sep 26, 2012
    Posts:
    201
    As I couldn't find any news, does that mean that it's being ignored or did I miss something? I am running now on 2019.2.8f1 and the issue is still there.

    Approximately 13% of the Steam users do still use Windows 7, wouldn't it be the case to get this one fixed at some point? VP8 is awful as a codec unfortunately, in quality and above all performances (the stutter is noticeable on a 1080p video even on decent machines).
     
  16. GameDev_Chuck

    GameDev_Chuck

    Joined:
    Jun 25, 2014
    Posts:
    22
    I'm using Unity 5.6.3p2. Game ran fine on win 10 but broke anywhere where I used the Video Player component. To fix I transcoded all the video assets and made a 32 bit build (x86). Videos were using H264 codec. Hope this helps!
     
  17. ruiyl

    ruiyl

    Joined:
    Aug 4, 2019
    Posts:
    20
    Hi, got the same problem as well on 2019.3.13f1. The videos were in 1920x1080, transcoded with H264 codec and 10 seconds each. They crashed the Unity Player of some of our clients, Win7 and 10 alike.
     
    Last edited: May 30, 2020
  18. kayke

    kayke

    Joined:
    Oct 21, 2015
    Posts:
    42
    @ruiyl Any chance you could post your crash log for that?
     
  19. ruiyl

    ruiyl

    Joined:
    Aug 4, 2019
    Posts:
    20
  20. drHogan

    drHogan

    Joined:
    Sep 26, 2012
    Posts:
    201
    Is there any news on progress on this at all? We are still using VP8 transcoding for this, but they do tend to stutter horribly on less than very powerful machines. Given that our video is the game intro, it gives such a low quality impression. But I can't seem to find any other way around as on Unity 2019.2.8f1 the problem still persists.
     
  21. kayke

    kayke

    Joined:
    Oct 21, 2015
    Posts:
    42
    We were having a issue that seems related. Our fix for it was change the codec of our videos to VP8 and the issue went away.
     
  22. drHogan

    drHogan

    Joined:
    Sep 26, 2012
    Posts:
    201
    Hi, may I ask how long was your video and how many fps? I have some brutal stuttering with VP8 (it's the solution i am currently using, but the stuttering is not acceptable definitely)
     
  23. kayke

    kayke

    Joined:
    Oct 21, 2015
    Posts:
    42
    Our videos were about ~15 seconds that were looped and the videos are 60 fps with max 3 videos playing concurrently at any one time. I haven't noticed any noticeable stuttering.
     
  24. saadjumani

    saadjumani

    Joined:
    Apr 12, 2016
    Posts:
    17
    Facing the same issue in Unity 2019.3.10f1.

    Tried importing Mp4 and OGGs, neither of them imports. AVI imports but gives error:

    WindowsVideoMedia error 0xc00d36b2 while reading D:/path/to/video.avi