Solved Addon Video on Gotham Alpha 14 - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Solved Addon Video on Gotham Alpha 14 (/showthread.php?tid=199390) |
Addon Video on Gotham Alpha 14 - slack3r - 2014-07-06 Hi all. I'm making my first XBMC addon/plugin for personal use, but I'm getting some trouble with last Alpha 14. The addon is very simple: it pick up a video url and play it. The python code is like this: http://wiki.xbmc.org/index.php?title=Audio/Video_plugin_tutorial#Hello.2C_World.21 My text editor is Geany v.0.21. The addon works fine on Gotham stable and Frodo, but when running via context menu in Alpha 14, xbmc crashes with segfault signal 11. I did a screenshot: Same thing happens on raspberry - running last Milhouse openelec build. So, the problem is my addon - others work fine. The addon structure is: - addon.py - http://pastebin.com/1aNjQLcU - addon.xml - http://pastebin.com/qx3chWAP - changelog.txt There is no icon and fanart images. Where am I wrong? Despite my English, can someone help me? What do you need? Thanks in advance. Regards. RE: Addon Video on Gotham Alpha 14 - slack3r - 2014-07-08 Crashlog attached: http://pastebin.com/5C48pvHV RE: Addon Video on Gotham Alpha 14 - slack3r - 2014-07-10 K, another chance. GNU Debugger full backtrace attached: http://pastebin.com/eADmTyqs RE: Addon Video on Gotham Alpha 14 - slack3r - 2014-07-11 I've found where is the problem (I guess): the "Launch addon" item in Alpha 14 seems to work only with known addons. I did a clean install and: Code: cp -ivR plugin.video.myplugin ~/.xbmc/addons/plugin.video.popcorntv So, in addon.xml I've changed <addon id="plugin.video.myplugin" to <addon id="plugin.video.popcorntv". It works fine, no more crashes. It's a bug/feature or am I going crazy? Try it yourself. RE: Addon Video on Gotham Alpha 14 - ironic_monkey - 2014-07-11 it shouldn't crash but folder and id *must* match. RE: Addon Video on Gotham Alpha 14 - slack3r - 2014-07-11 (2014-07-11, 17:49)ironic_monkey Wrote: it shouldn't crash but folder and id *must* match. They match. Take a look: - scenario 1 - folder name = "plugin.video.myaddon" addon id = "plugin.video.myaddon" xbmc --> Videos --> Add-ons --> my_addon --> Add-on Information --> Launch ==> * Crash * - scenario 2 - ~/.xbmc folder cleaned; same python code; But: folder name = "plugin.video.popcorntv" - or 'plugin.video.youtube' addon id = "plugin.video.popcorntv" - or 'plugin.video.youtube' xbmc --> Videos --> Add-ons --> my_addon --> Add-on Information --> Launch ==> * Does NOT crash * RE: Addon Video on Gotham Alpha 14 - jmarshall - 2014-07-13 You've got a NULL ptr there. Looks like it's likely the commit you referenced - will take a look. (The difference is whether or not the add-on is in XBMCs addon folder, or in the userdata addons folder) EDIT: Rather, the difference is whether or not the add-on is available in a repository, or in the database in some form (e.g. if marked as disabled at some point) RE: Addon Video on Gotham Alpha 14 - jmarshall - 2014-07-13 Commit 275d755a8b fixes it. Thanks heaps for the report! RE: Addon Video on Gotham Alpha 14 - slack3r - 2014-07-13 @jmarshall Thank you man, you are my hero ^^ Have a great day. |