Thread Safe get / set Setting?
#1
Hi, I'm currently experimenting with using the Addon settings object as a simple download queue for the youtube plugin. This usually involves multiple python interpreters calling getSetting() and setSetting() at different times as different threads add and consume videos. Relevant code can be seen here:

http://code.google.com/p/youtubexbmc/sou...nloader.py
and
http://code.google.com/p/youtubexbmc/sou...Storage.py

But queuing multiple files rapidly while a download is running causes XBMC to freeze, is this by design?

Regards HenrikDK
Reply
#2
The python side will be threadsafe I should think.

Does the debug log have anything useful (or a crash 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
jmarshall Wrote:The python side will be threadsafe I should think.

Does the debug log have anything useful (or a crash log?)

I didn't have xbmc's debug enabled at the time so im afraid my log probably isn't that helpful.

http://pastebin.com/XbLguRDb

It basically just ends with xbmc trying to start another python interpreter which is where it froze. I am a bit puzzeled to what the:
Code:
01:23:30 T:2697282880 M:733523968   ERROR: ClearBlock: Trying to clear non existent block /Users/henrik/Library/Application Support/XBMC/addons/plugin.video.youtube.beta
messages mean and if they're telling me something important.

In any case I'll see if I can't generate a better set of logs later today.
Reply

Logout Mark Read Team Forum Stats Members Help
Thread Safe get / set Setting?0