[Kde-imaging] [kipiplugins] [Bug 348333] New: Application crashes if I click Cancel while resizing images

Alexander Potashev aspotashev at gmail.com
Wed May 27 21:12:35 UTC 2015


https://bugs.kde.org/show_bug.cgi?id=348333

            Bug ID: 348333
           Summary: Application crashes if I click Cancel while resizing
                    images
           Product: kipiplugins
           Version: 4.10.0
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: SendImages
          Assignee: kde-imaging at kde.org
          Reporter: aspotashev at gmail.com

See steps to reproduce below.

Reproducible: Always

Steps to Reproduce:
1. Run the "Email images" plugin, I use "./kipicmd -w -a "Email Images..."
--selectedimages ~/testimages/test10*".
2. Add a few large JPEG images to the list for exporting.
3. Choose the PNG as the output format, select maximum resolution to make
resizing even slower.
4. Start the exporting.
5. Click "Cancel" in the progress dialog while the images are being
resized/encoded.

Actual Results:  
kipicmd crashes, GDB reports the following:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4ff418a in QWidgetPrivate::deleteTLSysExtra() () from
/usr/lib64/qt4/libQtGui.so.4

See a full backtrace below.

Expected Results:  
Resize canceled and the dialog either not closed or closed gracefully without
crashing the host application.

Full backtrace:

(gdb) thread apply all bt

Thread 8 (Thread 0x7fffc6140700 (LWP 25792)):
#0  0x00007ffff27a840f in png_write_find_filter () from
/usr/lib64/libpng16.so.16
#1  0x00007ffff27a2eb8 in png_write_row () from /usr/lib64/libpng16.so.16
#2  0x00007ffff27a317f in png_write_rows () from /usr/lib64/libpng16.so.16
#3  0x00007ffff74a184f in KIPIPlugins::KPWriteImage::write2PNG
(this=this at entry=0x7fffc613fc10, destPath=...)
    at
/home/aspotashev/kde-git/kipi-plugins/common/libkipiplugins/tools/imageio/kpwriteimage.cpp:514
#4  0x00007fffc812b850 in KIPISendimagesPlugin::Task::imageResize
(this=this at entry=0xd8bb40, settings=..., orgUrl=..., destName=..., err=...)
    at /home/aspotashev/kde-git/kipi-plugins/sendimages/imageresize.cpp:196
#5  0x00007fffc812bb64 in KIPISendimagesPlugin::Task::run (this=0xd8bb40) at
/home/aspotashev/kde-git/kipi-plugins/sendimages/imageresize.cpp:83
#6  0x00007ffff2e8a9a2 in
ThreadWeaver::JobRunHelper::runTheJob(ThreadWeaver::Thread*,
ThreadWeaver::Job*) () from /usr/lib64/libthreadweaver.so.4
#7  0x00007ffff2e8ab5e in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) ()
from /usr/lib64/libthreadweaver.so.4
#8  0x00007ffff2e8c5fb in
ThreadWeaver::JobCollectionJobRunner::execute(ThreadWeaver::Thread*) () from
/usr/lib64/libthreadweaver.so.4
#9  0x00007ffff2e8a3ab in ThreadWeaver::Thread::run() () from
/usr/lib64/libthreadweaver.so.4
#10 0x00007ffff49383bf in QThreadPrivate::start(void*) () from
/usr/lib64/qt4/libQtCore.so.4
#11 0x00007ffff46aa204 in start_thread () from /lib64/libpthread.so.0
#12 0x00007ffff3bd03dd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7fffc6941700 (LWP 25791)):
#0  0x00007ffff256d457 in longest_match () from /lib64/libz.so.1
#1  0x00007ffff256ddf0 in deflate_slow () from /lib64/libz.so.1
#2  0x00007ffff256eeaa in deflate () from /lib64/libz.so.1
#3  0x00007ffff27a798a in png_compress_IDAT () from /usr/lib64/libpng16.so.16
#4  0x00007ffff27a85ec in png_write_find_filter () from
/usr/lib64/libpng16.so.16
#5  0x00007ffff27a2eb8 in png_write_row () from /usr/lib64/libpng16.so.16
#6  0x00007ffff27a317f in png_write_rows () from /usr/lib64/libpng16.so.16
#7  0x00007ffff74a184f in KIPIPlugins::KPWriteImage::write2PNG
(this=this at entry=0x7fffc6940c10, destPath=...)
---Type <return> to continue, or q <return> to quit---
    at
/home/aspotashev/kde-git/kipi-plugins/common/libkipiplugins/tools/imageio/kpwriteimage.cpp:514
#8  0x00007fffc812b850 in KIPISendimagesPlugin::Task::imageResize
(this=this at entry=0xd82b50, settings=..., orgUrl=..., destName=..., err=...)
    at /home/aspotashev/kde-git/kipi-plugins/sendimages/imageresize.cpp:196
#9  0x00007fffc812bb64 in KIPISendimagesPlugin::Task::run (this=0xd82b50) at
/home/aspotashev/kde-git/kipi-plugins/sendimages/imageresize.cpp:83
#10 0x00007ffff2e8a9a2 in
ThreadWeaver::JobRunHelper::runTheJob(ThreadWeaver::Thread*,
ThreadWeaver::Job*) () from /usr/lib64/libthreadweaver.so.4
#11 0x00007ffff2e8ab5e in ThreadWeaver::Job::execute(ThreadWeaver::Thread*) ()
from /usr/lib64/libthreadweaver.so.4
#12 0x00007ffff2e8c5fb in
ThreadWeaver::JobCollectionJobRunner::execute(ThreadWeaver::Thread*) () from
/usr/lib64/libthreadweaver.so.4
#13 0x00007ffff2e8a3ab in ThreadWeaver::Thread::run() () from
/usr/lib64/libthreadweaver.so.4
#14 0x00007ffff49383bf in QThreadPrivate::start(void*) () from
/usr/lib64/qt4/libQtCore.so.4
#15 0x00007ffff46aa204 in start_thread () from /lib64/libpthread.so.0
#16 0x00007ffff3bd03dd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7fffc7142700 (LWP 25790)):
#0  0x00007ffff46ae54f in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007ffff49388a6 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffff235a5b1 in KDcrawIface::RActionThreadBase::run() () from
/usr/lib64/libkdcraw.so.23
#3  0x00007ffff49383bf in QThreadPrivate::start(void*) () from
/usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffff46aa204 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff3bd03dd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7fffc8119700 (LWP 25784)):
#0  0x00007ffff46ae54f in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007ffff49388a6 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffff749db8d in KIPIPlugins::KPRawThumbThread::run (this=0xab5350) at
/home/aspotashev/kde-git/kipi-plugins/common/libkipiplugins/tools/kprawthumbthread.cpp:108
#3  0x00007ffff49383bf in QThreadPrivate::start(void*) () from
/usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffff46aa204 in start_thread () from /lib64/libpthread.so.0
#5  0x00007ffff3bd03dd in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---

Thread 4 (Thread 0x7fffc917b700 (LWP 25783)):
#0  0x00007ffff3bc77ed in poll () from /lib64/libc.so.6
#1  0x00007fffd16adf28 in linux_udev_event_thread_main () from
/lib64/libusb-1.0.so.0
#2  0x00007ffff46aa204 in start_thread () from /lib64/libpthread.so.0
#3  0x00007ffff3bd03dd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fffe5b1c700 (LWP 25779)):
#0  0x00007ffff3bc77ed in poll () from /lib64/libc.so.6
#1  0x00007fffef87e944 in g_main_context_iterate.isra () from
/usr/lib64/libglib-2.0.so.0
#2  0x00007fffef87ea4c in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#3  0x00007ffff4a6677e in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffff4a386ff in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffff4a389f5 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffff4935cdf in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffff4a19fc3 in QInotifyFileSystemWatcherEngine::run() () from
/usr/lib64/qt4/libQtCore.so.4
#8  0x00007ffff49383bf in QThreadPrivate::start(void*) () from
/usr/lib64/qt4/libQtCore.so.4
#9  0x00007ffff46aa204 in start_thread () from /lib64/libpthread.so.0
#10 0x00007ffff3bd03dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ffff7f83780 (LWP 25770)):
#0  0x00007ffff4ff418a in QWidgetPrivate::deleteTLSysExtra() () from
/usr/lib64/qt4/libQtGui.so.4
#1  0x00007ffff4fab785 in QWidgetPrivate::deleteExtra() () from
/usr/lib64/qt4/libQtGui.so.4
#2  0x00007ffff4fab9ad in QWidgetPrivate::~QWidgetPrivate() () from
/usr/lib64/qt4/libQtGui.so.4
#3  0x00007ffff53d9ac7 in QDialogPrivate::~QDialogPrivate() () from
/usr/lib64/qt4/libQtGui.so.4
#4  0x00007ffff4a52755 in QObject::~QObject() () from
/usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffff4fb43bc in QWidget::~QWidget() () from
/usr/lib64/qt4/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff74a3309 in
KIPIPlugins::KPBatchProgressDialog::~KPBatchProgressDialog (this=0xd8bad0,
__in_chrg=<optimized out>)
    at
/home/aspotashev/kde-git/kipi-plugins/common/libkipiplugins/dialogs/kpbatchprogressdialog.cpp:237
#7  0x00007fffc812c006 in KIPISendimagesPlugin::SendImages::~SendImages
(this=0xa81b80, __in_chrg=<optimized out>)
    at /home/aspotashev/kde-git/kipi-plugins/sendimages/sendimages.cpp:117
#8  0x00007fffc812c089 in KIPISendimagesPlugin::SendImages::~SendImages
(this=0xa81b80, __in_chrg=<optimized out>)
    at /home/aspotashev/kde-git/kipi-plugins/sendimages/sendimages.cpp:119
#9  0x00007ffff4a50188 in QObjectPrivate::deleteChildren() () from
/usr/lib64/qt4/libQtCore.so.4
#10 0x00007ffff4a5271f in QObject::~QObject() () from
/usr/lib64/qt4/libQtCore.so.4
#11 0x00007fffc8125399 in
KIPISendimagesPlugin::Plugin_SendImages::~Plugin_SendImages (this=0xa17400,
__in_chrg=<optimized out>)
    at
/home/aspotashev/kde-git/kipi-plugins/sendimages/plugin_sendimages.cpp:84
#12 0x00007ffff4a50188 in QObjectPrivate::deleteChildren() () from
/usr/lib64/qt4/libQtCore.so.4
#13 0x00007ffff4a5271f in QObject::~QObject() () from
/usr/lib64/qt4/libQtCore.so.4
#14 0x00000000004087d9 in KipiInterface::~KipiInterface (this=0x7dc470,
__in_chrg=<optimized out>) at
/home/aspotashev/kde-git/kipi-plugins/tests/kipiinterface.cpp:71
#15 0x00007ffff4a50188 in QObjectPrivate::deleteChildren() () from
/usr/lib64/qt4/libQtCore.so.4
#16 0x00007ffff4a5271f in QObject::~QObject() () from
/usr/lib64/qt4/libQtCore.so.4
#17 0x00007ffff4f696e9 in QApplication::~QApplication() () from
/usr/lib64/qt4/libQtGui.so.4
#18 0x0000000000407fb1 in main (argc=<optimized out>, argv=<optimized out>) at
/home/aspotashev/kde-git/kipi-plugins/tests/main.cpp:477
(gdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-imaging mailing list