Bug 53602 - select "automatic hyphenation" crashes kword
Summary: select "automatic hyphenation" crashes kword
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.5 or before
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-29 17:12 UTC by Ferdinand Gassauer
Modified: 2003-02-17 20:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ferdinand Gassauer 2003-01-29 17:12:53 UTC
Version:           1.2post (using KDE 3.1.9)
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-4GB

Hi!
trying ot select "automatic hyphenation" crashes kword

BTW hyphenation is "on" even it is not selected

BTW how can I turn it off, because in German it does not work reliable. Any way to correct this problem?
Example:Prob-leme instead of Pro-ble-me
cu
Ferdinand
Comment 1 Ferdinand Gassauer 2003-01-29 17:16:58 UTC
[New Thread 1024 (LWP 20852)] 
0x411068c9 in wait4 () from /lib/libc.so.6 
#0  0x411068c9 in wait4 () from /lib/libc.so.6 
#1  0x41181c90 in __DTOR_END__ () from /lib/libc.so.6 
#2  0x40f61a93 in waitpid () from /lib/libpthread.so.0 
#3  0x40689267 in KCrash::defaultCrashHandler(int) (sig=11) at kcrash.cpp:235 
#4  0x40f5f12b in pthread_sighandler () from /lib/libpthread.so.0 
#5  <signal handler called> 
#6  0x41c7ffbf in KFormula::ContextStyle::symbolTable() const (this=0xfffffe00) 
    at contextstyle.cc:87 
#7  0x41cb236d in KFormula::Document::initSymbolNamesAction() (this=0x8149fb0) 
    at kformuladocument.cc:384 
#8  0x41cb8533 in KFormula::Document::updateConfig() (this=0x8149fb0) 
    at kformuladocument.cc:1192 
#9  0x41cd327e in KFormula::ConfigurePage::apply() (this=0x837ac00) 
    at kformulaconfigpage.cc:215 
#10 0x4193952f in KWConfig::slotApply() (this=0xbfffe060) at kwconfig.cc:146 
#11 0x404a781f in KDialogBase::qt_invoke(int, QUObject*) (this=0xbfffe060,  
    _id=74, _o=0xbfffd8d0) at kdialogbase.moc:360 
#12 0x419442a8 in KWConfig::qt_invoke(int, QUObject*) (this=0xbfffe060,  
    _id=74, _o=0xbfffd8d0) at kwconfig.moc:476 
#13 0x40a1ca3d in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#14 0x40a1c970 in QObject::activate_signal(int) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#15 0x40ce0fa9 in QButton::clicked() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#16 0x40a9b1bc in QButton::mouseReleaseEvent(QMouseEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#17 0x40a4dfc3 in QWidget::event(QEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#18 0x409c0f42 in QApplication::internalNotify(QObject*, QEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#19 0x409c078c in QApplication::notify(QObject*, QEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#20 0x405f887f in KApplication::notify(QObject*, QEvent*) (this=0xbfffebb0,  
    receiver=0x82d5980, event=0xbfffdc80) at kapplication.cpp:454 
#21 0x4096a44f in QETWidget::translateMouseEvent(_XEvent const*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#22 0x4096813c in QApplication::x11ProcessEvent(_XEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#23 0x4097c601 in QEventLoop::processEvents(unsigned) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#24 0x409d3dfb in QEventLoop::enterLoop() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#25 0x409c11f0 in QApplication::enter_loop() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#26 0x40b73097 in QDialog::exec() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#27 0x418e317f in KWView::configure() (this=0x81bd1b8) at kwview.cc:5540 
#28 0x418f2e65 in KWView::qt_invoke(int, QUObject*) (this=0x81bd1b8,  
    _id=136040888, _o=0xbfffe240) at kwview.moc:658 
#29 0x40a1cac3 in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#30 0x40a1c970 in QObject::activate_signal(int) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#31 0x40412256 in KAction::activated() (this=0x826dc38) 
    at /d2/src/gassauer.cvs/kde2/qt-copy/include/qmetaobject.h:261 
#32 0x4041184c in KAction::slotActivated() (this=0x826dc38) at kaction.cpp:1115 
#33 0x40412410 in KAction::qt_invoke(int, QUObject*) (this=0x826dc38, _id=14,  
    _o=0xbfffe360) at kaction.moc:181 
#34 0x40a1cac3 in QObject::activate_signal(QConnectionList*, QUObject*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#35 0x40cdb647 in QSignal::signal(QVariant const&) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#36 0x40a350d5 in QSignal::activate() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#37 0x40b02aef in QPopupMenu::mouseReleaseEvent(QMouseEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#38 0x40a4dfc3 in QWidget::event(QEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#39 0x409c0f42 in QApplication::internalNotify(QObject*, QEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#40 0x409c078c in QApplication::notify(QObject*, QEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#41 0x405f887f in KApplication::notify(QObject*, QEvent*) (this=0xbfffebb0,  
    receiver=0x8166438, event=0xbfffe7b0) at kapplication.cpp:454 
#42 0x40969fc5 in QETWidget::translateMouseEvent(_XEvent const*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#43 0x4096813c in QApplication::x11ProcessEvent(_XEvent*) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#44 0x4097c601 in QEventLoop::processEvents(unsigned) () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#45 0x409d3dfb in QEventLoop::enterLoop() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#46 0x409d3ca4 in QEventLoop::exec() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#47 0x409c1190 in QApplication::exec() () 
   from /d2/src/gassauer.cvs/kde2/qt-copy/lib/libqt-mt.so.3 
#48 0x407600ef in main (argc=1, argv=0x805f990) at main.cc:43 
#49 0x0804cc79 in launch (argc=1, _name=0x805fc14 "kword",  
    args=0x805fc1a "\001", cwd=0x0, envc=1,  
    envs=0x9 <Address 0x9 out of bounds>, reset_env=false, tty=0x0,  
    avoid_loops=false,  
    startup_id_str=0x805fc2f "linuxfg3;1043855900;609752;20115") 
    at kinit.cpp:561 
#50 0x0804d8cd in handle_launcher_request (sock=7) at kinit.cpp:1012 
#51 0x0804ddba in handle_requests (waitForPid=0) at kinit.cpp:1180 
#52 0x0804ea90 in main (argc=3, argv=0x8058ec0, envp=0xbffff244) 
    at kinit.cpp:1532 
#53 0x410814a2 in __libc_start_main () from /lib/libc.so.6 
cu 
Comment 2 David Faure 2003-01-29 18:32:12 UTC
Subject: Re:  select "automatic hyphenation" crashes kword

> #6  0x41c7ffbf in KFormula::ContextStyle::symbolTable() const (this=0xfffffe00) 
>     at contextstyle.cc:87 
> #7  0x41cb236d in KFormula::Document::initSymbolNamesAction() (this=0x8149fb0) 
>     at kformuladocument.cc:384 
> #8  0x41cb8533 in KFormula::Document::updateConfig() (this=0x8149fb0) 
>     at kformuladocument.cc:1192 
> #9  0x41cd327e in KFormula::ConfigurePage::apply() (this=0x837ac00) 
>     at kformulaconfigpage.cc:215 
> #10 0x4193952f in KWConfig::slotApply() (this=0xbfffe060) at kwconfig.cc:146 

Huh. This is a crash in KFormula, it has nothing to do with hyphenation... 

Comment 3 David Faure 2003-02-17 20:23:18 UTC
Subject: koffice/lib/kformula

CVS commit by faure: 

Don't crash when applying configuration
CCMAIL: 53602-done@bugs.kde.org


  M +2 -1      kformuladocument.cc   1.63


--- koffice/lib/kformula/kformuladocument.cc  #1.62:1.63
@@ -396,5 +396,5 @@ void Document::initSymbolNamesAction()
             fonts.append( st.font( ch ) );
             chars[ i ] = st.character( ch );
-            //kdDebug( DEBUGID ) << "Document::lazyInit: " << *it << " " << st.font( ch ).family() << " " << QString( ch ) << endl;
+            //kdDebug( DEBUGID ) << "Document::initSymbolNamesAction: " << *it << " " << st.font( ch ).family() << " " << QString( ch ) << endl;
         }
         impl->symbolNamesAction->setSymbols( names, fonts, chars );
@@ -1192,4 +1192,5 @@ void Document::recalc()
 void Document::updateConfig()
 {
+    lazyInit();
     impl->syntaxHighlightingAction->setChecked( impl->contextStyle.syntaxHighlighting() );
     initSymbolNamesAction();