Version: (using KDE KDE 3.5.1) Different crash from the one I reported before: Create a new document. Create a new style. (I named mine "body"). Make body inherit standard, make body follow body. Close style manager. Set current para to body. Open style manager. #6 0xb76527b6 in QString::operator+= () from /usr/lib/libqt-mt.so.3 #7 0xb67cbc25 in kdbgstream::operator<< (this=0xbfbf1ecc, string=@0xbfbf1e74) at kdebug.h:218 #8 0xb5e48d6f in KoStyleManager::updateGUI (this=0x8565d98) at KoStyleManager.cpp:322 #9 0xb5e55edb in KoStyleManager::switchStyle (this=0x8565d98) at KoStyleManager.cpp:262 #10 0xb5e935f7 in KoStyleManager (this=0x8565d98, _parent=0x85dbe78, unit=U_MM, styles=@0x83ec220, activeStyleName=@0xbfbf207c, flags=1) at KoStyleManager.cpp:105 #11 0xb615eb13 in KWStyleManager (this=0x8565d98, _parent=0x85dbe78, unit=KoUnit::U_MM, _doc=0x83d1770, styles=@0x83ec220, activeStyleName=@0xbfbf207c) at KWStyleManager.cpp:36 #12 0xb615ecc4 in KWView::extraStylist (this=0x85dbe78) at KWView.cpp:4059 #13 0xb625613a in KWView::qt_invoke (this=0x85dbe78, _id=98, _o=0xbfbf217c) at KWView.moc:644 #14 0xb7339929 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #15 0xb733a3c4 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #16 0xb6da0a26 in KAction::activated () from /usr/lib/libkdeui.so.4 #17 0xb6dd722b in KAction::slotActivated () from /usr/lib/libkdeui.so.4 #18 0xb6df2f4b in KAction::slotPopupActivated () from /usr/lib/libkdeui.so.4 #19 0xb6df3282 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4 #20 0xb7339929 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 #21 0xb7698e92 in QSignal::signal () from /usr/lib/libqt-mt.so.3 #22 0xb7357344 in QSignal::activate () from /usr/lib/libqt-mt.so.3 #23 0xb745c963 in QPopupMenu::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3 #24 0xb6dace80 in KPopupMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.4 #25 0xb7374356 in QWidget::event () from /usr/lib/libqt-mt.so.3 #26 0xb72d0f80 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 #27 0xb72d1500 in QApplication::notify () from /usr/lib/libqt-mt.so.3 #28 0xb796317c in KApplication::notify () from /usr/lib/libkdecore.so.4 #29 0xb7261e25 in QApplication::sendSpontaneousEvent () from /usr/lib/libqt-mt.so.3 #30 0xb725d072 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3 #31 0xb725b66f in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3 #32 0xb7274fff in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 #33 0xb72e8cfb in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 #34 0xb72e8c1e in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 #35 0xb72cfc13 in QApplication::exec () from /usr/lib/libqt-mt.so.3 #36 0xb67fd1df in kdemain (argc=1, argv=0x8206d00) at main.cpp:40 #37 0xb67ff7d0 in kdeinitmain () from /usr/lib/kde3/kword.so
Created an attachment (id=17112) [details] patch for KoStyleManager.cpp This patch should fix this problem (and probably also some other crashes with inherited styles). The problem was, that it was saving a pointer to the style in the changedStyles list, which is deleted later, instead of the original one.
*** Bug 127553 has been marked as a duplicate of this bug. ***
*** Bug 107662 has been marked as a duplicate of this bug. ***
*** Bug 112942 has been marked as a duplicate of this bug. ***
*** Bug 129153 has been marked as a duplicate of this bug. ***
Changed heading to indicate the fact that there is a patch.
The patch fixes the crasher, but does not seem to work perfect since now once I applied the steps described by boud, on re-open the style-manager first-time (and only first-time) the Next-style is "Standard" rather then the before defined "body". This happens only the first time the style-manager got reopened. If I close the style-manager again and reopen it, the next-style is "body" as expected.
The patch got applied to 1.6-branch and 2.0-trunk. A lot of thanks to boud for the report and to Alex for the great fix!
You need to log in before you can comment on or make changes to this bug.