The malloc line (digikam(6056,0x11bc99000) malloc: *** error for object 0x3f800000: pointer being freed was not allocated) seems like a low-level crash, furthermore you can see from the backtrace, that it crashes in QMutexPrivate::wakeUp () and two lines up you can see semaphore_signal_trap(), so I guess, that there is something wrong with Qt and handling threads on mac.<div>
<br></div><div>Marty<br><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 07:36, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Why a Qt bug Martin ?<br>
<br>
It sound like something in BQM is wrong, probably with memory allocation<br>
<br>
I can see another crash with BQM if i press B key to lauch it.<br>
<br>
I will run valgrind to investiguate<br>
<br>
Gilles<br>
<br>
2010/11/1 Martin Klapetek <<a href="mailto:martin.klapetek@gmail.com">martin.klapetek@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Seems like Qt bug, no?<br>
><br>
> Marty<br>
><br>
> On 1 Nov 2010 23:22, "Gilles Caulier" <<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I successfuly compile all code from trunk under macosx through<br>
>> macports project. KDE 4.5.2 and Qt4.7 are there.<br>
>><br>
>> When i right click on an icon view item to lauch context menu, digiKam<br>
>> crash violently. Look trace below :<br>
>><br>
>> digikam(6056,0x11bc99000) malloc: *** error for object 0x3f800000:<br>
>> pointer being freed was not allocated<br>
>> *** set a breakpoint in malloc_error_break to debug<br>
>> digikam(6056,0x11bdc5000) malloc: *** error for object 0x3f800000:<br>
>> pointer being freed was not allocated<br>
>> *** set a breakpoint in malloc_error_break to debug<br>
>><br>
>> Program received signal SIGABRT, Aborted.<br>
>> 0x00007fff86c26312 in semaphore_signal_trap ()<br>
>> (gdb) bt<br>
>> #0 0x00007fff86c26312 in semaphore_signal_trap ()<br>
>> #1 0x00007fff86c2baf5 in pthread_mutex_unlock ()<br>
>> #2 0x00000001047529a8 in QMutexPrivate::wakeUp ()<br>
>> #3 0x0000000101b82f22 in Digikam::ThreadManager::schedule<br>
>> (this=0x11b754e70, runnable=0x14cfce0a0) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/libs/threads/threadmanager.cpp:242<br>
>> #4 0x0000000101b8570a in Digikam::DynamicThread::start<br>
>> (this=0x14cfcdf60, locker=@0x7fff5fbfcff0) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/libs/threads/dynamicthread.cpp:172<br>
>> #5 0x0000000101b85749 in Digikam::DynamicThread::start<br>
>> (this=0x14cfcdf60) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/libs/threads/dynamicthread.cpp:142<br>
>> #6 0x00000001019a78d8 in Digikam::DImgThreadedFilter::startFilter<br>
>> (this=0x14cfcdf60) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/libs/dimg/filters/dimgthreadedfilter.cpp:122<br>
>> #7 0x0000000101bed980 in Digikam::PreviewThreadWrapper::startFilters<br>
>> (this=0x14cfbef40) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/utilities/imageeditor/widgets/previewlist.cpp:120<br>
>> #8 0x0000000101beda62 in Digikam::PreviewList::startFilters<br>
>> (this=0x14cfbc510) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/utilities/imageeditor/widgets/previewlist.cpp:262<br>
>> #9 0x00000001019dd522 in<br>
>> Digikam::BWSepiaSettings::startPreviewFilters (this=0x14cfb9170) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/libs/dimg/filters/bw/bwsepiasettings.cpp:428<br>
>> #10 0x00000001001a9d12 in Digikam::BWConvert::BWConvert<br>
>> (this=0x14cfab090, parent=0x14c410600) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/utilities/queuemanager/basetools/color/bwconvert.cpp:56<br>
>> #11 0x00000001001975e2 in<br>
>> Digikam::BatchToolsManager::BatchToolsManager (this=0x14c410600,<br>
>> parent=0x126cf20d0) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/utilities/queuemanager/batchtoolsmanager.cpp:116<br>
>> #12 0x0000000100188bce in Digikam::QueueMgrWindow::QueueMgrWindow<br>
>> (this=0x126cf20d0) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/utilities/queuemanager/queuemgrwindow.cpp:134<br>
>> #13 0x0000000100188f84 in Digikam::QueueMgrWindow::queueManagerWindow<br>
>> () at<br>
>> /Users/agnes/Devel/trunk/graphics/digikam/utilities/queuemanager/queuemgrwindow.cpp:105<br>
>> #14 0x000000010024ccf7 in<br>
>> Digikam::ContextMenuHelper::addQueueManagerMenu (this=0x7fff5fbfd7c0)<br>
>> at<br>
>> /Users/agnes/Devel/trunk/graphics/digikam/digikam/contextmenuhelper.cpp:717<br>
>> #15 0x0000000100281ded in<br>
>> Digikam::DigikamImageView::showContextMenuOnInfo (this=0x107a96550,<br>
>> event=0x7fff5fbfe5d0, info=@0x7fff5fbfd8d0) at<br>
>> /Users/agnes/Devel/trunk/graphics/digikam/digikam/digikamimageview.cpp:212<br>
>> #16 0x000000010029e52a in<br>
>> Digikam::ImageCategorizedView::showContextMenuOnIndex<br>
>> (this=0x107a96550, event=0x7fff5fbfe5d0, index=@0x7fff5fbfd920) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/digikam/imagecategorizedview.cpp:491<br>
>> #17 0x0000000101b90b23 in Digikam::DCategorizedView::contextMenuEvent<br>
>> (this=0x107a96550, event=0x7fff5fbfe5d0) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/libs/widgets/common/dcategorizedview.cpp:537<br>
>> #18 0x00000001037a4c11 in QWidget::event ()<br>
>> #19 0x0000000103afe24c in QFrame::event ()<br>
>> #20 0x0000000103b89457 in QAbstractScrollArea::viewportEvent ()<br>
>> #21 0x0000000103c1a78b in QAbstractItemView::viewportEvent ()<br>
>> #22 0x0000000101b901d2 in Digikam::DCategorizedView::viewportEvent<br>
>> (this=0x107a96550, event=0x7fff5fbfe5d0) at<br>
>><br>
>> /Users/agnes/Devel/trunk/graphics/digikam/libs/widgets/common/dcategorizedview.cpp:704<br>
>> #23 0x0000000103b8b930 in QAbstractScrollAreaFilter::eventFilter ()<br>
>> #24 0x0000000104875ce7 in<br>
>> QCoreApplicationPrivate::sendThroughObjectEventFilters ()<br>
>> #25 0x000000010374e3be in QApplicationPrivate::notify_helper ()<br>
>> #26 0x00000001037533e2 in QApplication::notify ()<br>
>> #27 0x000000010329e59e in KApplication::notify ()<br>
>> #28 0x000000010479b5ac in QCoreApplication::notifyInternal ()<br>
>> #29 0x000000010374d56c in qt_sendSpontaneousEvent ()<br>
>> #30 0x0000000103704e10 in qt_mac_handleMouseEvent ()<br>
>> #31 0x00007fff83d90483 in -[NSWindow sendEvent:] ()<br>
>> #32 0x00000001036fcc26 in -[QCocoaWindow sendEvent:] ()<br>
>> #33 0x00007fff83cc4ee2 in -[NSApplication sendEvent:] ()<br>
>> #34 0x0000000103700198 in -[QNSApplication sendEvent:] ()<br>
>> #35 0x00007fff83c5b922 in -[NSApplication run] ()<br>
>> #36 0x0000000103709ca5 in QEventDispatcherMac::processEvents ()<br>
>> #37 0x00000001048753a4 in QEventLoop::processEvents ()<br>
>> #38 0x00000001048756c4 in QEventLoop::exec ()<br>
>> #39 0x0000000104876ccc in QCoreApplication::exec ()<br>
>> #40 0x00000001003750c1 in main (argc=1, argv=0x7fff5fbff790) at<br>
>> /Users/agnes/Devel/trunk/graphics/digikam/digikam/main.cpp:195<br>
>> #41 0x000000010000fae4 in start () at qstring.h:882<br>
>> (gdb)<br>
>><br>
>> Any suggestions ?<br>
>><br>
>> Gilles Caulier<br>
>> _______________________________________________<br>
>> Digikam-devel mailing list<br>
>> <a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
>> <a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
><br>
> _______________________________________________<br>
> Digikam-devel mailing list<br>
> <a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
><br>
><br>
_______________________________________________<br>
Digikam-devel mailing list<br>
<a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-devel" target="_blank">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
</div></div></blockquote></div><br></div>