Bug 101919 - Quanta crashes when removing selector in the CSS selector dialog !
Summary: Quanta crashes when removing selector in the CSS selector dialog !
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-19 19:49 UTC by Glennie Vignarajah
Modified: 2005-04-13 14:27 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 Glennie Vignarajah 2005-03-19 19:49:09 UTC
Version:           3.4.0 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre2 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.11nephthys

Quanta crashes when removing selector in the CSS selector dialog !

This is reproductble crash.
To reproduce the crash follow these steps :
 -> Launch the CSS Selector Dialog
 -> Just click on the button 'selected' (right side). Do not select any selectors ! The crash occurs in 4 tabs present on the CSS selector dialog.

It will be fine if this button is inactive when any 'selectors' aren't selected


Backtrace:
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(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)
[Thread debugging using libthread_db enabled]
[New Thread -1224879456 (LWP 4070)]
[KCrash handler]
#3  0x0827bbf6 in CSSSelector::~CSSSelector ()
#4  0x0827cdde in CSSSelector::staticMetaObject ()
#5  0x44f26e0c in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#6  0x44f26c34 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#7  0x4526bcce in QButton::clicked () from /usr/lib/libqt-mt.so.3
#8  0x44fb923a in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#9  0x44f5cf97 in QWidget::event () from /usr/lib/libqt-mt.so.3
#10 0x44eca45f in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#11 0x44ec9b54 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#12 0xb75dfa35 in KApplication::notify () from /usr/lib/libkdecore.so.4
#13 0x44e5eeb0 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
#14 0x44e5cb3e in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#15 0x44e73a24 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#16 0x44edc7b8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#17 0x44eca711 in QApplication::enter_loop () from /usr/lib/libqt-mt.so.3
#18 0x450b0e00 in QDialog::exec () from /usr/lib/libqt-mt.so.3
#19 0x080dd62a in ?? ()
#20 0x08925fb8 in ?? ()
#21 0xbfffe6a0 in ?? ()
#22 0x00000000 in ?? ()
#23 0x00000000 in ?? ()
#24 0x00000000 in ?? ()
#25 0x00000000 in ?? ()
#26 0x00000000 in ?? ()
#27 0x4538d83c in ?? () from /usr/lib/libqt-mt.so.3
#28 0xbfffe920 in ?? ()
#29 0x0000000c in ?? ()
#30 0xbfffe788 in ?? ()
#31 0x44ec9a5e in QApplication::notify () from /usr/lib/libqt-mt.so.3
#32 0x080e459d in ?? ()
#33 0x084cbe28 in ?? ()
#34 0xb77df7ee in ?? () from /usr/lib/libkdeui.so.4
#35 0xb777d290 in ?? ()
#36 0x0000003b in ?? ()
#37 0x00000000 in ?? ()
#38 0x00000000 in ?? ()
#39 0x00000000 in ?? ()
#40 0xb783ee8e in ?? () from /usr/lib/libkdeui.so.4
#41 0xb77d80b4 in ?? () from /usr/lib/libkdeui.so.4
#42 0xb77ab424 in ?? () from /usr/lib/libkdeui.so.4
#43 0xb7e53760 in ?? ()
#44 0x0000003b in ?? ()
#45 0xb6fdf108 in ?? ()
#46 0x46484c00 in ?? () from /lib/ld-linux.so.2
#47 0xb7e538fc in ?? ()
#48 0x4538d83c in ?? () from /usr/lib/libqt-mt.so.3
#49 0x084cdff8 in ?? ()
#50 0xbfffe860 in ?? ()
#51 0xbfffe838 in ?? ()
#52 0x44f26e0c in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#53 0x44f26e0c in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#54 0x44f26c34 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#55 0xb78bb72b in KAction::activated () from /usr/lib/libkdeui.so.4
#56 0xb78bae9a in KAction::slotActivated () from /usr/lib/libkdeui.so.4
#57 0xb78bb15e in KAction::slotButtonClicked () from /usr/lib/libkdeui.so.4
#58 0xb78bba41 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4
#59 0x44f26e0c in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#60 0xb7965a25 in KToolBarButton::buttonClicked () from /usr/lib/libkdeui.so.4
#61 0xb796424a in KToolBarButton::mouseReleaseEvent ()
   from /usr/lib/libkdeui.so.4
#62 0x44f5cf97 in QWidget::event () from /usr/lib/libqt-mt.so.3
#63 0x44eca45f in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#64 0x44ec9b54 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#65 0xb75dfa35 in KApplication::notify () from /usr/lib/libkdecore.so.4
#66 0x44e5eeb0 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
#67 0x44e5cb3e in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#68 0x44e73a24 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#69 0x44edc7b8 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#70 0x44edc668 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#71 0x44eca6b1 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#72 0x080a429f in ?? ()
#73 0x083bf9b8 in ?? ()
#74 0xbffff510 in ?? ()
#75 0xbffff510 in ?? ()
#76 0x00000001 in ?? ()
#77 0x00000000 in ?? ()
#78 0x00000001 in ?? ()
#79 0x083535e0 in _IO_stdin_used ()
#80 0x08353420 in _IO_stdin_used ()
#81 0x0834f0a6 in _IO_stdin_used ()
#82 0x0834f092 in _IO_stdin_used ()
#83 0x00000010 in ?? ()
#84 0x465b8620 in __after_morecore_hook () from /lib/tls/libc.so.6
#85 0x465b7c60 in ?? () from /lib/tls/libc.so.6
#86 0x465b8620 in __after_morecore_hook () from /lib/tls/libc.so.6
#87 0x00000001 in ?? ()
#88 0x0168d224 in ?? ()
#89 0x083bd100 in ?? ()
#90 0x08351930 in _IO_stdin_used ()
#91 0xbffff458 in ?? ()
#92 0x451dfdfe in qt_check_pointer () from /usr/lib/libqt-mt.so.3
#93 0x4649c904 in __libc_start_main () from /lib/tls/libc.so.6
#94 0x0808df01 in ?? ()
Comment 1 András Manţia 2005-04-13 14:27:59 UTC
CVS commit by amantia: 

Don't crash when Selected is pressed and nothing is selected (in the CSS editor).

BUG: 101919


  M +1 -1      quanta.kdevelop   1.326
  M +1 -1      components/csseditor/cssselector.cpp   1.18


--- kdewebdev/quanta/quanta.kdevelop  #1.325:1.326
@@ -164,5 +164,5 @@
     <tree>
       <hidenonprojectfiles>false</hidenonprojectfiles>
-      <hidepatterns></hidepatterns>
+      <hidepatterns/>
       <showvcsfields>true</showvcsfields>
     </tree>

--- kdewebdev/quanta/components/csseditor/cssselector.cpp  #1.17:1.18
@@ -306,6 +306,6 @@ void CSSSelector::removeAll(){
 
 void CSSSelector::removeSelected(){
-  m_currentStylesheetStructure.remove(m_currentItem->text(0));
   if( m_currentItem ) {
+    m_currentStylesheetStructure.remove(m_currentItem->text(0));
     delete m_currentItem;
    // m_currentItem = 0L;