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

List:       kde-devel
Subject:    Re: X errors - "BadAlloc"
From:       Julian Rockey <linux () jrockey ! com>
Date:       2003-01-26 11:17:34
[Download RAW message or body]

On Thursday 23 Jan 2003 6:33 pm, Lubos Lunak wrote:
> On Thursday 23 of January 2003 18:56, Julian Rockey wrote:
> > gideon: WARNING: KDE detected X Error: BadAlloc (insufficient resources
> > for operation) \x0b
> >   Major opcode:  5
> >
> > Breakpoint 2, kde_x_errhandler (dpy=0xea11, err=0xbfffea30) at
> > kapplication.cpp:158
> > 158     }
> > (gdb) bt
> > #0  kde_x_errhandler (dpy=0xea11, err=0xbfffea30) at kapplication.cpp:158
> > #1  0x413e48db in _XError () from /usr/X11R6/lib/libX11.so.6
> > #2  0x413e2ddf in _XReply () from /usr/X11R6/lib/libX11.so.6
> > #3  0x413ddfd5 in XSync () from /usr/X11R6/lib/libX11.so.6
> > #4  0x413de097 in _XSyncFunction () from /usr/X11R6/lib/libX11.so.6
> > #5  0x413c5496 in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
> > #6  0x40e2c142 in QPixmap::init(int, int, int, bool,
> > QPixmap::Optimization) () from
> > /opt/qt/qt-copy-kde-3.1.x/lib/libqt-mt.so.3
> > #7  0x40eee49d in QPixmap::QPixmap(int, int, int, QPixmap::Optimization)
> > () from /opt/qt/qt-copy-kde-3.1.x/lib/libqt-mt.so.3
> > #8  0x40f60f24 in QSharedDoubleBuffer::getPixmap() () from
> > /opt/qt/qt-copy-kde-3.1.x/lib/libqt-mt.so.3
> > #9  0x40f6090a in QSharedDoubleBuffer::begin(QWidget*, int, int, int,
> > int) () from /opt/qt/qt-copy-kde-3.1.x/lib/libqt-mt.so.3
> > #10 0x40f60885 in QSharedDoubleBuffer::begin(QPainter*, int, int, int,
> > int) () from /opt/qt/qt-copy-kde-3.1.x/lib/libqt-mt.so.3
> > #11 0x40f6063c in QSharedDoubleBuffer::QSharedDoubleBuffer(QPainter*,
> > QRect const&, unsigned) ()
> >    from /opt/qt/qt-copy-kde-3.1.x/lib/libqt-mt.so.3
> > #12 0x40fd42ee in QMenuBar::drawContents(QPainter*) () from
> > /opt/qt/qt-copy-kde-3.1.x/lib/libqt-mt.so.3
>
>  Looks like something is wrong with the menubar, maybe you managed to
> trigger a Qt bug. But you don't have Qt compiled with debug info, only
> kdelibs, and I doubt you'll find out what's wrong unless you recompile Qt
> with debug info.
Recompiling QT with debug unfortunately makes the problem go away. Similarly 
recompiling with -O2 instead of -O3 did the trick. It looks to me as if it's 
triggered by the optimisation level. Not sure whether TT advise not to use 
-O3. Thanks for the advice - at least I'm now more sure it's not caused by 
*my* code :-)
cheers
Julian

 
>> Visit http://mail.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