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

Crash on boot after motherboard change #251

Closed
barnstorm3r opened this Issue Apr 1, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@barnstorm3r

barnstorm3r commented Apr 1, 2018

I recently downsized my PC, which involved changing from an ASUS Prime X370-Pro to an ITX ASUS board (B350-I Gaming). Now, SoundSwitch crashes every time I boot. I'm running Windows 10 Pro x64 1709 with all the latest quality updates as of April 1st (KB4088776). I'm using SoundSwitch to change between a set of 3.5mm speakers attached to my motherboard headers and my USB headset. AppData folder and crash logs attached. I should mention that, after launching the application manually through the Start Menu, it works perfectly.
SoundSwitch.zip
SoundSwitch-crashlog-1_4_2018.zip
SoundSwitch-crashlog-30_3_2018.zip

@FireEmerald

This comment has been minimized.

Collaborator

FireEmerald commented Apr 3, 2018

I would suggest to uninstall SoundSwitch and make sure %AppData%\SoundSwitch is also deleted. Then reinstall SoundSwitch and tell us if the problem persists. Seems like something went wrong while unregister hotkeys.

/// <summary>
/// Unregister a registered HotKey
/// </summary>
/// <param name="hotKeys"></param>
/// <returns></returns>
public static bool UnRegisterHotKey(HotKeys hotKeys)
{
var count = 0;
while (_instance == null)
{
Thread.Sleep(250);
if (count++ >= 2)
{
throw new ThreadStateException("Instance isn't set even after waiting 750 ms");
}
}
L191

@barnstorm3r

This comment has been minimized.

barnstorm3r commented Apr 15, 2018

Alright, I'll have a look. Thanks!

@barnstorm3r barnstorm3r reopened this Apr 15, 2018

@barnstorm3r

This comment has been minimized.

barnstorm3r commented Apr 15, 2018

Just rebooted having reinstalled, to be greeted with a crash again. Here's the log:
SoundSwitch-crashlog-15_4_2018.zip

@FireEmerald

This comment has been minimized.

Collaborator

FireEmerald commented May 19, 2018

Please update to the latest version - if the problem persists, you can use the following workaround, because you said:

I should mention that, after launching the application manually through the Start Menu, it works perfectly.

  1. Disable the Autostart of SoundSwitch everywhere.
  2. Create a new text file somewhere, called startSoundSwitch.bat. 2018-05-20 00_06_05-autostart
  3. The content of the file should be: start /d "C:\Program Files\SoundSwitch" SoundSwitch.exe
  4. (optional) The path must be changed if you installed SoundSwitch somewhere else.
  5. Close SoundSwitch, double click onto the file, SoundSwitch must start.
  6. Press [WIN] + [R], enter shell:startup and press OK.
  7. A directory will be opened, create a shortcut of your startSoundSwitch.bat file and move it to this directory.
  8. Edit the properties of your shortcut and set Run: Minimized.
  9. You're done. When your computer starts, SoundSwitch will start.

If something doesn't work, try the "full version" here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment