[Qt-interest] QNetworkAccessManager does not work in multi-threaded apps on N900

Jochen Becher jochen_becher at gmx.de
Mon Nov 1 23:19:33 CET 2010


Hi,

I attached a minimal program that shows the problem why MovieSchedule
fails with new Qt 4.7.0 on N900.

If one builds and deploys the attached program with Qt Creator (I am
using an actual 2.0.93 snapshot) the programs "hangs" or is very slow -
at least on my N900.

In mainwindow.cpp line 90 is the key statement: the network access is
done from within a QObject which is moved to another thread. If you
disable that line the network access will be done in the main thread and
everything is fine. As soon as the network access is done from a
different thread the program fails. The first network request is still
o.k. but the second and all later requests will be very slow or even
crash.

If I run the program on my Ubuntu 10.04 desktop everything is fine. Also
if I run it from scratchbox/X86 it is fine.

Could someone please reproduce this issue before I file a bug report?
(Possibly I did something horrible wrong with that example...)

Regards, Jochen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: netmgr-test.tar.gz
Type: application/x-compressed-tar
Size: 14021 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101101/39fad9c0/attachment.bin 


More information about the Qt-interest-old mailing list