Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap.Net crashes when attempt to open the UI #45

Closed
cruiser-rtd opened this issue Sep 18, 2022 · 3 comments
Closed

Snap.Net crashes when attempt to open the UI #45

cruiser-rtd opened this issue Sep 18, 2022 · 3 comments

Comments

@cruiser-rtd
Copy link

Hi,

Love the client, but am having issues after rebuilding SnapServer host on a Raspberry with "all the latest" updates on the Raspberry.

My Windows Clients (all windows 10) that were working fine before now have an issue if I try to open the main UI of Snap.Net. When I click the icon in my try, the app crashes with this error in Event log

Application: Snap.Net.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at SnapDotNet.SnapControl.Group.<_OnStreamPropertiesUpdated>b__9_0()
at System.Windows.Threading.Dispatcher.Invoke(System.Action, System.Windows.Threading.DispatcherPriority, System.Threading.CancellationToken, System.TimeSpan)
at System.Windows.Threading.Dispatcher.Invoke(System.Action)
at SnapDotNet.SnapControl.Group._OnStreamPropertiesUpdated()
at SnapDotNet.SnapControl.Group._OnGroupUpdated()
at SnapDotNet.SnapControl.Group..ctor(SnapDotNet.ControlClient.SnapcastClient, SnapDotNet.ControlClient.JsonRpcData.Group)
at SnapDotNet.SnapControl.SnapControl._OnServerUpdated()
at SnapDotNet.SnapControl.SnapControl..ctor(Hardcodet.Wpf.TaskbarNotification.Interop.Point, SnapDotNet.ControlClient.SnapcastClient)
at SnapDotNet.Snapcast.ShowSnapPane(Boolean)
at SnapDotNet.NotifyIconViewModel+<>c.<get_ShowBalloonCommand>b__9_1()
at SnapDotNet.DelegateCommand.Execute(System.Object)
at Hardcodet.Wpf.TaskbarNotification.Util.ExecuteIfEnabled(System.Windows.Input.ICommand, System.Object, System.Windows.IInputElement)
at Hardcodet.Wpf.TaskbarNotification.TaskbarIcon+<>c__DisplayClasse.b__8()
at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Windows.Threading.DispatcherOperation.Wait(System.TimeSpan)
at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherOperation, System.Threading.CancellationToken, System.TimeSpan)
at System.Windows.Threading.Dispatcher.Invoke(System.Action, System.Windows.Threading.DispatcherPriority, System.Threading.CancellationToken, System.TimeSpan)
at System.Windows.Threading.Dispatcher.Invoke(System.Action)
at Hardcodet.Wpf.TaskbarNotification.TaskbarIcon.DoSingleClickAction(System.Object)
at System.Threading.TimerQueueTimer.CallCallbackInContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.TimerQueue.AppDomainTimerCallback(Int32)

It does play the stream just fine, and will even Broadcast. I just can't open the UI to then groups and devices!

I can open all of the other right-click screens just fine (Settings..., Player, Broadcast).

I have other Mopidy/Snapcast clients and all are fine. It is only the Snap.Net client on Windows that is having an issue.

Thanks for investigating this.

@cruiser-rtd
Copy link
Author

This is similar to #40 , same error log. However, I've disabled Broadcasting so that isolates the problem to just the client UI I'd believe.

@stijnvdb88
Copy link
Owner

Hi! I just released Snap.Net v0.260.3 which has a potential fix for this crash. Please try it and let me know if it worked

@cruiser-rtd
Copy link
Author

Working perfectly! Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants