Windows XBMC crashes when XBOX-controller disconnects

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
atsumori Offline
Member
Posts: 59
Joined: Mar 2011
Reputation: 0
Post: #71
(2012-04-28 14:48)evil-B Wrote:  I am very close to ditching all this and use xpadder as the sole controller handler on my HTPC. The only patch needed then would be to remove the call to CJoystick::Reinitialize() to prevent the crash.

I think I'm with you in ditching.

Correctly me if I'm wrong but what you're implying is that your first build should work fine as long as I don't use a controller to directly control XBMC, correctly? I do everything through EventGhost or Pinnacle Game Profiler, so that works fine for me. I'll try running the original build for a while and let you know if I see any more issues (I'd originally abandoned the build because it didn't play video, but updating to the nightlies has fixed that).

As for Peripherals, where do you see it and under what skin? I tried to find it under Nox and Confluence but wasn't able to find it. Maybe I disabled it somehow?
(This post was last modified: 2012-04-28 15:23 by atsumori.)
find quote
evil-B Offline
Junior Member
Posts: 28
Joined: Feb 2011
Reputation: 0
Post: #72
Yes you are correct. The first patched version only removes the call to Reinitialize() which crashes XBMC but also should detect newly plugged controllers.

I see 'Peripherals' under System->system->Input Devices.
I use the standard skin.
find quote
atsumori Offline
Member
Posts: 59
Joined: Mar 2011
Reputation: 0
Post: #73
Ah thanks. Yeah, peripherals is grayed out on my install as well.

So far no problems running your original build. Thanks so much for your help!
find quote
RandomNinjaAtk Offline
Member
Posts: 77
Joined: Jun 2011
Reputation: 1
Location: USA -> Maryland
Post: #74
I have yet to read the entire thread, but I'm having same/similar problem. Connecting and disconnecting my hardwired Xbox360 controller causes XBMC to crash. For those who mentioned Xpadder. I am using Xpadder and it still has the same results. I use Xpadder for controller configurations but it does not fix the problem with connecting/disconnecting controllers and XBMC crashing. I'm currently running XBMC Eden Official Release and Windows 7. I mainly posted this now for those whom were mentioning Xpadder as a way to solve the problem. I will read the whole thread when I get a chance. This way I can figure out whats going on. We really need a fix for this.

Thanks in advance!

"Live to Win!"
www.stevenohare.com - Personal Blog
www.oharesites.com - Domain Names, Web Hosting, Email Hosting and more
find quote
evil-B Offline
Junior Member
Posts: 28
Joined: Feb 2011
Reputation: 0
Post: #75
Here is a summary.
Two patched versions available:

XBMC No Reinit
http://ryushare.com/s97u0ug12eq8/XBMC_NoReinit.zip
This version removes the call to CJoystick::Reinitialize() which prevents the crash when the controller disconnects.
Newly connected controller won't be detected.
This version should not crash. If it does, it does not come from the patch.

XBMC SDL_Quit
http://ryushare.com/8lub9f7fodaq/XBMC_SDL_Quit.zip
This version tries to handle the crash in the SDL layer more smoothly.
I have been using this version for a few evenings now without a crash and working disconnection/reconnection.
You should get less crashes from this version. Instead of crash I expect a non working controller after disconnection.

These .exe are to be used with the nightly builds. If your XBMC environment is too old, videos won't play and maybe you'll get unexpected crashes. This time each .exe comes with a .diff file indicating what was modified in the code.
find quote
achaw Offline
Junior Member
Posts: 41
Joined: Mar 2012
Reputation: 0
Post: #76
wich nightly should i use for this exe?
find quote
evil-B Offline
Junior Member
Posts: 28
Joined: Feb 2011
Reputation: 0
Post: #77
a recent one.
find quote
tjcinnamon Offline
Senior Member
Posts: 224
Joined: Apr 2012
Reputation: 0
Post: #78
Has anyone else tried these? Your experience?

I've been out of town but will try them tonight.

Frodo Win 8 Pro x64
Fractal Design Node 605 (looks amazing)
i5 3570K, Asus P8Z77V LK
2x80GB Intel 320 SSD, 4TB NAS
GTX 670x2 SLI, 16GB GSkill Ares
Onkyo RC360 with Paradigm piece-by-piece 5.1 build
Nyxboard and AHK full controlled via XBox Controller
find quote
atsumori Offline
Member
Posts: 59
Joined: Mar 2011
Reputation: 0
Post: #79
I'm still using the original build but I plan to switch to No Reinit tonight when I get home from work.

Also, I was told there was already a bug ticket open for this issue. My ticket was closed, so please consider the following ticket as the "official" ticket of this thread from now on:

http://trac.xbmc.org/ticket/12857

Also, all info from my ticket has already been added to that ticket.
(This post was last modified: 2012-05-01 02:29 by atsumori.)
find quote
tjcinnamon Offline
Senior Member
Posts: 224
Joined: Apr 2012
Reputation: 0
Post: #80
I can confirm that XBMC_NoReinit.zip works. However, my Pandora app no longer works.

Upon reverting to the original the Pandora app still does not work meaning they are probably unrelated. So my experience with NoReinit is successful

Frodo Win 8 Pro x64
Fractal Design Node 605 (looks amazing)
i5 3570K, Asus P8Z77V LK
2x80GB Intel 320 SSD, 4TB NAS
GTX 670x2 SLI, 16GB GSkill Ares
Onkyo RC360 with Paradigm piece-by-piece 5.1 build
Nyxboard and AHK full controlled via XBox Controller
find quote
Post Reply