KIO::PreviewJob pixmaps + Qt4.5 crashes

Hans Meine hans_meine at gmx.net
Wed Mar 18 09:13:50 GMT 2009


On Sunday 15 March 2009 14:16:18 Aleix Pol wrote:
> On Fri, Mar 13, 2009 at 8:57 PM, Aleix Pol <aleixpol at kde.org> wrote:
> > On Fri, Mar 13, 2009 at 5:51 PM, Hans Meine <hans_meine at gmx.net> wrote:
> >> Exactly, Maskim (and I) pointed out that there *is* no copy.
> >> AFAICS, it would be enough to detach the QImage, alas detach() is
> >> internal.
> >> How about
> >>
> >> QImage* i = new QImage((const QRgb *)data, w, h,
> >> QImage::Format_ARGB32_Premultiplied);
> >> (void)i.bits(); // detach from data
> >>
> >> [...]
> >
> > Is there a way to make sure what graphicssystem is being used?
> > I haven't asked for raster at any moment...
> >
> > I only want it to work :S
> >
> > Plus we should warn the user the usage of raster.
> > [...]
>
> Ok, so i recompiled Qt and now it works, i suppose I had my installation
> kind of messed (and this made Qt run with raster, which i don't get why).
>
> But of course, KIO::PreviewJob is still broken with raster which, even if
> it doesn't really bother me, makes me wonder what will be the bug behaviour
> on other platforms...

Did you try the workaround I suggested?  It is not very pretty, but it should 
fix the crash AFAICS.

Greetings,
  Hans




More information about the kde-core-devel mailing list