HeliosVirtualCockpit / Helios

Helios Distribution
https://github.com/HeliosVirtualCockpit/Helios/wiki
GNU General Public License v3.0
201 stars 33 forks source link

Unhandled error in mscorlib when adding a new interface #491

Closed Binary-System closed 11 months ago

Binary-System commented 2 years ago

Fresh installation in Windows 10 pro 64bit @ current patchlevel

Way to reproduce: New Profile => Save with name => Menu: Profile => Add Interface

Errors recieved:

---------------------------
Unhandled Error in mscorlib
---------------------------
Unhandled exception occurred.  Please file a bug:
Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.
   bei System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

   bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

   bei GadrocsWorkshop.Helios.Collections.KeyedObservableCollection`2.OnCollectionChanged(NotifyCollectionChangedEventArgs e)

   bei System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)

   bei GadrocsWorkshop.Helios.Interfaces.DirectX.DirectXControllerInterface.AddFunction(DirectXControllerFunction function)

   bei GadrocsWorkshop.Helios.Interfaces.DirectX.DirectXControllerInterface.PopulateFunctions(IList`1 objects)

   bei GadrocsWorkshop.Helios.Interfaces.DirectX.DirectXControllerInterface.set_ControllerId(DirectXControllerGuid value)

   bei GadrocsWorkshop.Helios.Interfaces.DirectX.DirectXControllerInterfaceFactory.GetInterfaceInstances(HeliosInterfaceDescriptor descriptor, HeliosProfile profile)

   bei GadrocsWorkshop.Helios.ProfileEditor.ViewModel.AvailableInterfaces.Start(HeliosProfile profile)

   bei GadrocsWorkshop.Helios.ProfileEditor.MainWindow.AddInterface_Executed(Object sender, ExecutedRoutedEventArgs e)
---------------------------
OK   
---------------------------
Binary-System commented 2 years ago

Seems to be a duplicate to #485

Problem in case was indeed the USB Device: HID-compliant game controller with the default Microsoft driver.

Specifically this device: "BEYEE Zero Delay Arcade USB Encoder PC to Joystick" (but is sold unter a gazillion other names too)

Don't want to post shopping links here but can provide the amazon store link for the item or provide more driver details if wanted.

Binary-System commented 2 years ago

From the error messages. Is it possible that the problem is having 2 identical named USB devices on the system?

ereidelbach commented 2 years ago

I just experienced this exact same bug. I have multiple USB devices (a simpit setup) along with two zero delay encoders mentioned above.

When I have time this weekend I'll start unplugging them one by one until I can successfully add an interface, and then start adding them back in until I can identify the problem on my end.

Todd1215 commented 2 years ago

@ereidelbach did you ever determine which controller was causing the issue?

Todd1215 commented 2 years ago

See issue #485 for any further correspondence as this is a duplicate report.

BlueFinBima commented 1 year ago

@Binary-System Did you have more than one of these boards attached to your system? Also, was it / were they on an external USB hub?

BlueFinBima commented 1 year ago

As far as I can tell, this is not the same as #485