Bug 51663 - Karbon crashes when using text-tool
Summary: Karbon crashes when using text-tool
Status: RESOLVED FIXED
Alias: None
Product: karbon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Rob Buis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-09 01:28 UTC by Johannes Wilm
Modified: 2005-09-10 10:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
propose only smoothscalable fonts (991 bytes, patch)
2005-06-02 22:27 UTC, Pierre Stirnweiss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Wilm 2002-12-09 01:28:50 UTC
Version:           KARBON CVS (using KDE Devel)
Installed from:    Compiled sources
Compiler:          GCC3.2 xfree86 w/fontconfig, qt3.1+kde3.1 compiled without using fontconfig, koffice compiled w/fontconfig
OS:          Linux

USed kword - karbon is not in the bug-database yet.
back-trace:
(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)...(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 7394)]
(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)...
(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)...(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)...
(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)...(no debugging symbols found)...
0x40f89269 in wait4 () from /lib/libc.so.6
#0  0x40f89269 in wait4 () from /lib/libc.so.6
#1  0x40ffc3c4 in sys_sigabbrev () from /lib/libc.so.6
#2  0x40db3c75 in waitpid () from /lib/libpthread.so.0
#3  0x405c14df in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#4  0x40f14bd8 in sigaction () from /lib/libc.so.6
#5  0x41397150 in VText::buildRequest(QString, int, int, double, int&) ()
   from /usr/src/cvs/kde/koffice/debian/tmp/usr/lib/kde3/libkarbonpart.so
#6  0x4139559a in VText::traceText() ()
   from /usr/src/cvs/kde/koffice/debian/tmp/usr/lib/kde3/libkarbonpart.so
#7  0x41338fa2 in VTextTool::mouseDragRelease() ()
   from /usr/src/cvs/kde/koffice/debian/tmp/usr/lib/kde3/libkarbonpart.so
#8  0x4133b575 in VTool::mouseEvent(QMouseEvent*, KoPoint const&) ()
   from /usr/src/cvs/kde/koffice/debian/tmp/usr/lib/kde3/libkarbonpart.so
#9  0x4131ff0a in KarbonView::mouseEvent(QMouseEvent*, KoPoint const&) ()
   from /usr/src/cvs/kde/koffice/debian/tmp/usr/lib/kde3/libkarbonpart.so
#10 0x41380033 in VCanvas::eventFilter(QObject*, QEvent*) ()
   from /usr/src/cvs/kde/koffice/debian/tmp/usr/lib/kde3/libkarbonpart.so
#11 0x408fed10 in QObject::activate_filters(QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#12 0x408fec5e in QObject::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#13 0x4092ddca in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#14 0x408ac905 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#15 0x408ac1da in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libqt-mt.so.3
#16 0x40561de4 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdecore.so.4
#17 0x4085bb2a in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/libqt-mt.so.3
#18 0x4085996b in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/libqt-mt.so.3
#19 0x4086c795 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/libqt-mt.so.3
#20 0x408bdef7 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#21 0x408bddb4 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#22 0x408acb18 in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#23 0x40012cfe in main ()
   from /usr/src/cvs/kde/koffice/debian/tmp/usr/lib/karbon.so
#24 0x0804c8fc in strcpy ()
#25 0x0804d43b in strcpy ()
#26 0x0804d8b2 in strcpy ()
#27 0x0804e451 in strcpy ()
#28 0x40f03a5f in __libc_start_main () from /lib/libc.so.6
Comment 1 johanneswilm 2003-02-12 20:10:54 UTC
crashed when compiled with fontconfig-support 
 
 
 
(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)...(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 959)] 
 
(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)...(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)... 
(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)...(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)... 
(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)...0x40f36a39 in wait4 () from /lib/libc.so.6 
#0  0x40f36a39 in wait4 () from /lib/libc.so.6 
#1  0x40fa9bc0 in sys_sigabbrev () from /lib/libc.so.6 
#2  0x40d69061 in waitpid () from /lib/libpthread.so.0 
#3  0x405ed9fb in KCrash::defaultCrashHandler(int) () 
   from /usr/lib/libkdecore.so.4 
#4  0x40ec3898 in sigaction () from /lib/libc.so.6 
#5  0x412e7b84 in VText::traceText() () from /usr/lib/kde3/libkarbonpart.so 
#6  0x412e6f42 in VText::setText(QString const&) () 
   from /usr/lib/kde3/libkarbonpart.so 
#7  0x412c901b in VTextTool::textChanged() () 
   from /usr/lib/kde3/libkarbonpart.so 
#8  0x412c8375 in VTextOptionsWidget::textChanged(QString const&) () 
   from /usr/lib/kde3/libkarbonpart.so 
#9  0x412cad46 in VTextOptionsWidget::qt_invoke(int, QUObject*) () 
   from /usr/lib/kde3/libkarbonpart.so 
#10 0x4093caaa in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /usr/lib/libqt-mt.so.3 
#11 0x4093ccd7 in QObject::activate_signal(int, QString) () 
   from /usr/lib/libqt-mt.so.3 
#12 0x40ba7755 in QLineEdit::textChanged(QString const&) () 
   from /usr/lib/libqt-mt.so.3 
#13 0x409ddfd3 in QLineEdit::validateAndSet(QString const&, int, int, int) () 
   from /usr/lib/libqt-mt.so.3 
#14 0x409de34b in QLineEdit::insert(QString const&) () 
   from /usr/lib/libqt-mt.so.3 
#15 0x409da402 in QLineEdit::keyPressEvent(QKeyEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#16 0x40969e2f in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3 
#17 0x409db49f in QLineEdit::event(QEvent*) () from /usr/lib/libqt-mt.so.3 
#18 0x408e8c36 in QApplication::internalNotify(QObject*, QEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#19 0x408e881f in QApplication::notify(QObject*, QEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#20 0x40587a88 in KApplication::notify(QObject*, QEvent*) () 
   from /usr/lib/libkdecore.so.4 
#21 0x40898d43 in QETWidget::translateKeyEvent(_XEvent const*, bool) () 
   from /usr/lib/libqt-mt.so.3 
#22 0x408953ee in QApplication::x11ProcessEvent(_XEvent*) () 
   from /usr/lib/libqt-mt.so.3 
#23 0x408a812d in QEventLoop::processEvents(unsigned) () 
   from /usr/lib/libqt-mt.so.3 
#24 0x408fa1d7 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3 
#25 0x408fa094 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3 
#26 0x408e8e30 in QApplication::exec() () from /usr/lib/libqt-mt.so.3 
#27 0x40016cba in main () from /usr/lib/karbon.so.0 
#28 0x0804c9a3 in strcpy () 
#29 0x0804d467 in strcpy () 
#30 0x0804d8de in strcpy () 
#31 0x0804e4ad in strcpy () 
#32 0x40eb29f1 in __libc_start_main () from /lib/libc.so.6 
 
Comment 2 Steve 2004-08-13 05:45:01 UTC
Same crash.
gentoo
kernel 2.6.5
gcc 3.3.3
glibc 2.3.3 + NPTL
xorg 6.7.0
qt 3.2.3
kde 3.2.3
fontconfig 2.2.2
koffice 1.3.2

Recompiling with empty CFLAGS & debugging symbols... will post backtrace.
Comment 3 Steve 2004-08-15 10:34:47 UTC
Something to do with freetype?

-snip-
karbon: Loading /usr/share/fonts/freefont/garmndmi.pfb for requested font "Garamond", 12 pt.
karbon: Position: 0 -> 0
karbon: Drawing: Hello World
karbon: Drawing: Hello World
karbon: Loading /usr/share/fonts/75dpi/helvR12-ISO8859-1.pcf for requested font "Helvetica", 12 pt.

Program received signal SIGSEGV, Segmentation fault.
0x4179ae0f in FT_Outline_Decompose () from /usr/lib/libfreetype.so.6
-snip-

Text tool works ok with some fonts ('hello world' in garamond) but not others (helvetica)
Comment 4 Pierre Stirnweiss 2005-06-02 22:27:07 UTC
Created attachment 11302 [details]
propose only smoothscalable fonts

Problem arises with non smoothscalable fonts. Patch proposes only
smoothscalable fonts (same as in KWord and KPresenter).
Comment 5 Halla Rempt 2005-06-04 21:18:04 UTC
SVN commit 422208 by rempt:

* Pierre Stirnweiss's fix for bug 51663.
BUG: 51663


 M  +5 -5      karbon_view.cc  
 M  +5 -1      tools/vtexttool.cc  


--- trunk/koffice/karbon/karbon_view.cc #422207:422208
@@ -66,7 +66,7 @@
 #include "vtransformdocker.h"
 
 // ToolBars
-#include "vselecttoolbar.h"
+//#include "vselecttoolbar.h"
 
 // Statusbar
 #include "vsmallpreview.h"
@@ -235,8 +235,8 @@
 			selectionChanged();
 
 			//create toolbars
-			//m_selectToolBar = new VSelectToolBar( this, "selecttoolbar" );
-			//mainWindow()->addToolBar( m_selectToolBar );
+// 			m_selectToolBar = new VSelectToolBar( this, "selecttoolbar" );
+// 			mainWindow()->addToolBar( m_selectToolBar );
 
 			m_documentDocker = new VDocumentDocker( this );
 			mainWindow()->addDockWindow( m_documentDocker, DockRight );
@@ -261,8 +261,8 @@
 	{
 		delete m_toolbox;
 		m_toolbox = 0L;
-		//delete m_selectToolBar;
-		//m_selectToolBar = 0L;
+// 		delete m_selectToolBar;
+// 		m_selectToolBar = 0L;
 		delete m_documentDocker;
 	}
 	else
--- trunk/koffice/karbon/tools/vtexttool.cc #422207:422208
@@ -32,6 +32,7 @@
 
 #include <kdebug.h>
 #include <kfontcombo.h>
+#include <kfontdialog.h>
 #include <kiconloader.h>
 #include <knuminput.h>
 #include <kglobalsettings.h>
@@ -329,9 +330,12 @@
 
 	QGridLayout* textLayout = new QGridLayout( textWidget );
 
+	QStringList list;
+	KFontChooser::getFontList( list, KFontChooser::SmoothScalableFonts );
+
 	textLayout->setMargin( 3 );
 	textLayout->setSpacing( 2 );
-	textLayout->addMultiCellWidget( m_fontCombo = new KFontCombo( textWidget ), 0, 0, 0, 2 );
+	textLayout->addMultiCellWidget( m_fontCombo = new KFontCombo( list, textWidget ), 0, 0, 0, 2 );
 	textLayout->addWidget( m_fontSize = new KIntNumInput( textWidget ), 1, 0 );
 	textLayout->addWidget( m_boldCheck = new QCheckBox( i18n( "Bold" ), textWidget ), 1, 1 );
 	textLayout->addWidget( m_italicCheck = new QCheckBox( i18n( "Italic" ), textWidget ), 1, 2 );
Comment 6 Tim Beaulen 2005-09-10 10:24:33 UTC
SVN commit 459184 by beaulen:

Backport fix:
Bug 51663: Karbon crashes when using text-tool

http://bugs.kde.org/show_bug.cgi?id=51663

CCBUG:51663



 M  +5 -5      karbon_view.cc  
 M  +5 -1      tools/vtexttool.cc  


--- branches/koffice/1.4/koffice/karbon/karbon_view.cc #459183:459184
@@ -66,7 +66,7 @@
 #include "vtransformdocker.h"
 
 // ToolBars
-#include "vselecttoolbar.h"
+//#include "vselecttoolbar.h"
 
 // Statusbar
 #include "vsmallpreview.h"
@@ -235,8 +235,8 @@
 			selectionChanged();
 
 			//create toolbars
-			//m_selectToolBar = new VSelectToolBar( this, "selecttoolbar" );
-			//mainWindow()->addToolBar( m_selectToolBar );
+// 			m_selectToolBar = new VSelectToolBar( this, "selecttoolbar" );
+// 			mainWindow()->addToolBar( m_selectToolBar );
 
 			m_documentDocker = new VDocumentDocker( this );
 			mainWindow()->addDockWindow( m_documentDocker, DockRight );
@@ -261,8 +261,8 @@
 	{
 		delete m_toolbox;
 		m_toolbox = 0L;
-		//delete m_selectToolBar;
-		//m_selectToolBar = 0L;
+// 		delete m_selectToolBar;
+// 		m_selectToolBar = 0L;
 		delete m_documentDocker;
 	}
 	else
--- branches/koffice/1.4/koffice/karbon/tools/vtexttool.cc #459183:459184
@@ -32,6 +32,7 @@
 
 #include <kdebug.h>
 #include <kfontcombo.h>
+#include <kfontdialog.h>
 #include <kiconloader.h>
 #include <knuminput.h>
 #include <kglobalsettings.h>
@@ -329,9 +330,12 @@
 
 	QGridLayout* textLayout = new QGridLayout( textWidget );
 
+	QStringList list;
+	KFontChooser::getFontList( list, KFontChooser::SmoothScalableFonts );
+
 	textLayout->setMargin( 3 );
 	textLayout->setSpacing( 2 );
-	textLayout->addMultiCellWidget( m_fontCombo = new KFontCombo( textWidget ), 0, 0, 0, 2 );
+	textLayout->addMultiCellWidget( m_fontCombo = new KFontCombo( list, textWidget ), 0, 0, 0, 2 );
 	textLayout->addWidget( m_fontSize = new KIntNumInput( textWidget ), 1, 0 );
 	textLayout->addWidget( m_boldCheck = new QCheckBox( i18n( "Bold" ), textWidget ), 1, 1 );
 	textLayout->addWidget( m_italicCheck = new QCheckBox( i18n( "Italic" ), textWidget ), 1, 2 );