[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: QPainter logs in stdout
From:       Jaime Torres <jtamate () gmail ! com>
Date:       2009-12-28 19:33:14
Message-ID: 200912282033.18786.jtamate () gmail ! com
[Download RAW message or body]


On Miércoles 04 Noviembre 2009 07:06:47 Mark Kretschmann escribió:
> On Sat, Oct 17, 2009 at 8:34 AM, Jaime Torres <jtamate@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.


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic