Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Microsoft.Xna.Framework.Input.GamePad.INTERNAL_AddInstance throws "An element with the same key already exists in the dictionary" #313

Closed
QuarkRobot opened this issue Jul 18, 2015 · 2 comments

Comments

@QuarkRobot
Copy link

This happens on a 2011 Mac Mini with Yosemite 10.10.4 with a Bluetooth Logitech keyboard K760 and Apple Magic Trackpad connected.

An element with the same key already exists in the dictionary. 
at System.Collections.Generic.Dictionary`2[System.Int32,System.Int32].Add (Int32 key, Int32 value) [0x00000] in <filename unknown>:0
at Microsoft.Xna.Framework.Input.GamePad.INTERNAL_AddInstance (Int32 dev) [0x00000] in <filename unknown>:0
at Microsoft.Xna.Framework.SDL2_GamePlatform.BeforeInitialize () [0x00000] in <filename unknown>:0 
at Microsoft.Xna.Framework.Game.DoInitialize () [0x00000] in <filename unknown>:0 
at Microsoft.Xna.Framework.Game.Run () [0x00000] in <filename unknown>:0 
at WindowsGame3.Program.Main (System.String[] args) [0x00000] in <filename unknown>:
@flibitijibibo
Copy link
Owner

Unfortunately without debug information this makes it hard to tell what the actual issue is, but the good news is that I fixed this already:

042d9cb

Is this the latest revision?

@QuarkRobot
Copy link
Author

Sorry, no it was from about two days before this fix. Thanks, Ethan.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants