You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been having this issue that appears randomly for a while where SoundSwitch would just stop working after turning my laptop back on after sleeping. After turning on, I would notice that the app had crashed. I don't know if it always happens after sleeping, but I definitely have had this happen a couple of times before.
Today I had a little time to try to find why SoundSwitch is crashing, and I found some interesting logs in Event Viewer. The SoundSwitch logs at %appdata%\SoundSwitch do not have anything related to this. The logs stop yesterday, which is when I put my laptop to sleep.
In case it is relevant, I have a Focusrite Scarlett 4i4 connected to my laptop and I don't usually disconnect it when I set my laptop to sleep.
I'm attaching a ZIP file with the Custom View filter I used to find the logs and the exported logs from my machine.
I'll also include the .NET Runtime crash here, but it is also visible from the exported logs in the ZIP file.
Error
Application: SoundSwitch.exe
CoreCLR Version: 7.0.723.27404
.NET Version: 7.0.7
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
at SoundSwitch.Audio.Manager.Interop.Com.User.User32+NativeMethods.SendMessage(IntPtr, UInt32, IntPtr, System.Text.StringBuilder)
at SoundSwitch.Audio.Manager.Interop.Com.User.User32+NativeMethods.SendMessage(IntPtr, UInt32, IntPtr, System.Text.StringBuilder)
at SoundSwitch.Audio.Manager.Interop.Com.User.User32.GetWindowText(HWND)
at SoundSwitch.Audio.Manager.WindowMonitor+<>c__DisplayClass6_0.<ProcessWindowInformation>b__0()
at SoundSwitch.Audio.Manager.Interop.Com.Threading.ComThread+<>c__DisplayClass9_0`1[[System.ValueTuple`3[[System.UInt32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<BeginInvoke>b__0()
at System.Threading.Tasks.Task`1[[System.ValueTuple`3[[System.UInt32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
at System.Threading.Tasks.Task.ExecuteEntry()
at SoundSwitch.Audio.Manager.Interop.Com.Threading.ComTaskScheduler.<.ctor>b__2_0()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
SoundSwitch monitor what is the current foreground application to see if a profile needs to be applied.
I thought I had found a fix for this bug ... I'm not sure how I can correct it.
Basically, SoundSwitch couldn't get the new window name.
What happened?
I've been having this issue that appears randomly for a while where SoundSwitch would just stop working after turning my laptop back on after sleeping. After turning on, I would notice that the app had crashed. I don't know if it always happens after sleeping, but I definitely have had this happen a couple of times before.
Today I had a little time to try to find why SoundSwitch is crashing, and I found some interesting logs in Event Viewer. The SoundSwitch logs at
%appdata%\SoundSwitch
do not have anything related to this. The logs stop yesterday, which is when I put my laptop to sleep.In case it is relevant, I have a Focusrite Scarlett 4i4 connected to my laptop and I don't usually disconnect it when I set my laptop to sleep.
I'm attaching a ZIP file with the Custom View filter I used to find the logs and the exported logs from my machine.
SoundSwitch Crash.zip
I'll also include the .NET Runtime crash here, but it is also visible from the exported logs in the ZIP file.
Error
Also, here's my config in case it is of any use.
SoundSwitchConfiguration.json
Step to reproduce
I don't know exactly the steps, but I do know that this time it happened like this.
I know the steps probably won't reproduce the crash, so it might be something else or something specific to my machine.
Version
v6.7.2.0
What version of Windows are you seeing the problem on?
Windows 10
Relevant log output
No response
The text was updated successfully, but these errors were encountered: