Kodi Community Forum

Full Version: XBMC crash on addon with mutiple endpoints
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When having an addon with both xbmc.python.pluginsource and xbmc.addon.repository endpoints, depending on the order, XBMC crashes, or the addon never updates.

Tested on 13.2, 14.0 Helix Alpha 4 on Windows, Mac and Linux ARM.

First case, XBMC sees the update, but doesn't download it:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.myaddon" name="MyAddon" version="0.1.0" provider-name="steeve">
    <requires>
        <import addon="xbmc.python" version="2.1.0"/>
    </requires>
    <extension point="xbmc.python.pluginsource" library="default.py">
        <provides>video</provides>
    </extension>
    <extension point="xbmc.addon.repository" name="Pulsar Repository">
        <info compressed="false">ADDONS_XML_URL</info>
        <checksum>ADDONS_XML_URL_HASH</checksum>
        <datadir zip="true">FILES_URL</datadir>
    </extension>
    <extension point="xbmc.addon.metadata">
        <platform>all</platform>
        <language>en</language>
    </extension>
</addon>

Second case, XBMC sees and downloads the update, but when going in the addon, XBMC crashes:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.myaddon" name="MyAddon" version="0.1.0" provider-name="steeve">
    <requires>
        <import addon="xbmc.python" version="2.1.0"/>
    </requires>
    <extension point="xbmc.addon.repository" name="Pulsar Repository">
        <info compressed="false">ADDONS_XML_URL</info>
        <checksum>ADDONS_XML_URL_HASH</checksum>
        <datadir zip="true">FILES_URL</datadir>
    </extension>
    <extension point="xbmc.python.pluginsource" library="default.py">
        <provides>video</provides>
    </extension>
    <extension point="xbmc.addon.metadata">
        <platform>all</platform>
        <language>en</language>
    </extension>
</addon>
That is probably because those are not intended to be used in the same add-on.
What are you trying to accomplish ?
more addons actually do this (none in our repo though)

that way you integrate the repo itself into the plugin so it can auto update itself.

fact is that it shouldn't crash of course Smile
that it doesn't work for the update is not really an issue as we don't officially support multiple extensions (except video/audio/pictures plugin)

could you provide a crashlog on pastebin.com for linux (as most devs here use that)?
Sure thing, will do Smile

The "embedded repo" thing is even documented here:
http://kodi.wiki/view/HOW-TO:Create_a_Re...itory_file

Here is the pastebin of the xbmc.log after crash, debug on, everything enabled

http://pastebin.com/P6de3pJC
hey guys, any update?
can you create a trac ticket including the crashlog attached?
trac.xbmc.org
Of course, will do