Null reference @ VLC Constructor - Beta BGM implementation

Issue #1886 resolved
Elliot Jerge created an issue

Issue happens when choosing NES/SNES/Genesis games in Big Box

System.NullReferenceException: Object reference not set to an instance of an object. at Meta.Vlc.Vlc..ctor(String[] argv) at () at Meta.Vlc.Wpf.ApiManager.get_DefaultVlc() at (Game , EventHandler ) at Unbroken.LaunchBox.Wpf.Music.Play(Game game, EventHandler musicStopped) at (PlayMusicMenuAction ) at Unbroken.LaunchBox.Wpf.BigBox.MenuActions.PlayMusicMenuAction.OnEnter() at (GamesViewModelBase ) at Unbroken.LaunchBox.Wpf.BigBox.ViewModels.GamesViewModelBase.<selectionChangedTimer_Elapsed>b__129_0() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()

Comments (24)

  1. Elliot Jerge reporter

    Hey Jason! I am still getting that error for NES and now for the SNES too! I'll do some investigating to see what the issue might be,

  2. Elliot Jerge reporter

    I Figured out that it deals with music that comes from emumovies, I have noticed that the sections that close are the NES, SNES and the Genesis all which contain music, while the ones that do not, I can play without a problem.

  3. Alex Dubois

    Hi all,

    Please update to the latest beta version of LaunchBox. This issue has been resolved on a previous commit, hence it should be gone. Advise if you're still seeing it :).

  4. Jason Carr repo owner

    Thank you guys; I think I actually fixed it this time. ;)

    New beta will be out later today. Do let me know if you're still seeing the issue. Thanks again.

  5. Elliot Jerge reporter
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Meta.Vlc.Vlc..ctor(String[] argv, Boolean music)
       at ()
       at Unbroken.LaunchBox.Wpf.Music.get_Vlc()
       at (Game , EventHandler )
       at Unbroken.LaunchBox.Wpf.Music.Play(Game game, EventHandler musicStopped)
       at (PlayMusicMenuAction )
       at Unbroken.LaunchBox.Wpf.BigBox.MenuActions.PlayMusicMenuAction.OnEnter()
       at (CoverFlowWithDetailsGamesViewModel )
       at Unbroken.LaunchBox.Wpf.BigBox.ViewModels.CoverFlowWithDetailsGamesViewModel.<selectionChangedTimer_Elapsed>b__67_0()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    

    The Dreaded error message is still present after updating :/

  6. Jason Carr repo owner

    Thank you for bearing with me on this Elliot; I think I finally have this figured out and the beta should be out shortly. Of course, do let me know if I'm wrong again. ;)

  7. Elliot Jerge reporter

    Soo...Updated to Beta 10 System.NullReferenceException: Object reference not set to an instance of an object. at (<>c__DisplayClass39_0 ) at Unbroken.LaunchBox.Wpf.Music.<>c__DisplayClass39_0.<MediaOnParsedChanged>b__0() at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore() at System.Windows.Threading.DispatcherOperation.InvokeImpl() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout) at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) at System.Windows.Threading.Dispatcher.Invoke(Action callback) at Unbroken.LaunchBox.Wpf.Music.MediaOnParsedChanged(Object sender, ObjectEventArgs`1 e) at (VlcMedia , LibVlcEventArgs& , IntPtr ) at Meta.Vlc.VlcMedia.OnParsedChanged(LibVlcEventArgs& arg, IntPtr userData)

    I Did figure out though that it is the background musics for games because I deleted the music folde for nes and genesis so those work fine but it is still not for the ones that do have it....And its not a super big deal to me ;) But i dont know about other people

  8. Log in to comment