Quantcast

appsrc, random crash

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

appsrc, random crash

Jan Martinek-2
Hello,

I made a sinus wave generator (see attachment). It is interactive -
shows an (gtk) entry in which you can type the frequency which is to be
played.

It works, but after some time it crashes without any warning. Is there a
possibility to turn on some debugging messages?

I don't know what to suspect. Timings? Is GTK slow and some callback
takes too much time? Or, data computation takes too long time?
When 'need-data' signal is emitted, how much time do I have to generate
new buffer before whole application crashes?

Thank you,
Jan Martinek

P.S. If you want to try the program, please install "scipy" package.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

sinwave.py (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: appsrc, random crash

Tim-Philipp Müller-2
On Wed, 2009-08-19 at 09:47 +0200, Jan Martinek wrote:

> It works, but after some time it crashes without any warning. Is there a
> possibility to turn on some debugging messages?
>
> I don't know what to suspect. Timings? Is GTK slow and some callback
> takes too much time? Or, data computation takes too long time?
> When 'need-data' signal is emitted, how much time do I have to generate
> new buffer before whole application crashes?

You can set the GST_DEBUG environment variable to get debugging
messages, but that's unlikely to help much. A crash is almost always a
bug; a gdb stack trace of the crash would be a good start to get to the
bottom of this. You have as much time as you want for supplying a new
buffer to appsrc, but if you supply it too late you may stall the
pipeline temporarily or your buffer may be dropped because it's too late
or somesuch. It should never crash just because you didn't do something
fast enough.

 Cheers
  -Tim



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: appsrc, random crash

Wim Taymans
In reply to this post by Jan Martinek-2
On Wed, 2009-08-19 at 09:47 +0200, Jan Martinek wrote:

> Hello,
>
> I made a sinus wave generator (see attachment). It is interactive -
> shows an (gtk) entry in which you can type the frequency which is to be
> played.
>
> It works, but after some time it crashes without any warning. Is there a
> possibility to turn on some debugging messages?
>
> I don't know what to suspect. Timings? Is GTK slow and some callback
> takes too much time? Or, data computation takes too long time?
> When 'need-data' signal is emitted, how much time do I have to generate
> new buffer before whole application crashes?

Do

gobject.threads_init()

before importing gst.

Wim

>
> Thank you,
> Jan Martinek
>
> P.S. If you want to try the program, please install "scipy" package.
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: appsrc, random crash

Jan Martinek-2


On 08/19/2009 10:43 AM, Wim Taymans wrote:

> On Wed, 2009-08-19 at 09:47 +0200, Jan Martinek wrote:
>> Hello,
>>
>> I made a sinus wave generator (see attachment). It is interactive -
>> shows an (gtk) entry in which you can type the frequency which is to be
>> played.
>>
>> It works, but after some time it crashes without any warning. Is there a
>> possibility to turn on some debugging messages?
>>
>> I don't know what to suspect. Timings? Is GTK slow and some callback
>> takes too much time? Or, data computation takes too long time?
>> When 'need-data' signal is emitted, how much time do I have to generate
>> new buffer before whole application crashes?
>
> Do
>
> gobject.threads_init()
>
> before importing gst.
>
> Wim
>

Oh, thank you very much! It is exactly what I needed :-)

Jan Martinek

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Loading...