Bug 256463

Summary: crash when making HDR layer from 8 bit images with bracketing
Product: [Applications] krita Reporter: Will Blaylock <wblalok>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED LATER    
Severity: crash CC: halla, wblalok
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi

Description Will Blaylock 2010-11-09 19:25:02 UTC
Application: krita (2.2.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-26-generic x86_64
Distribution: Ubuntu 10.04.1 LTS

-- Information about the crash:
KDE is the default Kubuntu 10.04 with all updates to 2010/11/09.0600z
Koffice/Krita was compiled from the 2.2.2 tarball unmodified.

After selecting any number of images I have tried so far and then selecting either "calibrate camera response" or "create hdr layer" it will crunch for a few seconds and then crash.

The crash can be reproduced every time.

 -- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff92dc0b7c0 (LWP 1948))]

Thread 12 (Thread 0x7ff91a1b4710 (LWP 1949)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff92d43e72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0xfb2180, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xfb2180, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007ff92d43a680 in QSemaphore::acquire (this=0x7ff92cd008b0, n=1) at thread/qsemaphore.cpp:142
#4  0x00007ff92c9b25ee in KisTileDataPooler::waitForWork (this=0x7ff92cd008a0) at /compile/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:133
#5  0x00007ff92c9b2a88 in KisTileDataPooler::run (this=0x7ff92cd008a0) at /compile/koffice/krita/image/tiles3/kis_tile_data_pooler.cc:162
#6  0x00007ff92d43d775 in QThreadPrivate::start (arg=0x7ff92cd008a0) at thread/qthread_unix.cpp:248
#7  0x00007ff92b916953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#8  0x00007ff92d1ad9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007ff92560070d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7ff905f49710 (LWP 1951)):
#0  __libc_enable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:66
#1  0x00007ff9255f8fe5 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x00007ff92d558a9e in qt_safe_select (nfds=19, fdread=0x431bf00, fdwrite=0x431c198, fdexcept=0x431c430, orig_timeout=0x0) at kernel/qcore_unix.cpp:143
#3  0x00007ff92d55e0bd in QEventDispatcherUNIXPrivate::doSelect (this=0x431bd40, flags=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:218
#4  0x00007ff92d55eeab in QEventDispatcherUNIX::processEvents (this=0x10c6840, flags=) at kernel/qeventdispatcher_unix.cpp:920
#5  0x00007ff92d530992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007ff92d530d6c in QEventLoop::exec (this=0x7ff905f48c90, flags=) at kernel/qeventloop.cpp:201
#7  0x00007ff92d43ad59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x00007ff92d511178 in QInotifyFileSystemWatcherEngine::run (this=0x42f3ca0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007ff92d43d775 in QThreadPrivate::start (arg=0x42f3ca0) at thread/qthread_unix.cpp:248
#10 0x00007ff92b916953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#11 0x00007ff92d1ad9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007ff92560070d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7ff90269c710 (LWP 1962)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007ff90269ba20 in ?? ()
#2  0x00007ffff8dff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 9 (Thread 0x7ff90169a710 (LWP 1987)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007ff901699b00 in ?? ()
#2  0x00007ffff8dff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 8 (Thread 0x7ff900e99710 (LWP 1988)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007ff900e98a20 in ?? ()
#2  0x00007ffff8dff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 7 (Thread 0x7ff901e9b710 (LWP 1989)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007ff901e9ab00 in ?? ()
#2  0x00007ffff8dff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 6 (Thread 0x7ff8f44a0710 (LWP 1990)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007ff8f449fb00 in ?? ()
#2  0x00007ffff8dff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 5 (Thread 0x7ff8f3c67710 (LWP 1991)):
#0  0x00007ff9255f8ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ff92d558a9e in qt_safe_select (nfds=37, fdread=0xe45d4e0, fdwrite=0xe45d778, fdexcept=0xe45da10, orig_timeout=0x0) at kernel/qcore_unix.cpp:143
#2  0x00007ff92d55e0bd in QEventDispatcherUNIXPrivate::doSelect (this=0xe45d320, flags=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:218
#3  0x00007ff92d55eeab in QEventDispatcherUNIX::processEvents (this=0xe3762e0, flags=) at kernel/qeventdispatcher_unix.cpp:920
#4  0x00007ff92d530992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007ff92d530d6c in QEventLoop::exec (this=0x7ff8f3c66cd0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007ff92d43ad59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007ff92d43d775 in QThreadPrivate::start (arg=0xe375bb0) at thread/qthread_unix.cpp:248
#8  0x00007ff92b916953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#9  0x00007ff92d1ad9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007ff92560070d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff8f342e710 (LWP 1993)):
#0  0x00007ff9255f8ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ff92d558a9e in qt_safe_select (nfds=39, fdread=0x10049dc0, fdwrite=0x1004a058, fdexcept=0x1004a2f0, orig_timeout=0x0) at kernel/qcore_unix.cpp:143
#2  0x00007ff92d55e0bd in QEventDispatcherUNIXPrivate::doSelect (this=0x10049c00, flags=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:218
#3  0x00007ff92d55eeab in QEventDispatcherUNIX::processEvents (this=0x10049be0, flags=) at kernel/qeventdispatcher_unix.cpp:920
#4  0x00007ff92d530992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007ff92d530d6c in QEventLoop::exec (this=0x7ff8f342dcd0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007ff92d43ad59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007ff92d43d775 in QThreadPrivate::start (arg=0xff5e280) at thread/qthread_unix.cpp:248
#8  0x00007ff92b916953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#9  0x00007ff92d1ad9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007ff92560070d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff8f2bf5710 (LWP 1994)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007ff8f2bf4b00 in ?? ()
#2  0x00007ffff8dff852 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7ff8f23bc710 (LWP 1995)):
#0  0x00007ff9255f8ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ff92d558a9e in qt_safe_select (nfds=43, fdread=0x137d7090, fdwrite=0x137d7328, fdexcept=0x137d75c0, orig_timeout=0x0) at kernel/qcore_unix.cpp:143
#2  0x00007ff92d55e0bd in QEventDispatcherUNIXPrivate::doSelect (this=0x137d6ed0, flags=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:218
#3  0x00007ff92d55eeab in QEventDispatcherUNIX::processEvents (this=0x137507e0, flags=) at kernel/qeventdispatcher_unix.cpp:920
#4  0x00007ff92d530992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007ff92d530d6c in QEventLoop::exec (this=0x7ff8f23bbcd0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007ff92d43ad59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007ff92d43d775 in QThreadPrivate::start (arg=0x137500b0) at thread/qthread_unix.cpp:248
#8  0x00007ff92b916953 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#9  0x00007ff92d1ad9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007ff92560070d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff92dc0b7c0 (LWP 1948)):
[KCrash Handler]
#5  QBasicAtomicInt::deref (this=0x13749e40, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qatomic_x86_64.h:133
#6  KisSharedData::deref (this=0x13749e40, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_shared_data.h:42
#7  KisSharedPtr<KisSharedData>::deref (this=0x13749e40, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_shared_ptr.h:218
#8  KisSharedPtr<KisSharedData>::deref (this=0x13749e40, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_shared_ptr.h:227
#9  ~KisSharedPtr (this=0x13749e40, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_shared_ptr.h:107
#10 ~KisWeakSharedPtr (this=0x13749e40, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_shared_ptr.h:249
#11 ~Private (this=0x13749e40, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_node_facade.cpp:25
#12 ~KisNodeFacade (this=0x13749e40, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_node_facade.cpp:43
#13 0x00007ff92ca2f2ce in ~KisImage (this=0x13749e30, __in_chrg=<value optimized out>) at /compile/koffice/krita/image/kis_image.cc:165
#14 0x00007ff8fea7d4c0 in KisSharedPtr<KisImage>::deref (this=<value optimized out>, data=0xff62b70) at /compile/koffice/krita/image/kis_shared_ptr.h:220
#15 KisSharedPtr<KisImage>::deref (this=<value optimized out>, data=0xff62b70) at /compile/koffice/krita/image/kis_shared_ptr.h:227
#16 ~KisSharedPtr (this=<value optimized out>, data=0xff62b70) at /compile/koffice/krita/image/kis_shared_ptr.h:107
#17 ~BracketingFrame (this=<value optimized out>, data=0xff62b70) at /compile/koffice/krita/plugins/extensions/bracketing2hdr/bracketing2hdr.h:45
#18 QList<Bracketing2HDRPlugin::BracketingFrame>::node_destruct (this=<value optimized out>, data=0xff62b70) at /usr/include/qt4/QtCore/qlist.h:402
#19 QList<Bracketing2HDRPlugin::BracketingFrame>::free (this=<value optimized out>, data=0xff62b70) at /usr/include/qt4/QtCore/qlist.h:646
#20 0x00007ff8fea7b076 in Bracketing2HDRPlugin::computeCameraResponse (this=0x6260890) at /compile/koffice/krita/plugins/extensions/bracketing2hdr/bracketing2hdr.cc:358
#21 0x00007ff8fea7b988 in Bracketing2HDRPlugin::slotNewHDRLayerFromBracketing (this=0x6260890) at /compile/koffice/krita/plugins/extensions/bracketing2hdr/bracketing2hdr.cc:174
#22 0x00007ff8fea7cd18 in Bracketing2HDRPlugin::qt_metacall (this=0x6260890, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7ffff8deb340)
    at /compile/koffice/build/krita/plugins/extensions/bracketing2hdr/bracketing2hdr.moc:80
#23 0x00007ff92d544e3f in QMetaObject::activate (sender=0x6260470, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x20b20) at kernel/qobject.cpp:3293
#24 0x00007ff926b78032 in QAction::triggered (this=0x69e3b70, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#25 0x00007ff926b7a0ab in QAction::activate (this=0x6260470, event=<value optimized out>) at kernel/qaction.cpp:1255
#26 0x00007ff926fb939d in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x6260470, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#27 0x00007ff926fbedda in QMenuPrivate::activateAction (this=0x6a1fb70, action=0x6260470, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#28 0x00007ff927965cee in KMenu::mouseReleaseEvent (this=0x6a03ee0, e=0x0) at ../../kdeui/widgets/kmenu.cpp:471
#29 0x00007ff926bd4582 in QWidget::event (this=0x6a03ee0, event=0x7ffff8debf90) at kernel/qwidget.cpp:7998
#30 0x00007ff926fc0f9b in QMenu::event (this=0x6a03ee0, e=0x7ffff8debf90) at widgets/qmenu.cpp:2414
#31 0x00007ff926b7e22c in QApplicationPrivate::notify_helper (this=0xff3740, receiver=0x6a03ee0, e=0x7ffff8debf90) at kernel/qapplication.cpp:4300
#32 0x00007ff926b84ecb in QApplication::notify (this=0x7ffff8deca90, receiver=0x6a03ee0, e=0x7ffff8debf90) at kernel/qapplication.cpp:3865
#33 0x00007ff927889526 in KApplication::notify (this=0x7ffff8deca90, receiver=0x6a03ee0, event=0x7ffff8debf90) at ../../kdeui/kernel/kapplication.cpp:302
#34 0x00007ff92d53206c in QCoreApplication::notifyInternal (this=0x7ffff8deca90, receiver=0x6a03ee0, event=0x7ffff8debf90) at kernel/qcoreapplication.cpp:704
#35 0x00007ff926b840ae in QCoreApplication::sendEvent (receiver=0x6a03ee0, event=0x7ffff8debf90, alienWidget=0x0, nativeWidget=0x6a03ee0, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QApplicationPrivate::sendMouseEvent (receiver=0x6a03ee0, event=0x7ffff8debf90, alienWidget=0x0, nativeWidget=0x6a03ee0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#37 0x00007ff926c043dd in QETWidget::translateMouseEvent (this=0x6a03ee0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#38 0x00007ff926c028ac in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7ffff8dec8c0) at kernel/qapplication_x11.cpp:3501
#39 0x00007ff926c2f199 in QEventDispatcherX11::processEvents (this=<value optimized out>, flags=) at kernel/qeventdispatcher_x11.cpp:132
#40 0x00007ff92d530992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#41 0x00007ff92d530d6c in QEventLoop::exec (this=0x7ffff8deca40, flags=) at kernel/qeventloop.cpp:201
#42 0x00007ff92d534aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#43 0x00007ff92d849f85 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /compile/koffice/krita/main.cc:49
#44 0x00007ff925538c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7ffff8decc28) at libc-start.c:226
#45 0x00000000004008e9 in _start ()

Reported using DrKonqi
Comment 1 Will Blaylock 2010-11-09 19:51:50 UTC
I have command line output saved for the crash that generated this report if that helps any.

I also have the build directory intact, the .deb created by checkinstall etc.

I do not know if this will let me add more lines than DrKonqui so here is the extra data

the ccmake output
http://gaelicgrime.pastebin.com/gRyKJe3F

the command line output
http://gaelicgrime.pastebin.com/g97nz2Z8

Koffice compile refused to find a couple of libraries that may I know are installed as well as the -dev because other software has used them and synaptic reports them installed as does "sudo apt-get build-dep krita".

Everything I have tried so far seems to work fine except this one item.

I have loaded and edited EXR images created with pfstools, exported 8 bit tonemapped images, rescaled, etc.

I can be contacted and the spam filtering on the login account here are pretty much not active.
Comment 2 Will Blaylock 2010-11-19 17:33:39 UTC
Created attachment 53552 [details]
New crash information added by DrKonqi

Last report I believe was pressing the "create HDR" layer button, this one is pressing the "calibrate camera response" button.

Several reboots and a couple of updates later.  Still running 10.04 Kubuntu default with Koffice compiled from 2.2.2 tarball unmodified.

I have not yet found a single instance where creating an HDR image from LDR sources has succeeded.
Comment 3 Halla Rempt 2011-03-26 11:05:10 UTC
Hi. Sorry for the late response. It turns out that we had disabled the bracketing-to-hdr plugin for 2.3 and it's still disable in git master. I'm not totally sure what Cyrille intends to do with this plugin, fix it and move it to krita-extensions, fix it and keep it in krita. But I can definitely reproduce your bug.
Comment 4 Halla Rempt 2011-03-26 11:30:20 UTC
Git commit 95663ba3307372b06bcd3ec5714e4c94fd36722f by Boudewijn Rempt.
Committed on 26/03/2011 at 11:31.
Pushed by rempt into branch 'master'.

re-attach the popup to the toolbar if the user hides it

BUG:256463

M  +15   -6    krita/ui/widgets/kis_paintop_presets_popup.cpp     
M  +8    -7    krita/ui/widgets/kis_paintop_presets_popup.h     

http://commits.kde.org/calligra/95663ba3307372b06bcd3ec5714e4c94fd36722f
Comment 5 Sven Langkamp 2011-03-26 13:49:20 UTC
Commit closed the wrong bug. Reopened
Comment 6 Halla Rempt 2011-10-16 12:51:58 UTC
For now, I'm assuming that this plugin will not be resurrected for 2.4 either.