Bug 279436 - Deleting a message does not close the window displaying it.
Summary: Deleting a message does not close the window displaying it.
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.10.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 10:52 UTC by jem
Modified: 2013-02-11 06:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.1


Attachments
Before deleteing the message. (104.22 KB, image/png)
2011-08-05 13:24 UTC, jem
Details
After deleting the message. (72.18 KB, image/png)
2011-08-05 13:27 UTC, jem
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jem 2011-08-05 10:52:39 UTC
Version:           1.99.0 (using KDE 4.7.0) 
OS:                Linux

If you delete a message which is open in a window, the window is cleared but the window is not closed.

Reproducible: Always

Steps to Reproduce:
Add the "Delete Email" button to the toolbar.
Open a message in a window.
Press the Delete button.


Actual Results:  
The message is deleted, and the window displaying the message is cleared, but it is not closed. The application does not crash (yet), but the blank message window remains on the screen.

Expected Results:  
The window should disappear after the message is deleted.

OS: Linux (x86_64) release 3.0.0-gentoo
Compiler: x86_64-pc-linux-gnu-gcc
Comment 1 Laurent Montel 2011-08-05 11:31:21 UTC
I can't reproduce it.
What is your method ?
Comment 2 jem 2011-08-05 13:24:49 UTC
Created attachment 62575 [details]
Before deleteing the message.
Comment 3 jem 2011-08-05 13:27:24 UTC
Created attachment 62576 [details]
After deleting the message.

I deleted the message using the Delete button. The window which once contained the message is still around, but without any content.
Comment 4 Martin Koller 2013-02-10 11:09:44 UTC
I can reproduce it with KDE 4.10.0. Simply open any message by double clicking, go to the messagelist from where you opened it and hit the delete key -> empty window.

And if you now click on "forward" in this empty window, kmail crashes:

Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f100237d780 (LWP 20518))]

Thread 8 (Thread 0x7f0ff8f39700 (LWP 20536)):
#0  0x00007f1015f338f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f100bd15eb7 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f100bd15ee9 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f1015f2fe0e in start_thread () from /lib64/libpthread.so.0
#4  0x00007f10181052cd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f0ff8620700 (LWP 20537)):
#0  0x00007f1010365600 in pthread_mutex_lock@plt () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f10103cf471 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f101039285e in g_main_context_acquire () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f1010393564 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f10103937a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f1018a90136 in QEventDispatcherGlib::processEvents (this=0x7f0ff00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f1018a6094f in QEventLoop::processEvents (this=this@entry=0x7f0ff861fe00, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f1018a60bd8 in QEventLoop::exec (this=0x7f0ff861fe00, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f10189630b0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#9  0x00007f101896608c in QThreadPrivate::start (arg=0x2c7ecb0) at thread/qthread_unix.cpp:338
#10 0x00007f1015f2fe0e in start_thread () from /lib64/libpthread.so.0
#11 0x00007f10181052cd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f0ff6b03700 (LWP 7468)):
#0  0x00007fffe15b5890 in clock_gettime ()
#1  0x00007f100edd6f7d in clock_gettime () from /lib64/librt.so.1
#2  0x00007f10189bbd84 in do_gettime (frac=0x7f0ff6b02b38, sec=0x7f0ff6b02b30) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f1018a90a3d in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f0fa8001260) at kernel/qeventdispatcher_unix.cpp:354
#5  0x00007f1018a90d83 in QTimerInfoList::timerWait (this=0x7f0fa8001260, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#6  0x00007f1018a8f7fc in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f0ff6b02c2c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f1018a8f8a5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f1010392ebf in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#9  0x00007f10103935ab in ?? () from /usr/lib64/libglib-2.0.so.0
#10 0x00007f10103937a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#11 0x00007f1018a90136 in QEventDispatcherGlib::processEvents (this=0x7f0fa80081f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f1018a6094f in QEventLoop::processEvents (this=this@entry=0x7f0ff6b02dd0, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f1018a60bd8 in QEventLoop::exec (this=0x7f0ff6b02dd0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f10189630b0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007f1018a410bf in QInotifyFileSystemWatcherEngine::run (this=0x3204680) at io/qfilesystemwatcher_inotify.cpp:256
#16 0x00007f101896608c in QThreadPrivate::start (arg=0x3204680) at thread/qthread_unix.cpp:338
#17 0x00007f1015f2fe0e in start_thread () from /lib64/libpthread.so.0
#18 0x00007f10181052cd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f0fac3bf700 (LWP 7677)):
#0  0x00007f1015f338f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f0fafa70f6f in ?? () from /usr/lib64/libvlccore.so.5
#2  0x00007f1015f2fe0e in start_thread () from /lib64/libpthread.so.0
#3  0x00007f10181052cd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f0f8d5ff700 (LWP 10928)):
#0  0x00007f1015f33c61 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1018966547 in wait (time=30000, this=0x68f2c90) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x68f3318, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f1018959d4f in QThreadPoolThread::run (this=0x68ffa80) at concurrent/qthreadpool.cpp:141
#4  0x00007f101896608c in QThreadPrivate::start (arg=0x68ffa80) at thread/qthread_unix.cpp:338
#5  0x00007f1015f2fe0e in start_thread () from /lib64/libpthread.so.0
#6  0x00007f10181052cd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f0f8de00700 (LWP 10930)):
#0  0x00007f1015f33c61 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1018966547 in wait (time=30000, this=0x6c81430) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x6c84068, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f1018959d4f in QThreadPoolThread::run (this=0x6c83980) at concurrent/qthreadpool.cpp:141
#4  0x00007f101896608c in QThreadPrivate::start (arg=0x6c83980) at thread/qthread_unix.cpp:338
#5  0x00007f1015f2fe0e in start_thread () from /lib64/libpthread.so.0
#6  0x00007f10181052cd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f0f8cbef700 (LWP 10937)):
#0  0x00007f1015f33c61 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1018966547 in wait (time=30000, this=0x273c490) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2740c38, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f1018959d4f in QThreadPoolThread::run (this=0x4e0c380) at concurrent/qthreadpool.cpp:141
#4  0x00007f101896608c in QThreadPrivate::start (arg=0x4e0c380) at thread/qthread_unix.cpp:338
#5  0x00007f1015f2fe0e in start_thread () from /lib64/libpthread.so.0
#6  0x00007f10181052cd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f100237d780 (LWP 20518)):
[KCrash Handler]
#5  0x00007f1013f1efe8 in MessageComposer::MessageFactory::identityUoid (this=this@entry=0x7fffe15736a0, msg=...) at /usr/src/debug/kdepim-4.10.0/messagecomposer/messagefactory.cpp:879
#6  0x00007f1013f26425 in MessageComposer::MessageFactory::createAttachedForward (this=0x7fffe15736a0, items=...) at /usr/src/debug/kdepim-4.10.0/messagecomposer/messagefactory.cpp:414
#7  0x00007f1019b871cd in KMForwardAttachedCommand::execute (this=0x44fd490) at /usr/src/debug/kdepim-4.10.0/kmail/kmcommands.cpp:997
#8  0x00007f1019b83f31 in KMCommand::slotPostTransfer (this=0x44fd490, result=KMCommand::OK) at /usr/src/debug/kdepim-4.10.0/kmail/kmcommands.cpp:272
#9  0x00007f1018a770ff in QMetaObject::activate (sender=0x44fd490, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffe1573880) at kernel/qobject.cpp:3548
#10 0x00007f1019b83d3e in KMCommand::messagesTransfered (this=this@entry=0x44fd490, _t1=_t1@entry=KMCommand::OK) at /usr/src/debug/kdepim-4.10.0/build/kmail/kmcommands.moc:117
#11 0x00007f1019b8a21e in KMCommand::start (this=0x44fd490) at /usr/src/debug/kdepim-4.10.0/kmail/kmcommands.cpp:251
#12 0x00007f1019b944b6 in KMReaderMainWin::slotForwardAttachedMsg (this=0x294bee0) at /usr/src/debug/kdepim-4.10.0/kmail/kmreadermainwin.cpp:253
#13 0x00007f1018a770ff in QMetaObject::activate (sender=0x3366ff0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffe1573ab0) at kernel/qobject.cpp:3548
#14 0x00007f1018f99652 in QAction::triggered(bool) () from /usr/lib64/libQtGui.so.4
#15 0x00007f1018f99840 in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQtGui.so.4
#16 0x00007f101935988f in ?? () from /usr/lib64/libQtGui.so.4
#17 0x00007f1019359b3c in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#18 0x00007f1019413e9a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQtGui.so.4
#19 0x00007f1018fef129 in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#20 0x00007f1018f9f85c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00007f1018fa453b in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#22 0x00007f101a7c9a96 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#23 0x00007f1018a61bfe in QCoreApplication::notifyInternal (this=0x7fffe1575220, receiver=0x56a8a30, event=0x7fffe1574360) at kernel/qcoreapplication.cpp:946
#24 0x00007f1018fa069b in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#25 0x00007f101901ae54 in ?? () from /usr/lib64/libQtGui.so.4
#26 0x00007f1019019be1 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#27 0x00007f101903ff72 in ?? () from /usr/lib64/libQtGui.so.4
#28 0x00007f10103933b5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f10103936e8 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f10103937a4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f1018a90136 in QEventDispatcherGlib::processEvents (this=0x1ff8670, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#32 0x00007f101903fbee in ?? () from /usr/lib64/libQtGui.so.4
#33 0x00007f1018a6094f in QEventLoop::processEvents (this=this@entry=0x7fffe1574ea0, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f1018a60bd8 in QEventLoop::exec (this=0x7fffe1574ea0, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f1018a65878 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#36 0x0000000000402e4d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-4.10.0/kmail/main.cpp:146
Comment 5 Laurent Montel 2013-02-11 06:45:05 UTC
Git commit d67d3e962112f4c535120b8de91285ff910b2a31 by Montel Laurent.
Committed on 11/02/2013 at 07:44.
Pushed by mlaurent into branch 'KDE/4.10'.

Fix Bug 279436 - Deleting a message does not close the window displaying it.

FIXED-IN: 4.10.1

M  +3    -0    kmail/kmreadermainwin.cpp

http://commits.kde.org/kdepim/d67d3e962112f4c535120b8de91285ff910b2a31