Re: gtk-timeout-add function stalling

Andy Wingo <[email protected]> Sun, 10 Jan 2010 23:00:25 +0100
Newsgroups gmane.lisp.guile.gtk
Message-ID <[email protected]>
Hi Paul,

On Sun 10 Jan 2010 15:52, Paul Emsley <[email protected]> writes:

> I am trying to update a progress bar that is downloading a file using
> libcurl in a thread.  I am doing that by adding a timeout function that
> every fraction of a second or so queries the status of the download
> (curl-progress-info).  However, after a number of rounds (somewhere
> between 100 or 250) the timeout function seems to hang - even partway
> through writing a debugging text. (The thread downloading the file
> continues.)  Why does the timeout function stalling?

Can you attach to the process in GDB and post a backtrace?

$ gdb /path/to/guile PID-OF-PROCESS

Then at the prompt:

thread apply all bt

Thanks,

Andy
-- 
http://wingolog.org/