Skip to content

An item with the same key has already been added #706

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

Closed
mrplumber opened this issue Jul 26, 2021 · 7 comments
Closed

An item with the same key has already been added #706

mrplumber opened this issue Jul 26, 2021 · 7 comments
Labels
Bug-Crash Issues which are related to a crash Confirmed Confirmed issues released

Comments

@mrplumber
Copy link

What were you doing when it crashed ?
Single left mouse button click on the SoundSwitch tray icon produced an error (screenshot attached):
SoundSwitch crashed...
An item with the same key has already been added. Key: Digital Audio (S/PDIF) (High Definition Audio Device)

To Reproduce
Steps to reproduce the behavior:

  1. Click on SoundSwitch tray icon
  2. See error

ZIP
SoundSwitch_crashed.zip

@mrplumber mrplumber added the Bug-Crash Issues which are related to a crash label Jul 26, 2021
@mrplumber
Copy link
Author

Further investigation:
There are two devices labelled "Digital Audio (S/PDIF)" in my playback devices list. The visual difference between them is that one of them has "ATAPI Internal Connector" in Jack Information, the other one has "Rear Panel Optical Jack" in Jack Information.

As a workaround I disabled one of the mentioned devices using "Device usage" drop down menu in device properties window.

@chanskat
Copy link

I have the same issue. I have two monitors with the same "DELL U2717D (NVIDIA High Definition Audio)" listed as speakers. Tried to uninstall (they reinstalled on reboot), then disable. SS still crashes.

@chanskat
Copy link

As above, single left click on SS in tray and the same error box pops up, though with my devices.

@Belphemur
Copy link
Owner

Can you try with this build: https://nc.aaflalo.me/s/8DKytYCTAbrn6yz

And tell me if it fixes it or not ?

  • Stop SoundSwitch
  • Download the Zip
  • Unzip it anywhere
  • Open SoundSwitch from inside the folder

@Belphemur Belphemur added the Confirmed Confirmed issues label Jul 26, 2021
@mrplumber
Copy link
Author

@Belphemur, your provided beta version solves the problem - no error, works as expected. Thank you.

@chanskat
Copy link

chanskat commented Jul 26, 2021 via email

github-actions bot pushed a commit that referenced this issue Jul 27, 2021
### [5.11.2](v5.11.1...v5.11.2) (2021-07-27)

### Bug Fixes

* **Device::Matching:** Always match devices by their Id and their clean name. Also follow user order for display/switching. ([646f126](646f126)), closes [#706](#706)
* **Device::Matching:** Improve the hashcode to clash with other ([718b951](718b951))
* **Log:** Remove unneeded warning in the log ([4188c85](4188c85))
* **Update:** Use backoff strategy to avoid sending too much unneeded requests. ([a4c97ab](a4c97ab))

### Languages

* **Italian:** Translated Tray Icon using Weblate ([fe68a2a](fe68a2a))
* **Italian:** Translated Update Download using Weblate ([85890bc](85890bc))
@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 5.11.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug-Crash Issues which are related to a crash Confirmed Confirmed issues released
Projects
None yet
Development

No branches or pull requests

3 participants