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

Clicking tray icon while broadcasting causes app crashes #40

Closed
baddwin opened this issue May 20, 2022 · 2 comments
Closed

Clicking tray icon while broadcasting causes app crashes #40

baddwin opened this issue May 20, 2022 · 2 comments

Comments

@baddwin
Copy link

baddwin commented May 20, 2022

Snap.Net version : 0.26.0.2
OS: Windows 11

It's similar to #39 , but with additional state, that is occured while broadcasting, and using virtual sound card.

Here's the log from Event Viewer:

Log Name:      Application
Source:        .NET Runtime
Date:          20/05/2022 15.11.35
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      AMZ-Desktop
Description:
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.<OnMouseEvent>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)

@stijnvdb88
Copy link
Owner

Hi! apologies for taking so long - 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

@baddwin
Copy link
Author

baddwin commented Sep 19, 2022

Hi @stijnvdb88, I got it fixed in my end, thank you! So I close this issue.

@baddwin baddwin closed this as completed Sep 19, 2022
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