Bug 65537 - serching for fonts make crash in kcmshell
Summary: serching for fonts make crash in kcmshell
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: qt (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 65127 66297 67015 67738 67936 78031 79578 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-05 15:24 UTC by Piotr Komborski
Modified: 2008-05-06 16:39 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Komborski 2003-10-05 15:24:52 UTC
Version:            (using KDE KDE 3.1.92)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.1 CFLAGS="-march=athlon -mcpu=athlon -Os -s -pipe -DNDEBUG -DG_DISABLE_ASSERT"
OS:          Linux

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 2036)]
0x40ee95c9 in waitpid ()
   from /lib/libpthread.so.0
#0  0x40ee95c9 in waitpid () from /lib/libpthread.so.0
#1  0x4061418b in KCrash::defaultCrashHandler(int) ()
   from /usr/local/kde/lib/libkdecore.so.4
#2  0x40ee7c45 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x40912c4c in QFontEngineLatinXLFD::draw(QPainter*, int, int, QTextEngine const*, QScriptItem const*, int) () from /usr/local/qt/lib/libqt-mt.so.3
#5  0x4090495c in QPainter::drawTextItem(int, int, QTextItem const&, int) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#6  0x40a52b6b in QLineEdit::drawContents(QPainter*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#7  0x40a3c4e3 in QFrame::paintEvent(QPaintEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#8  0x409c9452 in QWidget::event(QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#9  0x40a506b4 in QLineEdit::event(QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#10 0x4093ed9d in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#11 0x4093e449 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#12 0x405a310e in KApplication::notify(QObject*, QEvent*) ()
   from /usr/local/kde/lib/libkdecore.so.4
#13 0x4090ca03 in QWidget::repaint(QRegion const&, bool) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#14 0x4093fbc1 in QApplication::sendPostedEvents(QObject*, int) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#15 0x4093f9fc in QApplication::sendPostedEvents() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#16 0x408ef056 in QEventLoop::processEvents(unsigned) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#17 0x409510fb in QEventLoop::enterLoop() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#18 0x4093f070 in QApplication::enter_loop() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#19 0x40b052d7 in QDialog::exec() () from /usr/local/qt/lib/libqt-mt.so.3
#20 0x4041ce83 in KFontDialog::getFontDiff(QFont&, int&, bool, QWidget*, bool, QButton::ToggleState*) () from /usr/local/kde/lib/libkdeui.so.4
#21 0x4655b7e4 in KFonts::slotApplyFontDiff() ()
   from /usr/local/kde/lib/kde3/kcm_fonts.so
#22 0x46556077 in KFonts::qt_invoke(int, QUObject*) ()
   from /usr/local/kde/lib/kde3/kcm_fonts.so
#23 0x40997923 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#24 0x4099774c in QObject::activate_signal(int) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#25 0x40c93269 in QButton::clicked() () from /usr/local/qt/lib/libqt-mt.so.3
#26 0x40a1f92c in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#27 0x409c9333 in QWidget::event(QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#28 0x4093ed9d in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#29 0x4093e526 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#30 0x405a310e in KApplication::notify(QObject*, QEvent*) ()
   from /usr/local/kde/lib/libkdecore.so.4
#31 0x408dc2cf in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#32 0x408d9c4b in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#33 0x408ef75e in QEventLoop::processEvents(unsigned) ()
   from /usr/local/qt/lib/libqt-mt.so.3
#34 0x409510fb in QEventLoop::enterLoop() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#35 0x4093f070 in QApplication::enter_loop() ()
   from /usr/local/qt/lib/libqt-mt.so.3
#36 0x40b052d7 in QDialog::exec() () from /usr/local/qt/lib/libqt-mt.so.3
#37 0x4138a037 in kdemain () from /usr/local/kde/lib/libkdeinit_kcmshell.so
#38 0x406d079e in kdeinitmain () from /usr/local/kde/lib/kde3/kcmshell.so
#39 0x0804cb39 in strcpy ()
#40 0x0804d5d1 in strcpy ()
#41 0x0804d9a9 in strcpy ()
#42 0x0804e655 in strcpy ()
#43 0x4103cd06 in __libc_start_main () from /lib/libc.so.6
Comment 1 Piotr Komborski 2003-10-05 15:28:23 UTC
when i try to adjust all fonts kcmshell crashes
Comment 2 Waldo Bastian 2003-10-15 16:27:38 UTC
looks like Qt crashes on the rendering of a font
Comment 3 Piotr Komborski 2003-10-15 16:46:30 UTC
Subject: Re:  serching for fonts make crash in kcmshell

Waldo Bastian wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>     
>http://bugs.kde.org/show_bug.cgi?id=65537     
>
>
>
>
>------- Additional Comments From bastian@kde.org  2003-10-15 16:27 -------
>looks like Qt crashes on the rendering of a font
>
>
>  
>
bug or i made something wrong?



Comment 4 Stephan Kulow 2003-10-21 11:46:44 UTC
*** Bug 66297 has been marked as a duplicate of this bug. ***
Comment 5 Stephan Kulow 2003-10-21 14:44:34 UTC
Subject: qt-copy

CVS commit by coolo: 

applying fix sent by TT (hope I did this right, I'm new to this qt-copy/patches)
CCMAIL: 65537-done@bugs.kde.org


  A            patches/0030-qfontdatabase_BR66297.diff   1.1
  M +6 -9      src/kernel/qfontdatabase_x11.cpp   1.27


--- qt-copy/src/kernel/qfontdatabase_x11.cpp  #1.26:1.27
@@ -103,4 +103,5 @@ static const XlfdEncoding xlfd_encoding[
     { "iso8859-15", 8, 111, make_tag('i','s','o','8'), make_tag('9','-','1','5') },
     { "hp-roman8", 9, 2004, make_tag('h','p','-','r'), make_tag('m','a','n','8') },
+#define LAST_LATIN_ENCODING 9
     { "iso8859-5", 10, 8, make_tag('i','s','o','8'), make_tag('5','9','-','5') },
     { "*-cp1251", 11, 2251, 0, make_tag('1','2','5','1') },
@@ -1273,4 +1274,6 @@ QFontEngine *loadEngine( QFont::Script s
                          QtFontEncoding *encoding, bool forced_encoding )
 {
+    Q_UNUSED(script);
+
     if ( fp && fp->rawMode ) {
         QCString xlfd = request.family.latin1();
@@ -1474,14 +1477,8 @@ QFontEngine *loadEngine( QFont::Script s
     QFontEngine *fe = 0;
     const int mib = xlfd_encoding[ encoding->encoding ].mib;
-    switch ( script ) {
-    case QFont::Latin:
-        if ( ! forced_encoding ) {
+    if (encoding->encoding <= LAST_LATIN_ENCODING && !forced_encoding) {
             fe = new QFontEngineLatinXLFD( xfs, xlfd.data(), mib );
-            break;
-        }
-
-    default:
+    } else {
         fe = new QFontEngineXLFD( xfs, xlfd.data(), mib );
-        break;
     }
 


Comment 6 Stephan Kulow 2003-11-01 22:08:10 UTC
*** Bug 67015 has been marked as a duplicate of this bug. ***
Comment 7 Stephan Kulow 2003-11-12 12:03:19 UTC
*** Bug 67936 has been marked as a duplicate of this bug. ***
Comment 8 Stephan Kulow 2003-11-12 12:03:49 UTC
*** Bug 67738 has been marked as a duplicate of this bug. ***
Comment 9 Waldo Bastian 2004-06-05 13:56:52 UTC
*** Bug 78031 has been marked as a duplicate of this bug. ***
Comment 10 Waldo Bastian 2004-06-05 13:57:47 UTC
*** Bug 79578 has been marked as a duplicate of this bug. ***
Comment 11 Waldo Bastian 2004-06-07 22:38:32 UTC
*** Bug 65127 has been marked as a duplicate of this bug. ***