Skip to content

Playing a Video Crashes To Desktop On Windows 7

Summary

Playing a video (any video, as far as I know) will crash to desktop on Windows 7. Happens every time.

Minimal project and steps to reproduce

  1. Start a new empty project
  2. Import VLC Unity
  3. Open the minimalplayback example
  4. Comment out line 24 of minimalPlayback.cs so it doesn't just crash on start //PlayPause();
  5. Make a build
  6. Run it on Windows 7
  7. Press the play button and watch it crash.

What is the current bug behavior?

Playing a video crashes the build (on Windows 7.)

0x0000000063D32C1C (VLCUnityPlugin) GetRenderEventFunc
0x0000000063D320AA (VLCUnityPlugin) GetRenderEventFunc
0x000007FEC6C32C7B (libdirect3d11_plugin) vlc_entry_license
0x000007FEC6C31B37 (libdirect3d11_plugin) vlc_entry
0x000007FECD19D640 (libvlccore) vout_display_New
0x000007FECD156BC0 (libvlccore) vlc_module_load
0x000007FECD19D4E6 (libvlccore) vout_display_New
0x000007FECD1AD337 (libvlccore) vlc_gl_surface_Destroy
0x000007FECD1A10AA (libvlccore) vout_Hold
0x000007FECD18F8D8 (libvlccore) input_resource_Release
0x000007FECD16AD9A (libvlccore) vlc_input_decoder_SetSpuHighlight
0x000007FECD16D1DB (libvlccore) decoder_UpdateVideoOutput
0x000007FEC9362042 (libavcodec_plugin) Ordinal0
0x000007FEC938E210 (libavcodec_plugin) vlc_entry_license
0x000007FEC98BB99E (libavcodec_plugin) vlc_entry_license
0x000007FEC98B67F9 (libavcodec_plugin) vlc_entry_license
0x000007FEC93B41F9 (libavcodec_plugin) vlc_entry_license
0x000007FEC976544E (libavcodec_plugin) vlc_entry_license
0x000007FEC9765B2F (libavcodec_plugin) vlc_entry_license
0x000007FEFE31415F (msvcrt) srand
0x000007FEFE316EBD (msvcrt) ftime64_s
0x000000007781570D (kernel32) BaseThreadInitThunk
0x0000000077A7385D (ntdll) RtlUserThreadStart

What is the expected correct behavior?

Playing a video does not crash the build. Windows 7 should basically work the same as Windows 10.

Does it work on other plaforms? Does it work with the official VLC apps?

Right now VLC for Unity only supports one platform. Certainly VLC works fine on Windows 7.

Environment

  • OS: Windows
  • Version 7
  • Device: PC
  • LibVLC version and architecture 4.0.0 x64
  • LibVLCSharp version Not quite sure how to check this, sorry.
  • VLC Unity plugin version 0.1.4
  • Scripting backend used Mono

Possible fixes

I don't have any fixes or workarounds for this. I have not tested whether it's only builds or whether the editor also crashes on play on windows 7.

Edited by Martin Finkel