[Qt-interest] Loading QPixmap from file with QtConcurrent causing crash
Thiago Macieira
thiago at kde.org
Mon Jun 13 20:14:28 CEST 2011
Em Monday, 13 de June de 2011, às 17:51:50, Cole, Derek escreveu:
> Oops..thought I provided a backtrace before. I will have to work to recreate
> a self contained example, as I am using non-standard libraries for reading
> the file and getting the image data.
>
> Here is the trace when I try to load 4 instances of these Tiles. All of them
> are reading from the same file, but different locations int he file:
>
> Paint Thread id QThread(0xfadaac0)
> Paint Thread id QThread(0xfadaac0)
> Paint Thread id QThread(0xfadaac0)
> Paint Thread id QThread(0xfadaac0)
> Loading Pixmap
> Loading Pixmap
> Loading Pixmap
> X Error: BadAlloc (insufficient resources for operation) 11
> Major opcode: 53 (X_CreatePixmap)
> Resource id: 0x1e00335
[snip]
This looks like painting from a non-GUI thread. It's not shown in the code you
pasted before, so the problem is probably somewhere else.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110613/5459af99/attachment.bin
More information about the Qt-interest-old
mailing list