[Digikam-devel] Re: macosx - macport - crash when i lauch icon view context menu

Martin Klapetek martin.klapetek at gmail.com
Tue Nov 2 08:16:05 GMT 2010


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.

Marty

On Tue, Nov 2, 2010 at 07:36, Gilles Caulier <caulier.gilles at gmail.com>wrote:

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


More information about the Digikam-devel mailing list