xbmc freezes after suspend
#1
Hi everybody,

I'm running an SVN build from 2 nights ago on my Gentoo machine, and there's one glitch: after I resume the machine from suspend, XBMC doesn't respond anymore and creates 100% CPU load. The suspend itself works fine, even multiple times, but I always have to restart XBMC afterwards. I couldn't find any related infos - does somebody have a hint on how to debug this?

Thanks, Yours, Florian
Reply
#2
Suspend issues often come from stuck kernel modules especially audio, video, usb. does your dmesg tell anything?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#3
I just double-checked my message log, but there's nothing, neither before suspend nor after resume, which shows any relation to XBMC. IIRC, it's also just the GUI which locks up - I once had music playing when I suspended the machine, and after resume, the playlist picked up where it was and happily continued playing; only the GUI took up one full CPU core.

Yours, Florian
Reply
#4
well then give some information about your video hardware, say: vendor, chipset, driver and -version, distro, etc...
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#5
Right - I have:

Nvidia GeForce 8600 GT
Proprietary Driver - Version 180.37
Gentoo Linux
XBMC built with OpenGL support, SVN rev. 18794

I also just realized that I never tried debug logging so far.. will do that right away.

Florian
Reply
#6
Here's the log: http://pastebin.com/f75708c56
Suspend was at 20:15:33, resume at 20:24:17. HTH!
Reply
#7
Weird - that is all? Those lines at 20:24 are a bit short i suppose. They only mention rebuilding the gui. I guess you should try debugging with gdb to get a real backtrace of what's happening in xbmc while awakening from suspend. Have a look here:

http://wiki.xbmc.org/?title=HOW-TO_Submi...cktrace.29
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#8
Getting back to this old topic again: I recently found out that the problem may be related to XBMC itself reacting to the power button. I've configured my gnome-power-manager to suspend the system on pressing the power button, and XBMC pops up the system menu when I do so (I've just had the machine wake with the popup menu stuck halfway across the screen). Yet, this never happens when I suspend from the console or through the tray menu.

Can I just tell XBMC to ignore the power button?
Reply
#9
Xbmc is freezing after suspend for me too.

Any ideas anyone?

I'll paste a log when I can
Xbmc 9.11 Alpha 2 r24548 (Compiled Nov 5th 2009) PPA | Ubuntu 9.04 | Mobo Asus (P5N7A-VM) |CPU E5200 | 4Gig RAM DDR2 667 | http://www.myspace.com/schizonaturals
Reply
#10
floe Wrote:Getting back to this old topic again: I recently found out that the problem may be related to XBMC itself reacting to the power button. I've configured my gnome-power-manager to suspend the system on pressing the power button, and XBMC pops up the system menu when I do so (I've just had the machine wake with the popup menu stuck halfway across the screen). Yet, this never happens when I suspend from the console or through the tray menu.

Can I just tell XBMC to ignore the power button?

The powerbutton reaction is plain fire and forget from HAL, so it can't have anything to do with this. All applications hooked up to HAL get this event, usually they ignore it though.

Please try a SDL based game, i.e. warsow, and check if OpenGL or fullscreen access is the cause of the lockup.

Just to make sure, you have setup gnome to react to the powerbutton? gnome's powermanager might do somethng weird as heck is my guess aswell. XBMC bypasses it and uses system.

What commands are you doing when sleeping, what does "tray menu" means?
please post more details about the problem (there is a sticky about what is required).

Same goes for you Peevy (I know you have said to post the log but all the other stuff from that sticky might be usefull)
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#11
So since the latest update of Xbmc (as Highlighted in my sig)
It no longer freezes after suspend but crashes & continues to do so until a system reboot.

I have to say though that the latest update has fixed a few other problems, the main one being Xbmc crashing after selecting a h264 encoded mkv which would then play fine after restarting Xbmc. This problem seems to be sorted now.

Maybe I should start a new thread about this but the latest update seems to have introduced a new problem. A green line & distortion on the far right hand side of the screen, so far I think it only affects h264 encoded videos. Upon further testing it seems to go away after returning the VDPAU settings for sharpness & noise reduction back to 0.

Oh here's the Xbmc log: http://ubuntu.pastebin.com/f4d9fc447

One more thing, I know Iv'e said before but I'll say it again. A really big thanks to the XBMC Team for this wonderful HTPC software. I fully intend to donate some cash to the cause when I can. Hopefully soon. Big Grin
Xbmc 9.11 Alpha 2 r24548 (Compiled Nov 5th 2009) PPA | Ubuntu 9.04 | Mobo Asus (P5N7A-VM) |CPU E5200 | 4Gig RAM DDR2 667 | http://www.myspace.com/schizonaturals
Reply
#12
Well its still freezing after suspend. Xbmc starts up fine but when i hit play on a video & I think Even Music file, it freezes & I have to hit the reset button to get things going again.
Xbmc 9.11 Alpha 2 r24548 (Compiled Nov 5th 2009) PPA | Ubuntu 9.04 | Mobo Asus (P5N7A-VM) |CPU E5200 | 4Gig RAM DDR2 667 | http://www.myspace.com/schizonaturals
Reply
#13
Mine was crashing because of my unsupported Intel HDA audio chipset. The brand new Alsa 1.0.20 solved it,

http://ubuntuforums.org/showthread.php?p...ost6589810

You should check it !
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#14
Quote:Mine was crashing because of my unsupported Intel HDA audio chipset. The brand new Alsa 1.0.20 solved it,

http://ubuntuforums.org/showthread.p...10#post6589810

Many Thanks to you alanwww1 Big Grin
I can now resume after suspend with sound & Xbmc isn't crashing anymore.
Just a couple more kinks to iron out & we're there. The lack of AC3 & DTS passthrough with pulseaudio isn't an Xbmc problem but this other one is:

Quote:Maybe I should start a new thread about this but the latest update seems to have introduced a new problem. A green line & distortion on the far right hand side of the screen, so far I think it only affects h264 encoded videos. Upon further testing it seems to go away after returning the VDPAU settings for sharpness & noise reduction back to 0.

Oh here's the Xbmc log: http://ubuntu.pastebin.com/f4d9fc447

I probably should start a new thread for this. Im really glad I got the suspend problem sorted though, thanks again alanwww1.
Xbmc 9.11 Alpha 2 r24548 (Compiled Nov 5th 2009) PPA | Ubuntu 9.04 | Mobo Asus (P5N7A-VM) |CPU E5200 | 4Gig RAM DDR2 667 | http://www.myspace.com/schizonaturals
Reply
#15
Well it looks like I spoke too soon. Xbmc is crashing again after suspend.
Xbmc 9.11 Alpha 2 r24548 (Compiled Nov 5th 2009) PPA | Ubuntu 9.04 | Mobo Asus (P5N7A-VM) |CPU E5200 | 4Gig RAM DDR2 667 | http://www.myspace.com/schizonaturals
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc freezes after suspend0