Re: [pygtk] PyGTK+Thread problem (program freezes)

2003-08-14 Thread Christian Reis
On Thu, Aug 07, 2003 at 09:22:45AM -0700, [EMAIL PROTECTED] wrote:
 We were working with Red Hat 8 and 9.  We noticed that PyGTK
 on Red Hat 8 (pygtk2-1.99.12) has threads turned off.  Red Hat 9
 does NOT have it turned off.  We wondered if this was because it
 is common knowledge PyGTK threads were unstable until recently.

That's quite true. A lot of good work went in very recently (I see a
number of people with their hands raised, and yeah, a lot of the code
and testing was contributed -- thanks folks)

 Even in Red Hat 9 we tried using idle/timeout handlers and
 moving all PyGTK commands to main thread/process but it
 still had problems.

But I surmise it was better than with RH8's version?

 We finally gave up assuming PyGTK thread support was not
 that mature yet.  This does not mean Python threads or GTK+ are not
 mature technologies but just the glue (PyGTK threads support) that
 seems immature.

Well, in fact there's some pretty complicated interaction between Python
threading support (and the Python GIL) and threading in C modules. PyGTK
is on the more complex end of the problem, but I do believe the recently
released version (1.99.17) is much better.

 I could be wrong but that was where we left the project.  We moved
 to PyGTK with forks and execs and now all is stable after abandoning
 threads.

Sounds good enough. If you have the time, give 1.99.17 (or CVS HEAD,
which is even better) a spin and let us know if it worked out.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


RE: [pygtk] PyGTK+Thread problem (program freezes)

2003-08-14 Thread Joe Shaw
On Thu, 2003-08-07 at 12:22, [EMAIL PROTECTED] wrote:
 I verified this by trying to write a PyGTK GUI in Red Hat 8 myself
 and it would freeze until I removed the GUI stuff.

The threading implementation that comes stock with Red Hat 8 has issues,
and threaded apps seem to hang pretty regularly with it.  Red Hat issued
an errata to fix it, and with our threaded app we require the glibc
errata as a packaging dependency to avoid the problems.

As far as the rest of your email goes, the threading support in pygtk
has come a long way since 1.99.14 or .15.  I haven't seen any problems
with it in a long while, and our app is a fairly complex threaded one
(about 15k lines of python, another 1500 lines of C).

Joe

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


RE: [pygtk] PyGTK+Thread problem (program freezes)

2003-08-14 Thread chris
Christian

Thanks for the email.  (We have the same 1st name!)..

We were working with Red Hat 8 and 9.  We noticed that PyGTK
on Red Hat 8 (pygtk2-1.99.12) has threads turned off.  Red Hat 9
does NOT have it turned off.  We wondered if this was because it
is common knowledge PyGTK threads were unstable until recently.

I verified this by trying to write a PyGTK GUI in Red Hat 8 myself
and it would freeze until I removed the GUI stuff.

Even in Red Hat 9 we tried using idle/timeout handlers and
moving all PyGTK commands to main thread/process but it
still had problems.

We finally gave up assuming PyGTK thread support was not
that mature yet.  This does not mean Python threads or GTK+ are not
mature technologies but just the glue (PyGTK threads support) that
seems immature.

I could be wrong but that was where we left the project.  We moved
to PyGTK with forks and execs and now all is stable after abandoning
threads.

Chris



  Original Message 
 Subject: Re: [pygtk] PyGTK+Thread problem (program freezes)
 From: Christian Reis [EMAIL PROTECTED]
 Date: Wed, August 06, 2003 7:18 pm
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 
 On Thu, Jul 31, 2003 at 03:50:03PM -0700, [EMAIL PROTECTED] wrote:
  It would seem that the problem are with these two commands but
  we cannot seem to find the problem.  As you know, threads
  are not the easiest things to debug.
  
  We are wondering if Python threads are unstable.
  Are they??
 
 What version of PyGTK is this? Recent threading fixes have improved
 the
 threading situation a *lot*, but there might be some leftovers..
 
 Take care,
 --
 Christian Reis, Senior Engineer, Async Open Source, Brazil.
 http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] PyGTK+Thread problem (program freezes)

2003-08-07 Thread Christian Reis
On Thu, Jul 31, 2003 at 03:50:03PM -0700, [EMAIL PROTECTED] wrote:
 It would seem that the problem are with these two commands but
 we cannot seem to find the problem.  As you know, threads
 are not the easiest things to debug.
 
 We are wondering if Python threads are unstable.
 Are they??

What version of PyGTK is this? Recent threading fixes have improved the
threading situation a *lot*, but there might be some leftovers..

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/