accessing FsCandidate.ip crashes

Olivier CrĂȘte olivier.crete at collabora.com
Wed Aug 19 13:19:27 PDT 2015


Hi,

I think you're hitting a pygobject bug, I added
FsStream.parse_new_local_candidate(message) exactly for that, it should
return a correct boxed object.

Olivier

On Wed, 2015-08-19 at 22:11 +0200, Yann Leboulanger wrote:
> Hi,
> 
> While trying to have a farstream working from my python app, I'm
> facing
> a crash. I debugged to see where it comes from, and found that:
> 
> I have a callback attached to the 'message' signal:
>     self.pipeline = Gst.Pipeline()
>     bus = self.pipeline.get_bus()
>     bus.add_signal_watch()
>     bus.connect('message', self._on_gst_message)
> 
> In this callback, if message.type is Gst.MessageType.ELEMENT and name
> (message.get_structure().get_name()) is 'farstream-new-local
> -candidate',
> I get the candidate with
> candidate = message.get_structure().get_value('candidate').copy()
> 
> and just here, if I try to get the ip with
> print(candidate.ip), I have this error printed in console and my
> application is killed:
> **
> ERROR:../../gi/pygi-argument.c:1586:_pygi_argument_to_object: code
> should not be reached
> Aborted
> 
> If I try to get the port or any other int, it works. If I try to get
> any
> other gchar* it crashes the same way.
> 
> Is there something wrong I do?
> 
> Thanks for your help,
-- 
Olivier CrĂȘte
olivier.crete at collabora.com




More information about the Farstream-devel mailing list