Summary: | SIGSEGV after typing '^' | ||
---|---|---|---|
Product: | [Applications] kwordquiz | Reporter: | Bastian Senst <bastianholst> |
Component: | general | Assignee: | Peter Hedlund <peter> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aacid |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | This is what I tried |
Description
Bastian Senst
2004-11-23 18:39:53 UTC
I can't reproduce such a crash. Do you mean the ^ character (ascii 94) or do you mean the symbol above ê. From the backtrace it seems that the crash occurs when you start editing a cell by typing a first character, is that correct? I can even use the upper left key on a German keyboard layout to generate ê without problems. Janno, what is your distribution? I cannot reproduce this bug, running KWordQuiz from source cvs HEAD. Created attachment 11448 [details]
This is what I tried
This didn't make it crash
As I just stated, I could make it crash. This is latest trunk, gcc 3.3.5, KUbuntu-Linux. Hope this helps. Oh, I forgot (sorry for the spam): My system is in german. Hi Peter i can reproduce this crash using Suse provided pacages for kdeedu 3.4.1 for Suse 9.1 tomorrow i'll try to compile qt and kdeeedu from svn to see if the problem is still there. Hi Peter, it seems the cause is qt shiped suse as with the qt from trolltech it works, this patch seems to workaround the problem Index: kwordquizview.cpp =================================================================== --- kwordquizview.cpp (revision 426042) +++ kwordquizview.cpp (working copy) @@ -288,7 +288,8 @@ { m_currentText = text(row, col); cellEditor = QTable::beginEdit(row, col, replace); - cellEditor->installEventFilter(this); + if (cellEditor) + cellEditor->installEventFilter(this); return cellEditor; } SVN commit 426340 by hedlund: Don't crash when running a Qt patched by SuSE. Thanks to Albert Astals Cid for tracking this one down. BUG:93803 M +2 -1 kwordquizview.cpp --- trunk/KDE/kdeedu/kwordquiz/src/kwordquizview.cpp #426339:426340 @@ -288,7 +288,8 @@ { m_currentText = text(row, col); cellEditor = QTable::beginEdit(row, col, replace); - cellEditor->installEventFilter(this); + if (cellEditor) + cellEditor->installEventFilter(this); return cellEditor; } |