LibVLC and Unity troubleshooting

This forum is about all development around libVLC.
plutonic
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2020 19:45

LibVLC and Unity troubleshooting

Postby plutonic » 14 Feb 2020 20:16

Hello!

I have recently been trying to use the VLC Unity Plugin and it keeps crashing my version of Unity; I'm curious if anyone might have an inkling why?

I've been building it from source (I am currently time-rich and cash-poor), following all the steps to properly build and assemble the actual plugin directory. I have added it to a blank Unity project, and after loading up the sample scene (main.unity) and running it, Unity throws a few warnings stating that the referenced script on on the game object "VLC Screen 1" is missing. Because of this, I then add the sample script (UseRenderingPlugin.cp) to the game object, replay, and Unity crashes. I have been troubleshooting for a while, trying to build different combinations of vlc-unity, libvlc, and libvlcsharp, but to no avail.

vlc-unity: (tag 0.0.4) from https://code.videolan.org/videolan/vlc-unity
libvlc: from https://nightlies.videolan.org/build/win64-llvm/vlc-4.0.0-20200205-0754/vlc-4.0.0-20200205-0754-dev-win64.7z
libvlcsharp: (commit b9452fe on the unity branch) from https://code.videolan.org/videolan/LibVLCSharp
Unity: 2019.3.0f6
Target platform: Windows 64

Thanks for any direction anyone could provide!

plutonic
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2020 19:45

Re: LibVLC and Unity troubleshooting

Postby plutonic » 14 Feb 2020 20:44

After looking at the crash dump for the build above, I get:

Exception Code: 0xC0000005
Exception Information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access

Not sure if this helps

-plutonic

plutonic
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2020 19:45

Re: LibVLC and Unity troubleshooting

Postby plutonic » 14 Feb 2020 21:00

Stack trace:

0x00000232293A2604 (VLCUnityPlugin) GetRenderEventFunc
0x00000232293A22EE (VLCUnityPlugin) GetRenderEventFunc
0x00000232293A217F (VLCUnityPlugin) GetRenderEventFunc
0x00000232293A155C (VLCUnityPlugin) CreateAndInitMediaPlayer
0x000002322ABECEBF (Mono JIT Code) (wrapper managed-to-native) LibVLCSharp.Shared.MediaPlayer/Native:CreateAndInitMediaPlayer (intptr)
0x000002322ABECC73 (Mono JIT Code) LibVLCSharp.Shared.MediaPlayer/<>c__DisplayClass3_0:<.ctor>b__0 ()
0x000002322ABE92E4 (Mono JIT Code) LibVLCSharp.Shared.Internal:.ctor (System.Func`1<intptr>,System.Action`1<intptr>)
0x000002322ABEC02B (Mono JIT Code) LibVLCSharp.Shared.MediaPlayer:.ctor (LibVLCSharp.Shared.LibVLC)
0x000002322837E20B (Mono JIT Code) [C:\Users\classuser\VLCUnityTest\Assets\VLC-Unity-Windows\Scripts\UseRenderingPlugin.cs:19] UseRenderingPlugin:Awake ()
0x0000023232871FB8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFF5439CBB0 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFF54322122 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FFF5432B11F (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\object.c:2968] mono_runtime_invoke
0x00007FF783685BAE (Unity) scripting_method_invoke
0x00007FF78367F88D (Unity) ScriptingInvocation::Invoke
0x00007FF78367FB5E (Unity) ScriptingInvocation::InvokeChecked
0x00007FF7836E6F93 (Unity) SerializableManagedRef::CallMethod
0x00007FF7836492DD (Unity) MonoBehaviour::CallAwake
0x00007FF783647C54 (Unity) MonoBehaviour::AddToManager
0x00007FF78364865C (Unity) MonoBehaviour::AwakeFromLoad
0x00007FF781DE1397 (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
0x00007FF781DE1EB0 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad
0x00007FF78314F02F (Unity) LoadSceneOperation::CompleteAwakeSequence
0x00007FF78314F313 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
0x00007FF78314FFA9 (Unity) LoadSceneOperation::IntegrateMainThread
0x00007FF783153909 (Unity) PreloadManager::UpdatePreloadingSingleStep
0x00007FF783154131 (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete
0x00007FF781AA87EE (Unity) EditorSceneManager::RestoreSceneBackups
0x00007FF78151E6C4 (Unity) PlayerLoopController::EnterPlayMode
0x00007FF781530CB4 (Unity) PlayerLoopController::SetIsPlaying
0x00007FF781533A6F (Unity) Application::TickTimer
0x00007FF781E76C10 (Unity) MainMessageLoop
0x00007FF781E809AA (Unity) WinMain
0x00007FF784DFC602 (Unity) __scrt_common_main_seh
0x00007FFFA71B2774 (KERNEL32) BaseThreadInitThunk
0x00007FFFA9C50D51 (ntdll) RtlUserThreadStart

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: LibVLC and Unity troubleshooting

Postby mfkl » 17 Feb 2020 03:46

Hi,

Please open an issue at https://code.videolan.org/videolan/vlc-unity with all the info.

Thanks
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests