[PyKDE] Threading problem with PyQt4 and Macosx

Matt Newell newellm at blur.com
Wed Feb 21 23:58:10 GMT 2007


On Wednesday 21 February 2007 14:53, Matt Newell wrote:
> On Wednesday 21 February 2007 14:35, Matt Newell wrote:
> > On Wednesday 21 February 2007 14:23, Michael Guntsche wrote:
> >
> > It locked for me after I created 70 threads.
> >
> > Linux version 2.6.18-3-686 (Debian 2.6.18-7) (waldi at debian.org) (gcc
> > version 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)) #1 SMP Mon Dec 4
> > 16:41:14 UTC 2006
> >
> > qt-4.2.2
> > some sip snapshot from a few months ago
>
> 10 threads seem to run fine without lockups.
>
> If i change the write function to
>     def write(self, data):
>         #self.textEdit2.append(data)
>     	print data
>
>
> it still locks up for me once i get somewhere above 50 threads(seems
> inconsistent).  Possibly a race condition in the python signal sending, or
> even in qt itself?
>
> Matt
>

I wrote a small similar example in c++, and it'll runs fine with 300 
threads(After 379 threads it gives an error trying to create any more).

Matt




More information about the PyQt mailing list