QPainter logs in stdout
Jaime Torres
jtamate at gmail.com
Mon Dec 28 19:33:14 GMT 2009
On Miércoles 04 Noviembre 2009 07:06:47 Mark Kretschmann escribió:
> On Sat, Oct 17, 2009 at 8:34 AM, Jaime Torres <jtamate at gmail.com> wrote:
> > Hi,
> >
> > Has someone else seen these logs?
> >
> > QPainter::begin: Widget painting can only begin as a result of a
> > paintEvent QPainter::translate: Painter not active
> > QPainter::setClipRect: Painter not active
> > QPainter::hasClipping: Painter not active
> > QPainter::hasClipping: Painter not active
> > QPainter::setPen: Painter not active
> > QPainter::setBrush: Painter not active
> > QPainter::drawRects: Painter not active
> > QPainter::hasClipping: Painter not active
> > QPainter::setPen: Painter not active
> > QPainter::setBrush: Painter not active
> > QPainter::drawRects: Painter not active
> >
> > Has someone any idea where the problem could be?
> > Is there any way to know the stack in that QPainter logs to know where
> > to search for the problem?
>
> In fact this _could_ also have a completely different reason, that is
> a bug in QGraphicsView. Alexis Menard recently fixed it for us (which
> we are very thankful for, as it made Amarok crash). The patch should
> arrive in the 4.6 Git repository from Nokia soon.
>
> That said, it's perfectly possible that what happens here is simply
> misuse of QPainter, as others said. But this Qt bug exposes the same
> symptoms.
>
> https://bugs.kde.org/show_bug.cgi?id=207382
I have more information about this little problem (On branch 4.6-stable-patched).
When I have a khtml instance running (konqueror, akregator or kmail),
When I select something in any window (even in an xterm),
I see (in this case konqueror):
konqueror(28182)/khtml (caret) DOM::Selection::validate: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0
"null" : 0 ) 1 ] 0
konqueror(28182)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )
And then, after any window focus change:
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setPen: Painter not active
QPainter::setFont: Painter not active
QPainter::end: Painter not active, aborted
I hope this helps.
Best Regards and Happy year 2010.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20091228/df1e601d/attachment.sig>
More information about the kde-core-devel
mailing list