XBMC Community Forum
[Windows] XBMC crashes when XBOX-controller disconnects - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Windows support (/forumdisplay.php?fid=59)
+---- Thread: [Windows] XBMC crashes when XBOX-controller disconnects (/showthread.php?tid=129274)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: XBMC crashes when XBOX-controller disconnects - catscratch - 2012-04-25 15:07

My xbox 360 controller and my Wii remote won't work. I'm having the same issues and the same messages in the log.

DEBUG: Thread CRemoteControl 3560 terminating

However, I don't think it's an XBMC eden problem, or a controller/driver problem. I'm seeing an emerging pattern here...Windows 7 x64. Perhaps a recent Windows update is the cause of all of our problems. I recently uninstalled and removed all traces of XBMC and tried an older version to see if my controllers would work...still nothing.

If anyone is having this problem on XP, please chime in and let us know.


RE: XBMC crashes when XBOX-controller disconnects - tjcinnamon - 2012-04-25 16:50

I'll see if my 360 controller adapter works in linux and boot from a live cd and test for the crash.

I think it may be an XBMC issue only because the PS3 and Wii controller works on Bluetooth and the 360 Controller works on a USB RF adapter (basically USB). However, I'm not ruling anything out at this point

Has this happened on Win 7 x86 (32bit) or other OS's? I suppose this is the wrong section of the forum to ask because we'll only get XP, Vista and 7.

I'll post in the other forums with a link to this topic and perhaps a poll.

Here's the two threads to keep an eye on to see if this behavior is happening in other OS's

Mac: http://forum.xbmc.org/showthread.php?tid=129925

Linux: http://forum.xbmc.org/showthread.php?tid=129926


RE: XBMC crashes when XBOX-controller disconnects - atsumori - 2012-04-26 00:51

Thanks for creating the additional threads.

I agree that this might be an XBMC Eden (possibly XBMC Eden Windows-only) issue. I just tried running a backup I made of my Dharma install that I made right before updating to Eden. Dharma does not have this issue so the cause is likely updated controller handling code in Eden.


RE: XBMC crashes when XBOX-controller disconnects - catscratch - 2012-04-26 03:07

Ok, it's not a Windows 7 prob then, I got a hold of a laptop running XP and installed eden. Similar results. Except this time, when I tried to exit XBMC it completely crashed and the laptop froze up.


RE: XBMC crashes when XBOX-controller disconnects - evil-B - 2012-04-26 13:17

I can also confirm this issue on Windows 7 Ultimate 64bit with the XBOX wireless controller.

To remove the issue just comment line 701 in file WinEventsWin32.cpp:
Code:
g_Joystick.Reinitialize();
becomes:
Code:
//g_Joystick.Reinitialize();
Of course recompilation is needed after that.

I traced the crash to function SDL_InitSubSystem(SDL_INIT_JOYSTICK) in function CJoystick::Reinitialize().
I tried the to catch the exception but even if it is caught XBMC then crashes elsewhere:
Code:
12:56:57 T:840   ERROR: CJoystick::Reinitialize() SDL_InitSubSystem crash ! <- Personal trace inside catch
12:56:57 T:840   ERROR: exception in CApplication::FrameMove()
12:56:57 T:840   ERROR: Previous line repeats 10 times.
12:56:57 T:840   ERROR: CApplication::FrameMove(), too many exceptions



RE: XBMC crashes when XBOX-controller disconnects - tjcinnamon - 2012-04-26 14:17

So commenting the line out fixes it completely?

What are you using to compile it? I'll look in the documentation on recompilation. I have Visual Studio 2010 and post when I test it out.

Thanks so much,
JOe K.


RE: XBMC crashes when XBOX-controller disconnects - evil-B - 2012-04-26 14:42

I guess it is not a fix but a workaround. This 'g_Joystick.Reinitialize()' is here to detect new joysticks which were not there when XBMC started... but obviously it doesn't work yet. The reinitialization of the SDL layer crashes, I don't know why and I don't have time nor the will to investigate it deeper.
Official coders, it is up to you now Wink

I use Visual Studio Express 2010 to compile XBMC.
run:
1- xbmc\project\BuildDependencies\DownloadMingwBuildEnv.bat
2- xbmc\project\BuildDependencies\DownloadBuildDeps.bat
3- xbmc\project\Win32BuildSetup\BuildSetup.bat
Get result in
xbmc\project\Win32BuildSetup\BUILD_WIN32


RE: XBMC crashes when XBOX-controller disconnects - atsumori - 2012-04-26 15:02

You rock evil-B, thanks for looking into this!

Is there any chance you could possibly upload your modified XBMC.exe to mediafire or someplace similar for those of us without a compiling environment?


RE: XBMC crashes when XBOX-controller disconnects - tjcinnamon - 2012-04-26 15:20

Post Compilation: Is it only the .exe that gets modified or are there other files that get modified as well?


RE: XBMC crashes when XBOX-controller disconnects - evil-B - 2012-04-26 15:25

Point me to a place where I can upload the file if you want it. I don't have any account on mediafire or any other file server.

For those of you who don't have the dev environment, know that Visual Studio Express 2010 is free.