Bug 308307

Summary: Kleopatra does not quit
Product: [Applications] kleopatra Reporter: S. Burmeister <sven.burmeister>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aheinecke, mutz
Priority: NOR Keywords: triaged
Version: 2.1.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description S. Burmeister 2012-10-12 19:40:23 UTC
This is with KDE SC 4.9.2. If one starts kleopatra and right-clicks on the systray icon > quit it does not quit. Debug output shows:

kleopatra(11447) Kleo::Command::~Command:
kleopatra(11447) Kleo::Command::Private::~Private:
kleopatra(11447) main: Startup timing: 552 ms elapsed: SelfCheck completed
plasma-desktop(1841)/plasma StatusNotifierItemSource::refreshCallback: DBusMenu disabled for this application 
kleopatra(11447)/kdeui (kdelibs): Attempt to use QAction "key_search_bar" with KXMLGUIFactory! 
kleopatra(11447) Kleo::KeyListController::Private::slotCurrentViewChanged: you need to register view QTreeView(0x9f37cf8, name = "m_view") before trying to set it as the current view!
kleopatra(11447) main: Startup timing: 17711 ms elapsed: KeyCache loaded
kleopatra(11447) KleopatraApplication::newInstance: ignoreNewInstance = false
kleopatra(11447) KleopatraApplication::newInstance: openOrRaiseMainWindow
kleopatra(11447) main: Startup timing: 17712 ms elapsed: new instance created
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: new iteration command= "__update__"  ; nullSlot= true
kleopatra(11447) update_cardinfo: <update_cardinfo>
kleopatra(11447) get_card_status: get_card_status( "/home/username/.gnupg/reader_0.status" , 0 , 0xb1a02f38 )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO ): "Kartenfehler"
kleopatra(11447) update_cardinfo: </update_cardinfo>
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: slot 0 : NoCard -> CardError
kleopatra(11447) {anonymous}::ReaderStatusThread::run: eventCounter: 4294967295
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .zZZ
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .oOO
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: new iteration command= "__check__"  ; nullSlot= true
kleopatra(11447) gpgagent_transact: gpgagent_transact( GETEVENTCOUNTER )
kleopatra(11447) get_event_counter: get_event_counter(): got ( status( "EVENTCOUNTER" ) = "0 0 0"
)
kleopatra(11447) check_event_counter_changed: ReaderStatusThread[2nd]: events: 4294967295 -> 0
kleopatra(11447) update_cardinfo: <update_cardinfo>
kleopatra(11447) get_card_status: get_card_status( "/home/username/.gnupg/reader_0.status" , 0 , 0xb1a03218 )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO ): "Nicht unterstützt"
kleopatra(11447) update_cardinfo: </update_cardinfo>
kleopatra(11447) {anonymous}::ReaderStatusThread::run: eventCounter: 4294967295
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .zZZ
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .oOO
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: new iteration command= "__check__"  ; nullSlot= true
kleopatra(11447) gpgagent_transact: gpgagent_transact( GETEVENTCOUNTER )
kleopatra(11447) get_event_counter: get_event_counter(): got ( status( "EVENTCOUNTER" ) = "0 0 0"
)
kleopatra(11447) check_event_counter_changed: ReaderStatusThread[2nd]: events: 4294967295 -> 0
kleopatra(11447) update_cardinfo: <update_cardinfo>
kleopatra(11447) get_card_status: get_card_status( "/home/username/.gnupg/reader_0.status" , 0 , 0xb1a02798 )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO ): "Kartenfehler"
kleopatra(11447) update_cardinfo: </update_cardinfo>
kleopatra(11447) {anonymous}::ReaderStatusThread::run: eventCounter: 4294967295
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .zZZ
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .oOO
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: new iteration command= "__check__"  ; nullSlot= true
kleopatra(11447) gpgagent_transact: gpgagent_transact( GETEVENTCOUNTER )
kleopatra(11447) get_event_counter: get_event_counter(): got ( status( "EVENTCOUNTER" ) = "0 0 0"
)

and this continues until one quits it a second time.

kleopatra(11447) check_event_counter_changed: ReaderStatusThread[2nd]: events: 4294967295 -> 0
kleopatra(11447) update_cardinfo: <update_cardinfo>
kleopatra(11447) get_card_status: get_card_status( "/home/username/.gnupg/reader_0.status" , 0 , 0xb1a02a80 )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO )
kleopatra(11447) gpgagent_transact: gpgagent_transact( SCD SERIALNO ): "Kartenfehler"
kleopatra(11447) update_cardinfo: </update_cardinfo>
kleopatra(11447) {anonymous}::ReaderStatusThread::run: eventCounter: 4294967295
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .zZZ
kleopatra(11447) MainWindow::closeEvent:
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x64000f4
kleopatra(11447) Kleo::KeyListController::Private::slotDestroyed: 0x9f6e490
kleopatra(11447) Kleo::KeyListController::Private::slotDestroyed: 0x9f6e698
kleopatra(11447) Kleo::KeyListController::Private::slotDestroyed: 0x9f37cf8
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: .oOO
kleopatra(11447) {anonymous}::ReaderStatusThread::run: ReaderStatusThread[2nd]: new iteration command= "__quit__"  ; nullSlot= true
[10348:10348:1012/213328:ERROR:layout.cc(150)] Not implemented reached in ui::ScaleFactor ui::GetScaleFactorForNativeView(gfx::NativeView)


Reproducible: Always
Comment 1 Andre Heinecke 2013-05-02 17:07:43 UTC
I can't reproduce this with KDE 4.10
When I right click on the systray icon I have the option "Shoutdown Kleopatra" and this shuts it down and ps no longer lists any kleopatra running.

Does this still happen to you in 4.10?
If you use File -> Quit in the Kleopatra application, does this shutdown kleopatra?
Comment 2 Christoph Feck 2013-12-28 14:56:31 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Andrew Crouthamel 2018-09-25 03:51:01 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-10-27 02:49:40 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!