Summary: | crash while typing hebrew | ||
---|---|---|---|
Product: | [Unmaintained] kbabel | Reporter: | Diego Iastrubni <cuco3001> |
Component: | general | Assignee: | Stanislav Visnovsky <visnovsky> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | czernik, kmashrab |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Delete highlighter for deleted text editor |
Description
Diego Iastrubni
2004-08-18 16:24:44 UTC
I got a crash in kbabel when i start to typing some words translated to brazilian portuguese, kbabel just crashes and prints a very large stack trace. My KDE version is 3.3 rc2 compiled with gcc 3.4.1 Another crash while typing hebrew here. When I type English on the same strings - nothing happens. KDE version 3.3_rc2 KBABEL compiled from source on Gentoo by GCC 3.3.4 It happen a lot of time for me when typing Arabic also. The problem is it's very difficult for me to always reproduce it in a systematic manner. Sometimes, it happens, sometimes it's not! It's really a very annoying problem. Anybody with a backtrace including the debug symbols? Also, I need your qt version. Also, do you have spellcheck on the fly enabled? I had the same problem with the yesterday's KDE_3_3_BRANCH + QT-3.3. Disabling "spellcheck on the fly" solves it. I have QT 3.3.3 Disabling "spellcheck on the fly" do solve the problem. Created attachment 7250 [details]
Delete highlighter for deleted text editor
Could anyone, please, test this patch? The behavior improves
for me (even with on-the-fly-spellcheck enabled).
cuco? I test your patch. After applying work normal, without crash. Thank you very match! If you patch file in CVS you can close this bug. ;) CVS commit by nanulo: destroy syntax highlighter for destroyed text editors CCMAIL: 87437-done@bugs.kde.org M +3 -0 kbhighlighting.cpp 1.12 M +7 -0 mymultilineedit.cpp 1.106 M +1 -0 mymultilineedit.h 1.55 --- kdesdk/kbabel/kbabel/kbhighlighting.cpp #1.11:1.12 @@ -68,4 +68,5 @@ KBabelHighlighter::KBabelHighlighter( QT void KBabelHighlighter::highlight( ) { + kdDebug(KBABEL) << this << ": Highlight started" << endl; // no updates while we're highlighting _edit->blockSignals( true ); @@ -141,4 +142,6 @@ void KBabelHighlighter::highlight( ) _edit->updateContents( ); _edit->ensureCursorVisible(); + + kdDebug(KBABEL) << this << ": Highlight finished" << endl; } --- kdesdk/kbabel/kbabel/mymultilineedit.cpp #1.105:1.106 @@ -562,4 +562,5 @@ MsgMultiLineEdit::MsgMultiLineEdit(int I _diffDelColor(Qt::darkRed), _currentUnicodeNumber(0), + highlighter(0), _tagStartPara(0), _tagStartIndex(0), _tagEndPara(0), _tagEndIndex(0) { @@ -595,4 +596,10 @@ MsgMultiLineEdit::MsgMultiLineEdit(int I } +MsgMultiLineEdit::~MsgMultiLineEdit () +{ + if(highlighter) + delete highlighter; +} + void MsgMultiLineEdit::setText(const QString& s) { --- kdesdk/kbabel/kbabel/mymultilineedit.h #1.54:1.55 @@ -145,4 +145,5 @@ public: MsgMultiLineEdit(int ID, KSpell* spell=0, QWidget* parent=0,const char* name=0); + virtual ~MsgMultiLineEdit(); /** is displaying surrounding quotes enabled? */ *** Bug 88113 has been marked as a duplicate of this bug. *** |