VolcanicArts / VRCOSC

Modular OSC program creator, toolkit, and router made for VRChat. Show your heartrate, time, hardware stats, speech to text, control Spotify, and more! Includes drag-and-drop prefabs for your avatar.
GNU General Public License v3.0
333 stars 30 forks source link

WindowsMediaProvider causes Chrash #161

Closed ROBdk97 closed 5 months ago

ROBdk97 commented 6 months ago

Application: VRCOSC.exe CoreCLR Version: 6.0.2824.12007 .NET Version: 6.0.28 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException: The Device is not ready. (0x80070015) at VRCOSC.Game.Providers.Media.WindowsMediaProvider.onCurrentSessionChanged(GlobalSystemMediaTransportControlsSessionManager _, CurrentSessionChangedEventArgs _2) at System.Threading.Tasks.Task.<>c.b128_1(Object state) at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback() --- End of stack trace from previous location --- at osu.Framework.Platform.GameHost.<>c__DisplayClass141_0.b0() at osu.Framework.Threading.ScheduledDelegate.RunTaskInternal() at osu.Framework.Threading.Scheduler.Update() at osu.Framework.Threading.GameThread.processFrame()

May take a look myself. Not sure what is causing the issue. Playing Music from Plex via Chrome as it does not pick up Plexamp.

VolcanicArts commented 6 months ago

Seems like a race condition based on Windows not initialising the source in time for when VRCOSC wants to access the data. Some media sources are a bit iffy with providing their media data to the Windows media service