Linux XBMCbuntu freezes
#1
I just formatted my MacMini and installed Eden, XBMCbuntu on it and it keeps freezing. It works fine when I am using it, but it seems like if I leave it for a prolonged period of time, it locks up. The
last two times have been while paused and playing a video.

i had an active strace onto the xbmc.bin process and that is here: http://pastebin.com/kppxrtkY

strangely, if I detach the strace and start again, i show this: restart_syscall(<... resuming interrupted call ...>
which is exactly what was shown the other times it has frozen.

I also had a tail of the xbmc.log file open as well, that is here: http://pastebin.com/exVYP1zq

This is a older gen MacMini (Core Duo 1.5 I think). 1GB ram w/ 120 GB hdd.

Both times I was playing a SD video, nothing fancy, and it was playing fine. I just paused it to switch to the PS3 for a quick game, then when I came back it was frozen again.

I am running Aeon Nox skin, but this has happened w/ Confluence as well. Normal addons from the xbmc repo, nothing exotic. I am connecting to mysql database. I also have a flirc installed,

Up until today I was running Dharma Live with no issues. Just wanted to upgrade for the new features. To clarify, I formatted the drive and did a clean install, this isn't an upgrade / update.

Any help would be appreciated. Let me know if there is any more data I can provide.



Reply
#2
woke up this morning and restarted the server, and it froze before it even finished coming up:

xbmc log here: http://pastebin.com/T4UKsf5E

strace isn't stuck like it was before, but here is the last few lines: http://pastebin.com/EZ4hejA1
Reply
#3
similar freeze just happened, although this time it was just at the root menu. I turned off the TV for about 15 minutes, and when I came back and turned on the TV, it showed the "NO SIGNAL" screen as if XBMC had done to sleep or was off (even though I just set the screen saver to "NONE" and set the time for 60 minutes).

didn't have an attached strace, but strace to the currently frozen xbmc.bin process shows restart_syscall(<... resuming interrupted call ...> again.

Reply
#4
i haven't used it since yesterday and it was frozen again when I went to use it today. When I did a ps to find the xbmc.bin process ID this is what i found:


tanner 1408 0.0 0.0 2048 508 ? Ss Jun08 0:00 /bin/sh /usr/bin/xbmc-standalone
tanner 1459 0.0 0.0 3864 180 ? Ss Jun08 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc-standalone
tanner 1462 0.0 0.0 3756 472 ? S Jun08 0:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/xbmc-standalone
tanner 1467 0.0 0.0 2048 508 ? S Jun08 0:00 /bin/sh /usr/bin/xbmc --standalone
tanner 1476 11.5 18.5 492540 184344 ? SLl Jun08 218:01 /usr/lib/xbmc/xbmc.bin --standalone

is that normal? 5 xbmc processes running?
Reply
#5
it seems like this has something to do with the Power Savings and/or screen saver. Even though I have both of them disabled, when I leave the box, the output turns off. My tv shows a blue screen until i hit a keyboard command, so the tv switches to a black screen. XBMC software is still frozen, but the screensaver / power savings is still working, even though I'm pretty sure I disabled them.
Reply
#6
saw someone looking for some evidence in the dmesg, so I thought I'd post it if it helps anyone diagnose the issue.

http://pastebin.com/6CCRSwj5

main points of interest seem:

[ 17.643389] init: xbmcbuntu-wait (lightdm) main process (1064) killed by TERM signal
[ 17.644642] init: xbmcbuntu-wait (ubiquity) main process (1065) killed by TERM signal

but I'm just guessing
Reply
#7
is it possible that ubuntu is actually going to sleep and not XBMC?

for further clarification, my movie collection is hosted on a separate computer, and mounted to the local machine via NFS. It is the same setup and mounts that I had set up when I was Running Dharma Live.
Reply
#8
(2012-06-11, 01:14)tjpoe Wrote: is it possible that ubuntu is actually going to sleep and not XBMC?

for further clarification, my movie collection is hosted on a separate computer, and mounted to the local machine via NFS. It is the same setup and mounts that I had set up when I was Running Dharma Live.

That thought occured to me, but it shouldnt during startup and it definitely shouldnt during a movie playing.

Is the rest of the system is responsive though when XBMC is frozen?
Reply
#9
Yes: I am able to SSH into the machine, run any command line tool, look at top, processlist, check stack trace, anything I've tried has worked.

Even if Ubuntu were going to sleep, wouldn't using a physical keyboard wake it up no matter what? XBMC wouldn't even notice a keypress without the OS passing it through right?

another interesting point: Yesterday one of the times I rebooted it, the library didn't load. Maybe a network hiccup, maybe my mysql server was temp down or something. I left the HTPC at that screen for several hours and when I came back it WASN'T frozen. I manually navigated thru the file browser to a show I wanted to watch. Afterwards, it froze again. This is new behavior. Before even loading XBMC and leaving it at the home menu resulted in a freeze. This leads me to believe it has something to do with either the MYSQL connection, or the NFS connection to the movies. I am going to try to disable the MYSQL connection tonight and see if there is any difference.
Reply
#10
did some additional testing tonight. The freeze comes right when I change my TV's input back to the XBMC input. I have verified this by opening an strace: http://pastebin.com/6xvm6up7 and then cycling thru the inputs. Right when I get back to the XBMC input, the strace stops. Strangely, when I detach the strace and reattach, i see something different than the end of the previous strace, but that my just have something to do with how strace works. reattached strace output is:

restart_syscall(<... resuming interrupted call ...>

which is the same as it was before.

My TV is connected to the MacMini via a DVI => HDMI cable, and the audio is connected via 3.5mm to RCA input on the TV.

I'll cycle thru some settings on the TV and maybe do some research on that?
Reply
#11
can't find any settings on my tv that are relevant. was able to replicate 100%. as soon as the tv goes to the XBMC input, the xbmc process hangs (as seen thru strace).

The strace element I can see that isn't like the others is: futex(0x5b45acc, FUTEX_WAKE_PRIVATE, 1) = 1, which seems like it could be some type of "wake" command being sent thru the hdmi cable that xbmc doesn't know how to handle.

Anyone have any ideas how to remedy?
Reply
#12
when the tv is on the other inputs, i'm still able to control xbmc. I can move around in the menu as can be seen when I go back to the XBMC input, so I can verify that the freeze doesn't happen until it goes back to the XBMC input.

going to try disconnecting the NFS mounts and MYSQL connection and see if that makes a difference.
Reply
#13
disconnected the NFS mounts and shut down my mysql server, yet behavior continues, so it isn't any external items.

It does look like the stack trace sort of hiccups right when the display is changed back to XBMC. I don't know for sure, but it seems to be right around here:


poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLOUT}])
writev(9, [{"\210\10\10\0\17\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 32}, {NULL, 0}, {"", 0}], 3) = 32
poll([{fd=9, events=POLLIN}], 1, -1) = 1 ([{fd=9, revents=POLLIN}])
read(9, "J9\236k\1\0\0\0\17\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 96
read(9, 0x984a270, 4096) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {289, 718679943}) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 718783308}) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 718847283}) = 0
poll([{fd=11, events=POLLIN}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {289, 719001073}) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 719101924}) = 0
gettimeofday({1339478219, 935758}, NULL) = 0
clock_gettime(CLOCK_REALTIME, {1339478219, 935821183}) = 0
futex(0x8e2f360, FUTEX_WAKE_PRIVATE, 1) = 0
poll([{fd=16, events=POLLIN}], 1, 0) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {289, 719513848}) = 0
time(NULL) = 1339478219
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "cpu 8895 0 3525 14027 2348 0 17"..., 1024) = 1024
time(NULL) = 1339478219
clock_gettime(CLOCK_MONOTONIC, {289, 720067829}) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 720131245}) = 0
read(7, 0x97f94d8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(8, [7], NULL, NULL, {0, 0}) = 0 (Timeout)
time(NULL) = 1339478219
time(NULL) = 1339478219
time(NULL) = 1339478219
time(NULL) = 1339478219
time(NULL) = 1339478219
clock_gettime(CLOCK_MONOTONIC, {289, 725947980}) = 0
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLOUT}])
writev(9, [{"\210\7\7\0\17\0\200\0\2\0\0\0\1\0\0\0 \0\0\0\t\0\0\0 \0\0\0", 28}, {NULL, 0}, {"", 0}], 3) = 28
poll([{fd=9, events=POLLIN}], 1, -1) = 1 ([{fd=9, revents=POLLIN}])
read(9, "\1\0\237k\n\0\0\0\200\7\0\0008\4\0\0\2\0\0\0\340\376\2\t\0\0\0\0\3\0\0\0"..., 4096) = 72
read(9, 0x984a270, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(9, 0x984a270, 4096) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(15, 0xc010640b, 0xbfac3e94) = 0
ioctl(15, 0xc00c6462, 0xbfac3ea4) = 0
ioctl(15, 0x400c645f, 0xbfac3f64) = 0
ioctl(15, 0xc0086457, 0xbfac3948) = 0
ioctl(15, 0xc00c6466, 0xbfac3944) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 730561835}) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 730749568}) = 0
read(9, 0x984a270, 4096) = -1 EAGAIN (Resource temporarily unavailable)
read(9, 0x984a270, 4096) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(15, 0x4020645d, 0xbfac3f90) = 0
ioctl(15, 0x4020645d, 0xbfac3fb0) = 0
ioctl(15, 0x40406469, 0xbfac3f80) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 733937613}) = 0
ioctl(15, 0x40086409, 0xbfac3f18) = 0
ioctl(15, 0xc00c6466, 0xbfac3ec4) = 0
ioctl(15, 0xc00c6466, 0xbfac3f14) = 0
ioctl(15, 0x40086409, 0xbfac3f68) = 0
munmap(0xb4e000, 4096) = 0
ioctl(15, 0x40086409, 0xbfac3f68) = 0
ioctl(15, 0x40086409, 0xbfac3f68) = 0
ioctl(15, 0x40086409, 0xbfac3f68) = 0
ioctl(15, 0xc0086457, 0xbfac3f58) = 0
ioctl(15, 0xc00c6466, 0xbfac3f54) = 0
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLOUT}])
writev(9, [{"\210\10\10\0\17\0\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 32}, {NULL, 0}, {"", 0}], 3) = 32
poll([{fd=9, events=POLLIN}], 1, -1) = 1 ([{fd=9, revents=POLLIN}])
read(9, "K\0\240k\17\0\200\0\0\0\0\0<1\24\0\0\0\0\0\0\0\0\0CA\0\1\313\320\326O"..., 4096) = 64
read(9, 0x984a270, 4096) = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {289, 737235449}) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 737411170}) = 0
time(NULL) = 1339478219
clock_gettime(CLOCK_MONOTONIC, {289, 737663925}) = 0
clock_gettime(CLOCK_MONOTONIC, {289, 737787475}) = 0
read(7, 0x97f94d8, 4096) = -1 EAGAIN (Resource temporarily unavailable)
select(8, [7], NULL, NULL, {0, 0}) = 0 (Timeout)
time(NULL) = 1339478219
time(NULL) = 1339478219
time(NULL) = 1339478219
time(NULL) = 1339478219
time(NULL) = 1339478219
clock_gettime(CLOCK_MONOTONIC, {289, 740627222}) = 0
poll([{fd=9, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=9, revents=POLLOUT}])
writev(9, [{"\210\7\7\0\17\0\200\0\2\0\0\0\1\0\0\0 \0\0\0\t\0\0\0 \0\0\0", 28}, {NULL, 0}, {"", 0}], 3) = 28
poll([{fd=9, events=POLLIN}], 1, -1^C <unfinished ...>


Reply
#14
I tailed dmesg, syslog, kern.log and Xorg.0.log while I cycled inputs.

as soon as I went off of the xbmc input, i got this:

[ 357.675] (WW) intel(0): Page flip failed: Device or resource busy
[ 357.691] (WW) intel(0): flip queue failed: Device or resource busy
[ 357.691] (WW) intel(0): Page flip failed: Device or resource busy
[ 357.692] (WW) intel(0): flip queue failed: Device or resource busy
[ 357.692] (WW) intel(0): Page flip failed: Device or resource busy

over and over.

when I got back to XBMC input i got this:

[ 359.228] (II) intel(0): EDID vendor "VIZ", prod id 87
[ 359.228] (II) intel(0): Using hsync ranges from config file
[ 359.228] (II) intel(0): Using vrefresh ranges from config file
[ 359.228] (II) intel(0): Printing DDC gathered Modelines:
[ 359.228] (II) intel(0): Modeline "1920x1080"x0.0 148.50 1920 2008 2052 2200 1080 1085 1090 1125 +hsync +vsync (67.5 kHz)
[ 359.228] (II) intel(0): Modeline "1280x720"x0.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync (45.0 kHz)
[ 359.228] (II) intel(0): Modeline "1920x1080i"x0.0 74.25 1920 2448 2492 2640 1080 1084 1094 1125 interlace +hsync +vsync (28.1 kHz)
[ 359.228] (II) intel(0): Modeline "720x480"x0.0 27.00 720 736 798 858 480 489 495 525 -hsync -vsync (31.5 kHz)
[ 359.228] (II) intel(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz)
[ 359.228] (II) intel(0): Modeline "800x600"x0.0 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz)
[ 359.228] (II) intel(0): Modeline "640x480"x0.0 31.50 640 656 720 840 480 481 484 500 -hsync -vsync (37.5 kHz)
[ 359.228] (II) intel(0): Modeline "640x480"x0.0 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz)
[ 359.228] (II) intel(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz)
[ 359.228] (II) intel(0): Modeline "1024x768"x0.0 78.75 1024 1040 1136 1312 768 769 772 800 +hsync +vsync (60.0 kHz)
[ 359.228] (II) intel(0): Modeline "1024x768"x0.0 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync (56.5 kHz)
[ 359.228] (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz)
[ 359.228] (II) intel(0): Modeline "800x600"x0.0 49.50 800 816 896 1056 600 601 604 625 +hsync +vsync (46.9 kHz)
[ 359.229] (II) intel(0): Modeline "800x600"x0.0 50.00 800 856 976 1040 600 637 643 666 +hsync +vsync (48.1 kHz)
[ 359.229] (II) intel(0): Modeline "1920x1080"x0.0 74.25 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync (27.0 kHz)
[ 359.229] (II) intel(0): Modeline "1920x1080i"x0.0 74.25 1920 2008 2052 2200 1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz)
[ 359.229] (II) intel(0): Modeline "720x576"x0.0 27.00 720 732 796 864 576 581 586 625 -hsync -vsync (31.2 kHz)
[ 359.229] (II) intel(0): Modeline "1440x480i"x0.0 27.00 1440 1478 1602 1716 480 488 494 525 interlace -hsync -vsync (15.7 kHz)
[ 359.229] (II) intel(0): Modeline "1280x720"x0.0 74.25 1280 1720 1760 1980 720 725 730 750 +hsync +vsync (37.5 kHz)
[ 359.229] (II) intel(0): Modeline "1440x576i"x0.0 27.00 1440 1464 1590 1728 576 580 586 625 interlace -hsync -vsync (15.6 kHz)
[ 359.229] (II) intel(0): Modeline "1920x1080"x0.0 74.25 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync (28.1 kHz)

which is the same as the initialization. Seems like the problem may be related to that repeating error.

I found this: https://bugs.launchpad.net/ubuntu/+sourc...bug/737602 which indicates it is a bug in the display adapter but I can't figure out how to fix it.
Reply
#15
found this: https://launchpad.net/~callegar/+archive/xorg/+packages which looks like it disables the page flipping, but it isn't available for oneiric.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMCbuntu freezes1