[Kde-perl] pqt-designer and Qt 3.3.2

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Jul 12 13:13:28 CEST 2004


On Monday 12 July 2004 11:58, David Greaves wrote:
> Richard Dale wrote:
> >Would you be able to run it under gdb to get a stack trace?
> >
> >$ gdb pqt-designer
> >
> >Then 'run' at the gdb prompt, followed by 'where' after the crash..
>
> Thanks :)
>
> (gdb) where
> #0  0x40ed7829 in _Xutf8DefaultDrawImageString ()
>    from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
> #1  0x40ed7f73 in _Xutf8DefaultDrawImageString ()
>    from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
> #2  0x40ed81ea in _Xutf8DefaultDrawImageString ()
>    from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
> #3  0x40ed852f in _Xutf8DefaultDrawImageString ()
>    from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
> #4  0x40ed8868 in _Xutf8DefaultDrawImageString ()
>    from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
> #5  0x40ed8e09 in destroy_fontdata ()
>    from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
> #6  0x408c2461 in XCreateOC () from /usr/X11R6/lib/libX11.so.6
> #7  0x408c17f5 in XCreateFontSet () from /usr/X11R6/lib/libX11.so.6
> #8  0x402769f5 in QMapPrivate<QFont::Script, QString>::clear ()
>    from /usr/lib/libqt-mt.so.3
> #9  0x40277ec4 in QInputContext::setXFontSet () from /usr/lib/libqt-mt.so.3
> #10 0x40292047 in QWidget::setMicroFocusHint () from /usr/lib/libqt-mt.so.3
> #11 0x4047bc3f in QTextEdit::updateMicroFocusHint () from
> /usr/lib/libqt-mt.so.3
> #12 0x4047c383 in QTextEdit::eventFilter () from /usr/lib/libqt-mt.so.3
> #13 0x40e923b0 in Editor::eventFilter ()
>    from /usr/lib/qt3/plugins/designer/libperleditor.so
...

Here's the code I have for Editor::eventFilter() in editor.cpp:

bool Editor::eventFilter( QObject *o, QEvent *e )
{
    if ( ( e->type() == QEvent::FocusIn || e->type() == QEvent::FocusOut ) &&
	 ( o == this || o == viewport() ) ) {
	accelUncomment->setEnabled( e->type() == QEvent::FocusIn );
	accelComment->setEnabled( e->type() == QEvent::FocusIn );
    }
    return QTextEdit::eventFilter( o, e );
}

I can't see a lot that could go wrong there, and as it crashes in an X11 font 
lib I would have thought it's more likely that there's something wrong with 
your font setup than pqt-designer. But then why would pqt-designer crash and 
not other apps?

-- Richard


More information about the Kde-perl mailing list