SamDel / ChromeCast-Desktop-Audio-Streamer

Stream the sound of your desktop to your Chromecast Audio device
MIT License
411 stars 30 forks source link

Exception when clearing ver 3.7 #108

Closed johnfoxii closed 3 years ago

johnfoxii commented 3 years ago

app idle or hours. I actually use it sometimes to adjust volume of speakers when another app is casting to them this way i can still use google voice and play music I notices one speaker was different it had the name of another speaker with a "+1" on the end and it was yellow. So I went to reset. I clicked reset once (I think) and 2 seconds not sure i clicked it a first I clicked reset again and it exceptioned. I also attached the output from a simple debugger captured after i clicked continue in the app the last 20-30 entries are from clicking reset let me knw if this has any value

Debug full exception

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at ChromeCast.Desktop.AudioStreamer.Application.Devices.SetFilterDevices(FilterDevicesEnum value) at ChromeCast.Desktop.AudioStreamer.Application.ApplicationLogic.ResetSettings() at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

ChromeCast.Desktop.AudioStreamer Assembly Version: 3.7.0.0 Win32 Version: 3.7.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/Desktop%20Audio%20Streamer/Desktop%20Audio%20Streamer/ChromeCast.Desktop.AudioStreamer.exe

SamDel commented 3 years ago

Thanks a lot, very helpfull! I could reproduce the issue by clicking ResetSettings multiple times in a row. I added some fixes for it in Setup 3.7.2.zip.

johnfoxii commented 3 years ago

OK Thanks i seem to be able to duplicate it . while scanning for new devices and i click reset setting. Here is the exception and i will install the new version and try. I'll just use this ticket if the new ver exceptions and post here

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

** Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at ChromeCast.Desktop.AudioStreamer.Application.Devices.SetFilterDevices(FilterDevicesEnum value) at ChromeCast.Desktop.AudioStreamer.Application.ApplicationLogic.ResetSettings() at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies ** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

johnfoxii commented 3 years ago

You fixed them Both Thank you

SamDel commented 2 years ago

The fix is in release version 3.8.