XBMC freezes when request large library over HTTP API
#1
Hi.
Just like the topic says XBMC freezes for about 4 minutes when request a large music Library over http api.

//Cheers StarChild

XBMC r23858
Windows 7 64bit
Reply
#2
Debug Log
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
Reply
#3
Debug log:
http://pastebin.ca/1634841

XBMC pre-9.10 r23858
//StarChild
Reply
#4
Do the identical query in any other sqlite browser (eg sqlitespy) and see how long it takes.
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
Reply
#5
SELECT a.idAlbum, a.strAlbum, i.strArtist, a.iYear, ( SELECT p.strPath FROM song AS s, path AS p WHERE s.idPath = p.idPath AND s.idAlbum = a.idAlbum LIMIT 1 ) FROM album AS a, artist AS i WHERE a.idArtist = i.idArtist ORDER BY i.strArtist ASC :
13698 rows fetched (280,51 sec)
Reply
#6
There ya go then. Nothing much we can do about it if it takes 4 minutes to execute, huh?

I'm sure you can optimize your query significantly.

Cheers,
Jonathan
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
Reply
#7
But XBMC shouldn't freeze, while it does this?
Reply
#8
That's the way it works. For very good reasons, all HTTPAPI calls are processed in the main thread, as they often affect things that need to maintain state for rendering and other access.

A patch to rip out the HTTPAPI and replace it with something a little more sane would be welcome.

Cheers,
Jonathan
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
Reply
#9
Ok, thank you for your time.

About the patch i wish i could help more.

//Best regards StarChild
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC freezes when request large library over HTTP API0