Bug 181057 - Alt+F2 run commands sometimes stops working
Summary: Alt+F2 run commands sometimes stops working
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-17 09:57 UTC by Tamas Baka
Modified: 2009-03-03 03:08 UTC (History)
6 users (show)

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 Tamas Baka 2009-01-17 09:57:22 UTC
Version:           nightly-neon (using Devel)
OS:                Linux
Installed from:    Compiled sources

This happens every other day...

After some hours of usage alt+f2 just doesn't work anymore. I use it a lot, so this bothers me :-P

I have to restart kde to make it work again...
Comment 1 Dario Andres 2009-01-17 12:52:18 UTC
When the shortcut stops working, can you check if the "krunner" process is started? ("ps -A | grep krunner") , also is "kded4" alive too ? ("ps -A | grep kded4")
Also, can you detail your KDE version (or SVN revision) ?
Thanks :)
Comment 2 Tamas Baka 2009-01-17 14:31:42 UTC
I use the nightly-neon builds for kubuntu. When it breaks again, I'll send the info you requested...
Comment 3 Tristan Miller 2009-01-20 16:22:30 UTC
Confirming that this problem exists with KDE 4.1.96 (KDE 4.2 RC1) on openSUSE 11.1.  This problem happens quite often -- usually after an hour or so of occasional use.  krunner remains running, as reported by ps (see below), but no longer responds to Alt+F2:

$ psgrep krunner
 4007 ?        Sl     0:10 /usr/bin/krunner

Killing the process and restarting it fixes the problem.
Comment 4 Marcus Better 2009-01-28 14:53:19 UTC
Confirming on KDE 4.2.0 (Debian experimental, Linux x86-64). The krunner and kded4 processes are still running.
Comment 5 Ralf Schmitt 2009-01-28 17:23:41 UTC
I can also confirm this bug on a 64 bit linux (arch linux)(using kde 4.2)
I've attached a gdb process and printed a stacktrace with bt (output below) after krunner stopped working...hope that helps.

(gdb) bt                                               
#0  0x00007f7c5408dd69 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0                               
#1  0x00007f7c542fa41b in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f7c542f654d in QMutex::lock () from /usr/lib/libQtCore.so.4
#3  0x00007f7c3a9f7b94 in ServiceRunner::run ()                       
   from /usr/lib/kde4/krunner_services.so                             
#4  0x00007f7c55d0cc99 in Plasma::RunnerManager::qt_metacall ()       
   from /usr/lib/libplasma.so.3                                       
#5  0x00007f7c543ddd30 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#6  0x00007f7c559f8552 in ThreadWeaver::Job::done ()                           
   from /usr/lib/libthreadweaver.so.4                                          
#7  0x00007f7c559f86f8 in ThreadWeaver::Job::qt_metacall ()                    
   from /usr/lib/libthreadweaver.so.4                                          
#8  0x00007f7c543d9fde in QObject::event () from /usr/lib/libQtCore.so.4       
#9  0x00007f7c537ea4ed in QApplicationPrivate::notify_helper ()                
   from /usr/lib/libQtGui.so.4                                                 
#10 0x00007f7c537f087a in QApplication::notify () from /usr/lib/libQtGui.so.4  
#11 0x00007f7c551af46b in KApplication::notify () from /usr/lib/libkdeui.so.5  
#12 0x00007f7c543cc401 in QCoreApplication::notifyInternal ()                  
   from /usr/lib/libQtCore.so.4                                                
#13 0x00007f7c543ccdc7 in QCoreApplicationPrivate::sendPostedEvents ()         
   from /usr/lib/libQtCore.so.4                                                
#14 0x00007f7c543f0c33 in ?? () from /usr/lib/libQtCore.so.4                   
#15 0x00007f7c4da02aa2 in g_main_context_dispatch ()                           
   from /usr/lib/libglib-2.0.so.0                                              
#16 0x00007f7c4da0621d in g_main_context_iterate ()                            
   from /usr/lib/libglib-2.0.so.0                                              
#17 0x00007f7c4da063db in g_main_context_iteration ()                          
   from /usr/lib/libglib-2.0.so.0                                              
#18 0x00007f7c543f08cf in QEventDispatcherGlib::processEvents ()               
   from /usr/lib/libQtCore.so.4                                                
#19 0x00007f7c5386b04f in ?? () from /usr/lib/libQtGui.so.4                    
#20 0x00007f7c543cad72 in QEventLoop::processEvents ()                         
   from /usr/lib/libQtCore.so.4                                                
#21 0x00007f7c543caf05 in QEventLoop::exec () from /usr/lib/libQtCore.so.4     
#22 0x00007f7c53ba5b3f in QDialog::exec () from /usr/lib/libQtGui.so.4         
#23 0x00007f7c5513b302 in KMessageBox::createKMessageBox ()                    
   from /usr/lib/libkdeui.so.5                                                 
#24 0x00007f7c5513c4d7 in KMessageBox::createKMessageBox ()                    
   from /usr/lib/libkdeui.so.5                                                 
#25 0x00007f7c5513cbf6 in KMessageBox::sorryWId () from /usr/lib/libkdeui.so.5 
#26 0x00007f7c5513cd0c in KMessageBox::sorry () from /usr/lib/libkdeui.so.5    
#27 0x00007f7c5149d627 in KRun::run () from /usr/lib/libkio.so.5               
---Type <return> to continue, or q <return> to quit---                         
#28 0x00007f7c3a9f7a91 in ServiceRunner::run ()                                
   from /usr/lib/kde4/krunner_services.so                                      
#29 0x00007f7c55d0bd9c in Plasma::RunnerManager::reset ()                       
   from /usr/lib/libplasma.so.3                                                 
#30 0x00007f7c566578f2 in Interface::resetInterface ()                          
   from /usr/lib/libkdeinit4_krunner.so                                         
#31 0x00007f7c56657985 in Interface::queryTextEdited ()                         
   from /usr/lib/libkdeinit4_krunner.so                                         
#32 0x00007f7c56658845 in Interface::qt_metacall ()                             
   from /usr/lib/libkdeinit4_krunner.so                                         
#33 0x00007f7c543ddd30 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 
#34 0x00007f7c53ac3a82 in QComboBox::editTextChanged ()                         
   from /usr/lib/libQtGui.so.4                                                  
#35 0x00007f7c53acb6e9 in QComboBox::qt_metacall () from /usr/lib/libQtGui.so.4 
#36 0x00007f7c55252045 in KComboBox::qt_metacall () from /usr/lib/libkdeui.so.5 
#37 0x00007f7c55263de5 in KHistoryComboBox::qt_metacall ()                      
   from /usr/lib/libkdeui.so.5                                                  
#38 0x00007f7c543ddd30 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 
#39 0x00007f7c53afa672 in QLineEdit::textChanged () from /usr/lib/libQtGui.so.4 
#40 0x00007f7c53b00205 in ?? () from /usr/lib/libQtGui.so.4                     
#41 0x00007f7c53afffb2 in ?? () from /usr/lib/libQtGui.so.4                     
#42 0x00007f7c53ac68ba in ?? () from /usr/lib/libQtGui.so.4                     
#43 0x00007f7c53ac69ed in QComboBox::setCurrentIndex ()                         
   from /usr/lib/libQtGui.so.4                                                  
#44 0x00007f7c55251f43 in KComboBox::setCurrentItem ()                          
   from /usr/lib/libkdeui.so.5                                                  
#45 0x00007f7c56657894 in Interface::resetInterface ()                          
   from /usr/lib/libkdeinit4_krunner.so                                         
#46 0x00007f7c56658550 in Interface::run ()                                     
   from /usr/lib/libkdeinit4_krunner.so                                         
#47 0x00007f7c56658858 in Interface::qt_metacall ()                             
   from /usr/lib/libkdeinit4_krunner.so                                         
#48 0x00007f7c543ddd30 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#49 0x00007f7c552521f8 in KComboBox::qt_metacall () from /usr/lib/libkdeui.so.5
#50 0x00007f7c55263de5 in KHistoryComboBox::qt_metacall ()
   from /usr/lib/libkdeui.so.5
#51 0x00007f7c543ddd30 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#52 0x00007f7c53b01e46 in QLineEdit::keyPressEvent ()
   from /usr/lib/libQtGui.so.4
#53 0x00007f7c5526f07f in KLineEdit::keyPressEvent ()
   from /usr/lib/libkdeui.so.5
#54 0x00007f7c538374aa in QWidget::event () from /usr/lib/libQtGui.so.4
#55 0x00007f7c53b005db in QLineEdit::event () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#56 0x00007f7c55270e7a in KLineEdit::event () from /usr/lib/libkdeui.so.5
#57 0x00007f7c53ac86e1 in QComboBox::keyPressEvent ()
   from /usr/lib/libQtGui.so.4
#58 0x00007f7c55263b54 in KHistoryComboBox::keyPressEvent ()
   from /usr/lib/libkdeui.so.5
#59 0x00007f7c538374aa in QWidget::event () from /usr/lib/libQtGui.so.4
#60 0x00007f7c537ea4ed in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#61 0x00007f7c537f17d3 in QApplication::notify () from /usr/lib/libQtGui.so.4
#62 0x00007f7c551af46b in KApplication::notify () from /usr/lib/libkdeui.so.5
#63 0x00007f7c543cc401 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#64 0x00007f7c53867ed4 in ?? () from /usr/lib/libQtGui.so.4
#65 0x00007f7c53869f77 in ?? () from /usr/lib/libQtGui.so.4
#66 0x00007f7c53847435 in QApplication::x11ProcessEvent ()
   from /usr/lib/libQtGui.so.4
#67 0x00007f7c5386b794 in ?? () from /usr/lib/libQtGui.so.4
#68 0x00007f7c4da02aa2 in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#69 0x00007f7c4da0621d in g_main_context_iterate ()
   from /usr/lib/libglib-2.0.so.0
#70 0x00007f7c4da063db in g_main_context_iteration ()
   from /usr/lib/libglib-2.0.so.0
#71 0x00007f7c543f08cf in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#72 0x00007f7c5386b04f in ?? () from /usr/lib/libQtGui.so.4
#73 0x00007f7c543cad72 in QEventLoop::processEvents ()
   from /usr/lib/libQtCore.so.4
#74 0x00007f7c543caf05 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#75 0x00007f7c543cd065 in QCoreApplication::exec ()
   from /usr/lib/libQtCore.so.4
#76 0x00007f7c56652165 in kdemain () from /usr/lib/libkdeinit4_krunner.so
#77 0x00007f7c51804546 in __libc_start_main () from /lib/libc.so.6
#78 0x0000000000400819 in _start ()
Comment 6 Dario Andres 2009-01-30 00:37:21 UTC
@Ralf: can you file a new bug report for your crash backtrace info? (it's a different issue as the original bug report isn't a crash)
Also, you need to install debug symbol packages: look at http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Thanks
Comment 7 Ralf Schmitt 2009-01-30 09:51:26 UTC
no, this is the same issue. I've attached gdb to the running process when it stopped responding. The process didn't die.
I don't know if arch linux provides those debugging enabled packages...so you most probably won't get a better stacktrace...sorry.
Comment 8 Dario Andres 2009-01-30 11:38:18 UTC
@Ralf: oh, I now understand. I misread your comment. Thanks for the trace and the info
Comment 9 Ralf Schmitt 2009-02-03 09:42:32 UTC
here's the output of krunner until it stopped responding (guess it won't help much):

...
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2007059
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2008246
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
QObject: Do not delete object, 'unnamed', during its event handler!
Comment 10 Jacopo De Simoi 2009-02-28 20:53:59 UTC
I've a patch for this, but I'd like to talk to aseigo before committing to be sure it doesn't break anything. If you're really desperate for having it solved I can post it here ;)
Comment 11 Jacopo De Simoi 2009-03-03 03:07:21 UTC
SVN commit 934417 by jacopods:

Prevents a deadlock when dealing with a deferredRun
BUG: 181057


 M  +9 -5      runnermanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=934417
Comment 12 Jacopo De Simoi 2009-03-03 03:08:32 UTC
SVN commit 934418 by jacopods:

backport - prevents deadlock (deferredRun)
CCBUG: 181057


 M  +9 -5      runnermanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=934418