[webkit-qt] Painter not active

Ariya Hidayat ariya.hidayat at gmail.com
Fri Nov 5 00:36:02 PDT 2010

> I port the Qt and Webkit into our box.
> After running browser about 18 hours or so, the box will dead.
> Can anyone show me some information on What caused QPainter:: Painter not
> active problem after long time running?
> Part of my box’s logs:
> QPainter::begin: Paint device returned engine == 0, type: 2
> QPainter::setRenderHint: Painter must be active to set rendering hints
> QPainter::setBrush: Painter not active
> QPainter::pen: Painter not active
> QPainter::setPen: Painter not active
> QPainter::scale: Painter not active

This is a useless log.

What you should do is:

(1) Find out the code in your Qt tree which spits the error message.
Hint: it's all in qpainter.cpp.

(2) Set a breakpoint there.

(3) Launch again your application.

Now when the problem occurs, you'll have a way way more useful stack trace.

Ariya Hidayat

More information about the webkit-qt mailing list