I have the same issue and this is what I've found so far:
-------
http://pastebin.com/knir7upX
Issue: Disconnecting Xbox360 controller (ps3 controller in motioninjoy xbox360 mode) causes xbmc to crash. I'm using the Eden Final release on Windows 7 64bit, and I haven't fiddled with any controller settings for XBMC yet. I did not have this issue with Dharma.
Replicating the issue:
1) Connect controller and start up XBMC (I don't think this order is important)
2) launch a game from advanced launcher and play
3) exit the game and return to xbmc
4) disconnect controller
Doing so causes XBMC to freeze. Windows will then tell me the program has become unresponsive and ask to close XBMC
Things I've noticed
*You have to actually play a game to cause the issue. XBMC behaves as expected if you just connect and disconnect without playing a game.
*XMBC will crash if you launch the game on it's own as well (without using advanced launcher). Keeping xbmc in windowed mode, navigating and launching the game in windows, and then exiting the game and disconnecting the controller causes xbmc to crash once XBMC is reactivated.
*The crash also occurs when connecting the controller, but only for the first time connecting the controller after startup. If you disconnect and then reconnect without restarting the computer, the reconnect will be handled without crash.
* XBMC only crashes after it is activated. If, for example, you have another window open and XMBC in the background (in windowed mode) when the controller disconnects, you can actually still see XBMC react to your mouse in the background after the disconnect. It's only when you then reactivate XBMC that XBMC crashes.
For my tests I used MAME for both testing through advanced launcher and out (from desktop), as well as Snes9X through advanced launcher.
------
There is a from
another thread where I also brought up this issue, but that thread has a couple of issues in it so it's probably better for me to post all information about this bug here from now on.
*Edited to update pastebin link.