Kodi Community Forum
Crash since Frodo Beta 3 when calling xbmc.log() from Python - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Crash since Frodo Beta 3 when calling xbmc.log() from Python (/showthread.php?tid=148120)



Crash since Frodo Beta 3 when calling xbmc.log() from Python - mazkolain - 2012-12-13

Hello everyone,

I'm writing this because since Frodo Beta 3, I'm experiencing crashes on an addon I'm working on.

The addon itself loads a shared library (libspotify) and interfaces to it using the ctypes python module. As said, it ran well on past Frodo releases until beta 3, where it causes a crash on startup (also tested on rc1 with the same results). I believe that there's nothing wrong with the addon, and that the crash it's probably caused by some change introduced on the Beta2-Beta3 cycle.

I managed to track down the exact point the addon causes XBMC to crash. It's on a python callback called from c-code through ctypes, and they are called by libspotify for logging purposes. What the python code being called does, is to route the log message provided by libspotify to xbmc.log(). What I discovered is that if I comment out the call to xbmc.log(), XBMC does not crash (and the callback gets executed properly). That's why I believe there's something wrong inside xbmc.log(), because everything is fine as long as I don't hit this api function. If run on Windows XBMC does not crash but produces the following entries on the log file:
Code:
ERROR: EXCEPTION: Unknown exception thrown from the call "XBMCAddon::xbmc::log"

Perhaps I explained too much here and this should be reported on Trac? Should I cc someone in particular?

Here's some additional info:
Thanks in advance,

Mikel


RE: Crash since Frodo Beta 3 when calling xbmc.log() from Python - Montellese - 2012-12-13

Yup sounds like a trac ticket is in order. Please CC jfcarroll as he's the python guru.