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

List:       kde-devel
Subject:    Re: KDE 2.2 Beta1: Default Style library crashes occasionally.
From:       Michael Matz <matz () kde ! org>
Date:       2001-06-28 10:56:21
[Download RAW message or body]

Hi,

On Thu, 28 Jun 2001, Thomas Leitner wrote:
>
> With KDE 2.2 Beta1 under Tru64, I occasionally see crashes of the kwin.
> I could not figure out yet how to trigger it at will. However the crash
> dump always points to the same location:
>
> >0  0x30004bf9998 in QPixmap(0x11fffdde0, 0x0, 0x0, 0x27, 0x0,
> 0x30044e4ccd8) in /usr/local/kde22/lib/libqt.so.2

So it's one of the QPixmap constructors.  The arguments look a little
strange, as they are the same for all four function, so I'm not sure, if
the debugger isn't misleading slightly.

> #1  0x30004b7c298 in QBitmap(0x11fffdde0, 0x0, 0x0, 0x27, 0x0,
> 0x30044e4ccd8) in /usr/local/kde22/lib/libqt.so.2
> #2  0x3000900f350 in drawButton(0x11fffdde0, 0x0, 0x0, 0x27, 0x0,
> 0x30044e4ccd8) in /usr/local/kde22/lib/kde2/libkwindefault.so
> #3  0x30004c5edf0 in paintEvent(0x11fffdde0, 0x0, 0x0, 0x27, 0x0,
> 0x30044e4ccd8) in /usr/local/kde22/lib/libqt.so.2
>
> libkwindefault.so is the default window style library. The drawButton
> method only messes with QBitmaps at one particular location:
>
>                 // Intensify the image if required
>                 if (isMouseOver) {
>                         QBitmap mask = *btnpix.mask();

The first thing I would try is, to output btnpix.mask(), to see if that's
a valid pointer, and then change the above line to either:
"QBitmap mask(*btnpix.mask());" or
"QBitmap mask; mask = *btnpix.mask();"  to see if the compiler has issues
with initialization, copy ctors, or operator= .


Ciao,
Michael.

 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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