Clutter GST crash with Python



Hi,

I just updated from Ubuntu 12.04 (clutter-gst-1.0-0 version
1.5.4-0ubuntu2 and gir1.2-clutter-gst-1.0 version 1.5.4-0ubuntu2) to
Ubuntu 12.10 (libclutter-gst-2.0-0 version 1.9.92-1 and
gir1.2-clutter-gst-2.0 version 1.9.92-1) and the Freevo video player
crashes on startup.

I traced the problem to
self.videotexture.get_pipeline().get_state(0)

/usr/lib/python2.7/dist-packages/gi/types.py:47: Warning: g_object_get:
assertion `G_IS_OBJECT (object)' failed
  return info.invoke(*args, **kwargs)
/usr/lib/python2.7/dist-packages/gi/types.py:47: Warning: g_object_set:
assertion `G_IS_OBJECT (object)' failed
  return info.invoke(*args, **kwargs)

(python:19451): GStreamer-CRITICAL **: gst_element_set_state: assertion
`GST_IS_ELEMENT (element)' failed
/usr/lib/python2.7/dist-packages/gi/types.py:47: Warning:
g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed
  return info.invoke(*args, **kwargs)

When I change the code to
self.pipeline = self.videotexture.get_pipeline()
self.pipeline.get_state(0)

it works until self is deleted due to garbage collection. May guess is
some memory management problem and a missing ref() call but I have no
idea how gi works internally. But since it is a generic wrapper the
problem should also crash other languages such as Ruby.

Any idea how I could fix it or any idea what is wrong? I can provide
more data if needed, just tell me what you need.


Regards,

Dirk

-- 
What happens if a big asteroid hits the Earth? Judging from realistic
simulations involving a sledge hammer and a common laboratory frog, we
can assume it will be pretty bad.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]