OV stops responding in python script

Making & changing box plugins and external apps
Post Reply
jtlindgren
Posts: 775
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: OV stops responding in python script

Post by jtlindgren »

Hi Oettam,

one suspicious thing I see is that you're calling init from process(). This likely shouldn't be done.

To debug this, what I'd do is that I'd take the hello world example script

Code: Select all

class MyOVBox(OVBox):
        def __init__(self):
                OVBox.__init__(self)

        def initialize(self):
                # nop
                return

        def process(self):
                # print something
                print("hello")

        def uninitialize(self):
                # nop
                return

box = MyOVBox()
and check that it runs properly. Then, line by line, start modifying it towards your script and see where the problem appears for the first time.


Happy hacking,
Jussi

Post Reply