Hi,
I did upgrade my SuSE 8.1 box to Xfree 4.3 and kde3.1 and now kde 3.1.1, and I
did run in a problem (a bug) involving font display and printing, causing
koffice to crash when trying to print.
After wasting 2 days with it, I give up, either this is a bug or I need good
ideas from you guys to show me a solution.
I cannot say for sure, when exactly the problem started, but as far as I
remember it was after the Xfree 4.3 upgrade, using the provided SuSE 8.1
rpms.
There seems to be a problem in the display of fonts, which leads to
1) In ControlCenter/SysAdmin/Font Installer there is no preview of any font
anymore.
- Either "no preview available"
- or it seems to show a preview, but it is not visible, as if it would print
white on white
(this one is just a little annoying)
2) In konsole
- ALL the default fonts are invisible. They are there, but again white on
white (Normal, Tiny, ..., huge).
- If trying to select a "fixed" font, again, they are not visible.
- Other fonts are visible, such as "Lucida console"
(this one is also just a little annoying)
3) In kword, kspread, or any program using kprinter, this one crashes when
trying to print, but ONLY when certain fonts are in the document. It is
crashing no matter if preview or printing.
- It works fine with fonts such as helvetica, Arial, Arial unicode MS, Futura
Book, Lucida Sans Typewriter, Charter, Utopia, Tahoma etc.
- It crashes when using Lucida Sans, Zurich, Verdana, Trebuchet MS, Lucida
Fax, Luxi Mono, Angsana New, Book Antiqua etc. , see backtrace attached
below.
All these fonts did print fine before with kword printing.
(this one is quite annoying, I really would like to use koffice)
- however if I print a file from openoffice using kprinter and a font, which
is crashing kword printing (see above), it prints fine!
Is this a kde problem. I think yes and no.
================================
- yes, because xfontsel shows all fonts fine.
- yes, because openoffice prints all these fonts with no problem.
- no, because openofice also does not display small fonts anymore, if the view
(windowsize and zoomfactor) results in the font being somewhat small (but not
too smal to display). The test is there, but again "white on white", just not
visible.
I did reinstall xfree 4.3, qt and kde a couple of times, with no change. I
even tried to downgrade to Xfree 4.2, but then kde would not start anymore,
it insisted in finding libfontconfig.so.1, which got installed by XFree 4.3
only, and I did not find where there would be a config file to influence
this.
Anyone has seen this, or is it just me?
Or is there a fix for this? Any ideas?
Thanks,
Matt T.
BACKTRACE from printing crash in kword
====================================
(no debugging symbols found)...(no debugging symbols found)...
....
0x410a38c9 in wait4 () from /lib/libc.so.6
#0 0x410a38c9 in wait4 () from /lib/libc.so.6
#1 0x4111ec90 in __DTOR_END__ () from /lib/libc.so.6
#2 0x40efba93 in waitpid () from /lib/libpthread.so.0
#3 0x40626f0d in KCrash::defaultCrashHandler(int) ()
from /opt/kde3/lib/libkdecore.so.4
#4 0x40ef912b in pthread_sighandler () from /lib/libpthread.so.0
#5 <signal handler called>
#6 0x413d33a5 in FcPatternPosition () from /usr/X11R6/lib/libfontconfig.so.1
#7 0x413d342b in FcPatternFindElt () from /usr/X11R6/lib/libfontconfig.so.1
#8 0x413d3cec in FcPatternGet () from /usr/X11R6/lib/libfontconfig.so.1
#9 0x413148e4 in XftPatternGet () from /usr/X11R6/lib/libXft.so.1
#10 0x41314a34 in XftPatternGetString () from /usr/X11R6/lib/libXft.so.1
#11 0x40943d49 in QPSPrinterFont::QPSPrinterFont(QFont const&, int,
QPSPrinterPrivate*) () from /usr/lib/libqt-mt.so.3
#12 0x40945bdd in QPSPrinterPrivate::setFont(QFont const&, int) ()
from /usr/lib/libqt-mt.so.3
#13 0x4094b49c in QPSPrinter::cmd(int, QPainter*, QPDevCmdParam*) ()
from /usr/lib/libqt-mt.so.3
#14 0x40935744 in QPrinter::cmd(int, QPainter*, QPDevCmdParam*) ()
from /usr/lib/libqt-mt.so.3
#15 0x41590d94 in KPrinterWrapper::cmd(int, QPainter*, QPDevCmdParam*) ()
from /opt/kde3/lib/libkdeprint.so.4
#16 0x41591c36 in KPrinter::cmd(int, QPainter*, QPDevCmdParam*) ()
from /opt/kde3/lib/libkdeprint.so.4
#17 0x40929a4a in QPainter::drawText(int, int, QString const&, int, int,
QPainter::TextDirection) () from /usr/lib/libqt-mt.so.3
#18 0x41c27f58 in KoTextParag::drawParagStringInternal(QPainter&, QString
const&, int, int, int, int, int, int, int, bool, KoTextFormat*,
QMemArray<int> const&, QMemArray<int> const&, QColorGroup const&, bool, int,
KoZoomHandler*) ()
from /opt/kde3/lib/libkotext.so.2
#19 0x41c27239 in KoTextParag::drawParagString(QPainter&, QString const&, int,
int, int, int, int, int, int, bool, KoTextFormat*, QMemArray<int> const&,
QMemArray<int> const&, QColorGroup const&, bool, int) ()
from /opt/kde3/lib/libkotext.so.2
#20 0x41c267aa in KoTextParag::paintLines(QPainter&, QColorGroup const&,
KoTextCursor*, bool, int, int, int, int) () from /opt/kde3/lib/libkotext.so.2
#21 0x41c25baa in KoTextParag::paint(QPainter&, QColorGroup const&,
KoTextCursor*, bool, int, int, int, int) () from /opt/kde3/lib/libkotext.so.2
#22 0x41c330b9 in KoTextDocument::drawWithoutDoubleBuffer(QPainter*, QRect
const&, QColorGroup const&, KoZoomHandler*, QBrush const*) ()
from /opt/kde3/lib/libkotext.so.2
#23 0x41c34ace in KoTextDocument::drawWYSIWYG(QPainter*, int, int, int, int,
QColorGroup const&, KoZoomHandler*, bool, bool, KoTextCursor*, bool,
unsigned) ()
from /opt/kde3/lib/libkotext.so.2
#24 0x419ee804 in KWTextFrameSet::drawFrameContents(KWFrame*, QPainter*, QRect
const&, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*) ()
from /opt/kde3/lib/kde3/libkwordpart.so
#25 0x419712bb in KWFrameSet::drawFrame(KWFrame*, QPainter*, QRect const&,
QRect const&, QPoint const&, KWFrame*, QColorGroup const&, bool, bool,
KWFrameSetEdit*, KWViewMode*, bool) () from
/opt/kde3/lib/kde3/libkwordpart.so
#26 0x419ee3c5 in KWTextFrameSet::drawFrame(KWFrame*, QPainter*, QRect const&,
QRect const&, QPoint const&, KWFrame*, QColorGroup const&, bool, bool,
KWFrameSetEdit*, KWViewMode*, bool) () from
/opt/kde3/lib/kde3/libkwordpart.so
#27 0x41970994 in KWFrameSet::drawFrameAndBorders(KWFrame*, QPainter*, QRect
const&, QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*,
KWFrame*, bool) () from /opt/kde3/lib/kde3/libkwordpart.so
#28 0x4196fe51 in KWFrameSet::drawContents(QPainter*, QRect const&,
QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*) ()
from /opt/kde3/lib/kde3/libkwordpart.so
#29 0x419edd07 in KWTextFrameSet::drawContents(QPainter*, QRect const&,
QColorGroup const&, bool, bool, KWFrameSetEdit*, KWViewMode*) ()
from /opt/kde3/lib/kde3/libkwordpart.so
#30 0x41956481 in KWCanvas::drawFrameSet(KWFrameSet*, QPainter*, QRect const&,
bool, bool, KWViewMode*) () from /opt/kde3/lib/kde3/libkwordpart.so
#31 0x4195634b in KWCanvas::drawDocument(QPainter*, QRect const&, KWViewMode*)
() from /opt/kde3/lib/kde3/libkwordpart.so
#32 0x41955c3e in KWCanvas::print(QPainter*, KPrinter*) ()
from /opt/kde3/lib/kde3/libkwordpart.so
#33 0x419b594f in KWView::print(KPrinter&) ()
from /opt/kde3/lib/kde3/libkwordpart.so
#34 0x414cf9ce in KoMainWindow::slotFilePrintPreview() ()
from /opt/kde3/lib/libkofficecore.so.2
#35 0x414d2766 in KoMainWindow::qt_invoke(int, QUObject*) ()
from /opt/kde3/lib/libkofficecore.so.2
#36 0x409bc3f9 in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/libqt-mt.so.3
#37 0x409bc297 in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3
#38 0x403e9beb in KAction::activated() () from /opt/kde3/lib/libkdeui.so.4
#39 0x403db05f in KAction::slotActivated() () from /opt/kde3/lib/libkdeui.so.4
#40 0x403e9de2 in KAction::qt_invoke(int, QUObject*) ()
from /opt/kde3/lib/libkdeui.so.4
#41 0x409bc370 in QObject::activate_signal(QConnectionList*, QUObject*) ()
from /usr/lib/libqt-mt.so.3
#42 0x409bc297 in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3
#43 0x40ca1ebe in QButton::clicked() () from /usr/lib/libqt-mt.so.3
#44 0x40a3e7e6 in QButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/libqt-mt.so.3
#45 0x409f06bc in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#46 0x4095e3d4 in QApplication::internalNotify(QObject*, QEvent*) ()
from /usr/lib/libqt-mt.so.3
#47 0x4095d9b3 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/libqt-mt.so.3
#48 0x405b8f09 in KApplication::notify(QObject*, QEvent*) ()
from /opt/kde3/lib/libkdecore.so.4
#49 0x40901fc6 in QETWidget::translateMouseEvent(_XEvent const*) ()
from /usr/lib/libqt-mt.so.3
#50 0x408ffb01 in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/libqt-mt.so.3
#51 0x40914f7a in QEventLoop::processEvents(unsigned) ()
from /usr/lib/libqt-mt.so.3
#52 0x40972096 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#53 0x40971f38 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#54 0x4095e601 in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#55 0x406fd05f in main () from /opt/kde3/lib/kword.so
#56 0x0804cc3a in strcpy ()
#57 0x0804d909 in strcpy ()
#58 0x0804dddc in strcpy ()
#59 0x0804eb40 in strcpy ()
#60 0x4101e4a2 in __libc_start_main () from /lib/libc.so.6