Solved Addon Video on Gotham Alpha 14
#1
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=Aud...C_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:

Image

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.
Reply
#2
Crashlog attached:
http://pastebin.com/5C48pvHV
Reply
#3
K, another chance.

GNU Debugger full backtrace attached:
http://pastebin.com/eADmTyqs
Reply
#4
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.
Reply
#5
it shouldn't crash but folder and id *must* match.
Reply
#6
(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 *
Reply
#7
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)
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
#8
Commit 275d755a8b fixes it. Thanks heaps for the report!
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
@jmarshall

Thank you man, you are my hero ^^

Have a great day.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Addon Video on Gotham Alpha 1400
This forum uses Lukasz Tkacz MyBB addons.