[LINUX] Takes forever to load a movie and sometimes it fails randomly
#1
Hi, i've been using XBMC for over a year without a single hiccup, but recently it started to act strangely.

As the title says, it sometimes now chooses to take forever to load certain movies and some of those time it even fails. This all happens at random, because some other times it runs those movies very smoothely.

I'm running XBMC 10.6 on archlinux 64bit.

This is the log of my latest attempt to load a movie at which it took over 5 minutes to load, consuming almost 100% of the CPU time and I had to kill it from the terminal:

http://codepad.org/gGZvLKDd

Just to clarify, XBMC does not hang, it simply just takes too long to load certain video files at random, with the loading indicator showing and all, and consuming 100% of my CPU cycles in the way.
Reply
#2
Can you enable debug logging then restart XBMC and attempt to play the file again. Also please wait for the file to start playing so the log shows what happened when the file eventually started.

JR
Reply
#3
Okay, I did just that. Here's the log:
http://codepad.org/Y2oVrPFc

I was playing the file "/media/Jupiter/Movies/Conviction 2010 720p BRRip H264 AAC-GreatMagician (Kingdom-Release)/Conviction.mp4"

I also realized that xbmc wasn't actually eating my CPU cycles, but it was slowing down my whole system to a halt still. The file took about 4-5 minutes to load, then I quit XBMC normally which itself took like 2 minutes to execute.
Reply
#4
It looks as though not all your log got copied. I see XBMC playing intro.m4v (presumably part of the skin) but then the log stops abruptly. There's certainly no mention of playing Conviction.mp4.

Is this the PVR build? If so I'll help if I can, but I've never used the PVR builds.

JR
Reply
#5
Oh, crap! Sorry. Here it is again http://pastebin.com/89sp1DCx

Yes, the m4v file is part of the skin. And I'm using the official package from the archlinux x86_64 repo.
Reply
#6
That log seems to show you going into the system settings, but not playing Conviction.mp4. Simply searching it for "Conviction" finds nothing.

JR
Reply
#7
I don't know where my head is today! I must've uploaded the wrong log.

I tried to recreate the situation but loading the exact same movie file with everything the same way it was before took only 10 seconds. I tried again and it took about a minute and a half. I also tried another movie and it also took a minute and a half.

Here are my logs:
http://pastebin.com/sdmAg0Lr
http://pastebin.com/CM1UkyZ2

In the two times, I tried quitting through the regular menu after the movie started playing but XBMC locked up and I had to kill it from another terminal, that's why the logs end up abruptly.
Reply
#8
I've seen this issue happen to me multiple times, when I am trying to load a movie it can take upto 20 seconds to play, or report too many consecutive playback failures or something. I have messed around with permissions on my NAS for hours, in the en the only solution was purging XBMC from Linux, and reinstalling.

I think at some point, probably due to upgrading/rolling-back, the DB and/or settings get into a funky state. Just start fresh and I think you should be good, killer is it looses all your DB stats (you could try exporting and importing themHuh)
Reply
#9
I exported my video library, deleted my ~/.xbmc folder and started fresh, imported everything from the xml files and I still got the overall sluggish feeling and the 1-ish minute movie startup times. I also tried changing to the default Confluence skin and it didn't affect it.

What should I do now? :/
Reply
#10
Hmm, I note in both logs XBMC is trying and failing to analyse /media/Jupiter/Movies/The.Lord.of.the.Rings.The.Fellowship.of.the.Ring.2001.EXTENDED.720p.BluRay.X264-AMIABLE/LOTR.The.Fellowship.of.the.Ring.2001.EXTENDED.720p.BluRay.X264-AMIABLE.mkv. Try temporarily removing this file and see if it makes a difference.

JR
Reply
#11
Oh my!! That actually worked!! I just removed the corrupted files and everything went back to being instantaneous, movies open in milliseconds and no more sluggishness.

I feel like this is a bug of some sort.

Anyway, thanks everyone for helping. I really appreciate it.
Reply
#12
My issue was resolved by modifying my file structure - http://forum.xbmc.org/showthread.php?tid=187693
Reply
#13
Im not sure whats more pointless Wink, that you replied to a 3 year old thread

or

That its no longer relevant since it was already a resolved subject

or

That the OP's last visit to forums was 2 years ago.

or

XBMC has changed radically in the way it behaves and operates since this was at all an issue so making then now more irrelevant.

You won a prize for resurrecting something that is not as immortal as your nickname may suggest. Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] Takes forever to load a movie and sometimes it fails randomly0