[digikam] [Bug 340389] New: Digikam crashes while editing pictures for color balancing on OSX

classic Classic list List threaded Threaded
55 messages Options
123
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

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

--- Comment #33 from [hidden email] ---
Git commit 7d3fc12ad85e7192b7d52076d4837dfea6956ac6 by Gilles Caulier.
Committed on 03/07/2016 at 12:14.
Pushed by cgilles into branch 'master'.

add new test CLI tool for color balance algoritm

M  +20   -0    tests/dimg/CMakeLists.txt
C  +6    -5    tests/dimg/testcolorbalancefilter.cpp [from:
tests/dimg/testequalizefilter.cpp - 087% similarity]
M  +1    -1    tests/dimg/testequalizefilter.cpp

http://commits.kde.org/digikam/7d3fc12ad85e7192b7d52076d4837dfea6956ac6

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #34 from [hidden email] ---
MAik,

The crash do not appear to be in algorithm itself. With my CLI color balance
test tool, it do not crash and color changes are well applied :

bash-3.2$ uname -a
Darwin MacBook-Pro-de-Gilles.local 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr
19 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
bash-3.2$ pwd
/Users/gilles/Devel/GIT/5.x/core/tests/dimg
bash-3.2$ ./testcolorbalancefilter DSC02442.JPG
digikam.dimg: "DSC02442.JPG"  : JPEG file identified
QCoreApplication::arguments: Please instantiate the QApplication object first
digikam.metaengine: Loading image history  "<?xml version=\"1.0\"?>\n<history
version=\"1\">\n    <filter filterName=\"digikam:LocalContrastFilter\"
filterDisplayName=\"Local Contrast Filter\" filterVersion=\"2\"
filterCategory=\"reproducible\" branch=\"true\">\n        <params>\n          
<param name=\"functionId\" value=\"0\"/>\n            <param
name=\"highSaturation\" value=\"100\"/>\n            <param
name=\"lowSaturation\" value=\"95\"/>\n            <param name=\"randomSeed\"
value=\"1657671516\"/>\n            <param name=\"stage[0]:blur\"
value=\"76\"/>\n            <param name=\"stage[0]:enabled\" value=\"true\"/>\n
           <param name=\"stage[0]:power\" value=\"29.6\"/>\n            <param
name=\"stage[1]:enabled\" value=\"false\"/>\n            <param
name=\"stage[2]:enabled\" value=\"false\"/>\n            <param
name=\"stage[3]:enabled\" value=\"false\"/>\n            <param
name=\"stretchContrast\" value=\"true\"/>\n        </params>\n    </filter>\n  
 <file
uuid=\"7174ee148022418aa609b3eee909b8497ee276a2418bb8df86bffe28714adbbc\">\n  
    <fileParams fileHash=\"8323daada84da3cebe83fcc08230e5db\"
fileSize=\"3734050\"/>\n    </file>\n    <filter
filterName=\"digikam:RatioCrop\" filterDisplayName=\"Aspect Ratio Crop\"
filterVersion=\"1\" filterCategory=\"reproducible\">\n        <params>\n      
    <param name=\"height\" value=\"3867\"/>\n            <param name=\"width\"
value=\"5800\"/>\n            <param name=\"x\" value=\"199\"/>\n          
<param name=\"y\" value=\"133\"/>\n        </params>\n  
</filter>\n</history>\n"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>
QDateTime(2014-05-01 16:49:11.000 CEST Qt::TimeSpec(LocalTime))
digikam.dimg: Saving to  "DSC02442.out.png"  with format:  "PNG"
digikam.metaengine: MetaEngine::metadataWritingMode 0
digikam.metaengine: Will write Metadata to file
"/Users/gilles/Devel/GIT/5.x/build/core/tests/dimg/DSC02442.out.png"
digikam.metaengine: wroteComment:  true
digikam.metaengine: wroteEXIF:  true
digikam.metaengine: wroteIPTC:  true
digikam.metaengine: wroteXMP:  true
digikam.metaengine: Metadata for file "DSC02442.out.png" written to file.

The only difference is that filter is forked in a dedicated thread. Perhaps
it's the problem.

Gilles

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #35 from [hidden email] ---
Created attachment 99824
  --> https://bugs.kde.org/attachment.cgi?id=99824&action=edit
expected color balance result under OSX

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #36 from [hidden email] ---
Maik,

Under Linux valgrind do not detect something wrong in algorithm :

[gilles@localhost dimg]$ valgrind ./testcolorbalancefilter DSC03947.JPG
==15283== Memcheck, a memory error detector
==15283== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==15283== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==15283== Command: ./testcolorbalancefilter DSC03947.JPG
==15283==
digikam.dimg: "DSC03947.JPG"  : JPEG file identified
QCoreApplication::arguments: Please instantiate the QApplication object first
digikam.metaengine: Loading image history  "<?xml version=\"1.0\"?>\n<history
version=\"1\">\n    <file
uuid=\"21bf3c32a9a87b759fa52c43037812bfa4e40316b3cb6438b4e635231572e70d\"
type=\"original\">\n        <fileParams
fileHash=\"a4e40316b3cb6438b4e635231572e70d\" fileSize=\"19267584\"
creationDate=\"2014-07-22T11:59:49\"/>\n    </file>\n    <filter
filterName=\"digikam:LocalContrastFilter\" filterDisplayName=\"Local Contrast
Filter\" filterVersion=\"2\" filterCategory=\"reproducible\">\n      
<params>\n            <param name=\"functionId\" value=\"0\"/>\n          
<param name=\"highSaturation\" value=\"100\"/>\n            <param
name=\"lowSaturation\" value=\"100\"/>\n            <param name=\"randomSeed\"
value=\"2828613627\"/>\n            <param name=\"stage[0]:blur\"
value=\"11\"/>\n            <param name=\"stage[0]:enabled\" value=\"true\"/>\n
           <param name=\"stage[0]:power\" value=\"30\"/>\n            <param
name=\"stage[1]:enabled\" value=\"false\"/>\n            <param
name=\"stage[2]:enabled\" value=\"false\"/>\n            <param
name=\"stage[3]:enabled\" value=\"false\"/>\n            <param
name=\"stretchContrast\" value=\"true\"/>\n        </params>\n  
</filter>\n</history>\n"
digikam.metaengine: DateTime => Exif.Photo.DateTimeOriginal =>
QDateTime(2014-07-22 11:59:49.000 EDT Qt::TimeSpec(LocalTime))
digikam.dimg: Saving to  "DSC03947.out.png"  with format:  "PNG"
digikam.metaengine: MetaEngine::metadataWritingMode 0
digikam.metaengine: Will write Metadata to file
"/home/gilles/Devel/5.x/build/core/tests/dimg/DSC03947.out.png"
digikam.metaengine: wroteComment:  true
digikam.metaengine: wroteEXIF:  true
digikam.metaengine: wroteIPTC:  true
digikam.metaengine: wroteXMP:  true
==15283== Syscall param msync(start) points to uninitialised byte(s)
==15283==    at 0x8C8938D: ??? (in /usr/lib64/libpthread-2.22.so)
==15283==    by 0xBBF5C08: Exiv2::MemIo::~MemIo() (basicio.cpp:1177)
==15283==    by 0xBC3A3E3: Exiv2::ExifParser::encode(std::vector<unsigned char,
std::allocator<unsigned char> >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&) (exif.cpp:708)
==15283==    by 0xBC71D62: encode (exif.hpp:624)
==15283==    by 0xBC71D62: Exiv2::PngImage::doWriteMetadata(Exiv2::BasicIo&)
(pngimage.cpp:376)
==15283==    by 0xBC72B78: Exiv2::PngImage::writeMetadata() (pngimage.cpp:295)
==15283==    by 0x5267F8B:
Digikam::MetaEngine::Private::saveOperations(QFileInfo const&,
std::auto_ptr<Exiv2::Image>) const (metaengine_p.cpp:348)
==15283==    by 0x5266987: Digikam::MetaEngine::Private::saveToFile(QFileInfo
const&) const (metaengine_p.cpp:191)
==15283==    by 0x52616EC: Digikam::MetaEngine::save(QString const&) const
(metaengine.cpp:419)
==15283==    by 0x5261C9C: Digikam::MetaEngine::applyChanges() const
(metaengine.cpp:449)
==15283==    by 0x529BC96: Digikam::DMetadata::applyChanges() const
(dmetadata.cpp:120)
==15283==    by 0x50AE161: Digikam::DImgLoader::saveMetadata(QString const&)
(dimgloader.cpp:285)
==15283==    by 0x50B3670: Digikam::PNGLoader::save(QString const&,
Digikam::DImgLoaderObserver*) (pngloader.cpp:949)
==15283==  Address 0x36781ab2 is 34 bytes inside a block of size 40 alloc'd
==15283==    at 0x4C28586: operator new(unsigned long)
(vg_replace_malloc.c:334)
==15283==    by 0xBBF5ACE: Exiv2::MemIo::MemIo() (basicio.cpp:1165)
==15283==    by 0xBC39054: Exiv2::ExifParser::encode(std::vector<unsigned char,
std::allocator<unsigned char> >&, unsigned char const*, unsigned int,
Exiv2::ByteOrder, Exiv2::ExifData const&) (exif.cpp:708)
==15283==    by 0xBC71D62: encode (exif.hpp:624)
==15283==    by 0xBC71D62: Exiv2::PngImage::doWriteMetadata(Exiv2::BasicIo&)
(pngimage.cpp:376)
==15283==    by 0xBC72B78: Exiv2::PngImage::writeMetadata() (pngimage.cpp:295)
==15283==    by 0x5267F8B:
Digikam::MetaEngine::Private::saveOperations(QFileInfo const&,
std::auto_ptr<Exiv2::Image>) const (metaengine_p.cpp:348)
==15283==    by 0x5266987: Digikam::MetaEngine::Private::saveToFile(QFileInfo
const&) const (metaengine_p.cpp:191)
==15283==    by 0x52616EC: Digikam::MetaEngine::save(QString const&) const
(metaengine.cpp:419)
==15283==    by 0x5261C9C: Digikam::MetaEngine::applyChanges() const
(metaengine.cpp:449)
==15283==    by 0x529BC96: Digikam::DMetadata::applyChanges() const
(dmetadata.cpp:120)
==15283==    by 0x50AE161: Digikam::DImgLoader::saveMetadata(QString const&)
(dimgloader.cpp:285)
==15283==    by 0x50B3670: Digikam::PNGLoader::save(QString const&,
Digikam::DImgLoaderObserver*) (pngloader.cpp:949)
==15283==
digikam.metaengine: Metadata for file "DSC03947.out.png" written to file.
==15283==
==15283== HEAP SUMMARY:
==15283==     in use at exit: 248,891 bytes in 1,952 blocks
==15283==   total heap usage: 32,538 allocs, 30,586 frees, 367,609,624 bytes
allocated
==15283==
==15283== LEAK SUMMARY:
==15283==    definitely lost: 5,696 bytes in 701 blocks
==15283==    indirectly lost: 496 bytes in 11 blocks
==15283==      possibly lost: 1,352 bytes in 18 blocks
==15283==    still reachable: 241,347 bytes in 1,222 blocks
==15283==                       of which reachable via heuristic:
==15283==                         newarray           : 1,536 bytes in 16 blocks
==15283==         suppressed: 0 bytes in 0 blocks
==15283== Rerun with --leak-check=full to see details of leaked memory
==15283==
==15283== For counts of detected and suppressed errors, rerun with: -v
==15283== Use --track-origins=yes to see where uninitialised values come from
==15283== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

[gilles@localhost dimg]$

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

Maik Qualmann <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99821|0                           |1
        is obsolete|                            |

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #37 from Maik Qualmann <[hidden email]> ---
Created attachment 99834
  --> https://bugs.kde.org/attachment.cgi?id=99834&action=edit
cbfilter4.patch

Next try...

Maik

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #38 from [hidden email] ---
Maik,

no, it do not work :

Thread 0:: Dispatch queue: com.apple.main-thread
0   libdigikamcore.5.0.0.dylib        0x000000010f1c1509
Digikam::DImgScale::dimgScaleAARGB(Digikam::DImgScale::DImgScaleInfo*, unsigned
int*, int, int, int, int, int, int, int, int, int, int) + 6089
(dimgscale.cpp:1496)
1   libdigikamcore.5.0.0.dylib        0x000000010f1b96a9
Digikam::DImg::smoothScaleClipped(int, int, int, int, int, int) const + 1033
(dimgscale.cpp:257)
2   libdigikamcore.5.0.0.dylib        0x000000010f4db5ce
Digikam::ImageRegionItem::paint(QPainter*, QStyleOptionGraphicsItem const*,
QWidget*) + 494 (imageregionitem.cpp:121)
3   org.qt-project.QtWidgets          0x00000001149cdd29
QGraphicsScenePrivate::draw(QGraphicsItem*, QPainter*, QTransform const*,
QTransform const*, QRegion*, QWidget*, double, QTransform const*, bool, bool) +
1593
4   org.qt-project.QtWidgets          0x00000001149cd59c
QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem*, QPainter*,
QTransform const*, QRegion*, QWidget*, double, QTransform const*) + 2108
5   org.qt-project.QtWidgets          0x00000001149ccd03
QGraphicsScenePrivate::drawItems(QPainter*, QTransform const*, QRegion*,
QWidget*) + 403
6   org.qt-project.QtWidgets          0x00000001149f084c
QGraphicsView::paintEvent(QPaintEvent*) + 1676
7   org.qt-project.QtWidgets          0x00000001146be976
QWidget::event(QEvent*) + 2038
8   org.qt-project.QtWidgets          0x00000001147b667d QFrame::event(QEvent*)
+ 45
9   org.qt-project.QtWidgets          0x0000000114848097
QAbstractScrollArea::viewportEvent(QEvent*) + 135
10  org.qt-project.QtWidgets          0x00000001149ee3b5
QGraphicsView::viewportEvent(QEvent*) + 1541
11  org.qt-project.QtWidgets          0x0000000114848d34
QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) + 36
12  org.qt-project.QtCore             0x00000001154f74ab
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 203
13  org.qt-project.QtWidgets          0x000000011467d081
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 273
14  org.qt-project.QtWidgets          0x000000011467e5f8
QApplication::notify(QObject*, QEvent*) + 504
15  org.qt-project.QtCore             0x00000001154f7214
QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
16  org.qt-project.QtWidgets          0x00000001146b83e4
QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int,
QPainter*, QWidgetBackingStore*) + 3316
17  org.qt-project.QtWidgets          0x000000011468b227
QWidgetBackingStore::doSync() + 5447
18  org.qt-project.QtWidgets          0x00000001146bec02
QWidget::event(QEvent*) + 2690
19  org.qt-project.QtWidgets          0x00000001147ce19a
QMainWindow::event(QEvent*) + 1546
20  libKF5XmlGui.5.dylib              0x00000001131074eb
KMainWindow::event(QEvent*) + 1003
21  libKF5XmlGui.5.dylib              0x00000001131505aa
KXmlGuiWindow::event(QEvent*) + 42
22  org.qt-project.QtWidgets          0x000000011467d096
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 294
23  org.qt-project.QtWidgets          0x000000011467e5f8
QApplication::notify(QObject*, QEvent*) + 504
24  org.qt-project.QtCore             0x00000001154f7214
QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
25  org.qt-project.QtCore             0x00000001154f7f5b
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 875
26  libqcocoa.dylib                   0x000000011c6d7b7e
QCocoaEventDispatcherPrivate::processPostedEvents() + 190
27  libqcocoa.dylib                   0x000000011c6d8441
QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 33
28  com.apple.CoreFoundation          0x00007fff8658b881
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29  com.apple.CoreFoundation          0x00007fff8656afbc __CFRunLoopDoSources0
+ 556
30  com.apple.CoreFoundation          0x00007fff8656a4df __CFRunLoopRun + 927
31  com.apple.CoreFoundation          0x00007fff86569ed8 CFRunLoopRunSpecific +
296
32  com.apple.HIToolbox               0x00007fff8bc85935
RunCurrentEventLoopInMode + 235
33  com.apple.HIToolbox               0x00007fff8bc8576f ReceiveNextEventCommon
+ 432
34  com.apple.HIToolbox               0x00007fff8bc855af
_BlockUntilNextEventMatchingListInModeWithFilter + 71
35  com.apple.AppKit                  0x00007fff8a15cdf6 _DPSNextEvent + 1067
36  com.apple.AppKit                  0x00007fff8a15c226 -[NSApplication
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
37  com.apple.AppKit                  0x00007fff8a150d80 -[NSApplication run] +
682
38  libqcocoa.dylib                   0x000000011c6d734f
QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) +
2191
39  org.qt-project.QtCore             0x00000001154f33d1
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
40  org.qt-project.QtCore             0x00000001154f7885
QCoreApplication::exec() + 341
41  digikam                           0x000000010e16504c main + 9180
(main.cpp:239)
42  libdyld.dylib                     0x00007fff8d2f15ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib            0x00007fff96b01efa kevent_qos + 10
1   libdispatch.dylib                 0x00007fff8ce35165 _dispatch_mgr_invoke +
216
2   libdispatch.dylib                 0x00007fff8ce34dcd _dispatch_mgr_thread +
52

Thread 2:
0   libsystem_kernel.dylib            0x00007fff96b015e2 __workq_kernreturn +
10
1   libsystem_pthread.dylib           0x00007fff9322a578 _pthread_wqthread +
1283
2   libsystem_pthread.dylib           0x00007fff93228341 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib            0x00007fff96b015e2 __workq_kernreturn +
10
1   libsystem_pthread.dylib           0x00007fff9322a578 _pthread_wqthread +
1283
2   libsystem_pthread.dylib           0x00007fff93228341 start_wqthread + 13

Thread 4:: com.apple.CFSocket.private
0   libsystem_kernel.dylib            0x00007fff96b0107a __select + 10
1   com.apple.CoreFoundation          0x00007fff865a84fa __CFSocketManager +
762
2   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
3   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
4   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib            0x00007fff96afaf72 mach_msg_trap + 10
1   libsystem_kernel.dylib            0x00007fff96afa3b3 mach_msg + 55
2   com.apple.CoreFoundation          0x00007fff8656b1c4
__CFRunLoopServiceMachPort + 212
3   com.apple.CoreFoundation          0x00007fff8656a68c __CFRunLoopRun + 1356
4   com.apple.CoreFoundation          0x00007fff86569ed8 CFRunLoopRunSpecific +
296
5   com.apple.AppKit                  0x00007fff8a2b2d95 _NSEventThread + 149
6   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
7   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
8   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 6:: Digikam::ScanController
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtCore             0x000000011532fd0b
QWaitConditionPrivate::wait(unsigned long) + 75
3   org.qt-project.QtCore             0x000000011532fbc2
QWaitCondition::wait(QMutex*, unsigned long) + 162
4   libdigikamgui.5.0.0.dylib         0x000000010e19f992
Digikam::ScanController::run() + 562 (scancontroller.cpp:684)
5   org.qt-project.QtCore             0x000000011532e6ea
QThreadPrivate::start(void*) + 362
6   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
7   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
8   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 7:: QDBusConnectionManager
0   libsystem_kernel.dylib            0x00007fff96b0107a __select + 10
1   org.qt-project.QtCore             0x000000011554e3a3 qt_safe_select(int,
fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore             0x000000011554f2d5
QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>,
timespec*) + 709
3   org.qt-project.QtCore             0x0000000115550717
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) +
231
4   org.qt-project.QtCore             0x00000001154f33d1
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
5   org.qt-project.QtCore             0x000000011532ac43 QThread::exec() + 115
6   org.qt-project.QtDBus             0x00000001136b4e33
QDBusConnectionManager::run() + 19
7   org.qt-project.QtCore             0x000000011532e6ea
QThreadPrivate::start(void*) + 362
8   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
9   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
10  libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 8:
0   libsystem_kernel.dylib            0x00007fff96b015e2 __workq_kernreturn +
10
1   libsystem_pthread.dylib           0x00007fff9322a578 _pthread_wqthread +
1283
2   libsystem_pthread.dylib           0x00007fff93228341 start_wqthread + 13

Thread 9:: QThread
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtCore             0x000000011532fd0b
QWaitConditionPrivate::wait(unsigned long) + 75
3   org.qt-project.QtCore             0x000000011532fbc2
QWaitCondition::wait(QMutex*, unsigned long) + 162
4   libdigikamcore.5.0.0.dylib        0x000000010f2daa05
Digikam::ParkingThread::run() + 165 (threadmanager.cpp:115)
5   org.qt-project.QtCore             0x000000011532e6ea
QThreadPrivate::start(void*) + 362
6   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
7   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
8   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 10 Crashed:: Thread (pooled)
0   libsystem_platform.dylib          0x00007fff844145ea
_platform_memmove$VARIANT$Nehalem + 138
1   libdigikamcore.5.0.0.dylib        0x000000010f057ddc
Digikam::CBFilter::getTables(int*, int*, int*, int*, bool) + 156
(cbfilter.cpp:198)
2   libdigikamcore.5.0.0.dylib        0x000000010f0580af
Digikam::CBFilter::adjustRGB(double, double, double, double, bool) + 383
(cbfilter.cpp:343)
3   libdigikamcore.5.0.0.dylib        0x000000010f0578c1
Digikam::CBFilter::applyCBFilter(Digikam::DImg&, double, double, double,
double) + 193 (cbfilter.cpp:244)
4   libdigikamcore.5.0.0.dylib        0x000000010f0571b9
Digikam::CBFilter::filterImage() + 105 (cbfilter.cpp:106)
5   libdigikamcore.5.0.0.dylib        0x000000010eff0bb9
Digikam::DImgThreadedFilter::startFilterDirectly() + 137
(dimgthreadedfilter.cpp:197)
6   libdigikamcore.5.0.0.dylib        0x000000010eff0ea6
Digikam::DImgThreadedFilter::run() + 22 (dimgthreadedfilter.cpp:220)
7   libdigikamcore.5.0.0.dylib        0x000000010f2dca03
Digikam::DynamicThread::DynamicThreadPriv::run() + 99 (dynamicthread.cpp:184)
8   org.qt-project.QtCore             0x000000011532b497
QThreadPoolThread::run() + 103
9   org.qt-project.QtCore             0x000000011532e6ea
QThreadPrivate::start(void*) + 362
10  libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
11  libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
12  libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 11:: Qt bearer thread
0   libsystem_kernel.dylib            0x00007fff96b0107a __select + 10
1   org.qt-project.QtCore             0x000000011554e3a3 qt_safe_select(int,
fd_set*, fd_set*, fd_set*, timespec const*) + 547
2   org.qt-project.QtCore             0x000000011554f2d5
QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>,
timespec*) + 709
3   org.qt-project.QtCore             0x0000000115550717
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) +
231
4   org.qt-project.QtCore             0x00000001154f33d1
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 417
5   org.qt-project.QtCore             0x000000011532ac43 QThread::exec() + 115
6   org.qt-project.QtCore             0x000000011532e6ea
QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
8   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
9   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 12:: JavaScriptCore::BlockFree
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtWebKit           0x00000001119f9a08
JSC::BlockAllocator::blockFreeingThreadMain() + 280
3   org.qt-project.QtWebKit           0x0000000111cf96ef
WTF::wtfThreadEntryPoint(void*) + 15
4   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
5   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
6   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 13:: JavaScriptCore::Marking
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtWebKit           0x00000001119fa887
JSC::GCThread::waitForNextPhase() + 119
3   org.qt-project.QtWebKit           0x00000001119fa913
JSC::GCThread::gcThreadMain() + 83
4   org.qt-project.QtWebKit           0x0000000111cf96ef
WTF::wtfThreadEntryPoint(void*) + 15
5   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
6   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
7   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 14:: JavaScriptCore::Marking
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtWebKit           0x00000001119fa887
JSC::GCThread::waitForNextPhase() + 119
3   org.qt-project.QtWebKit           0x00000001119fa913
JSC::GCThread::gcThreadMain() + 83
4   org.qt-project.QtWebKit           0x0000000111cf96ef
WTF::wtfThreadEntryPoint(void*) + 15
5   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
6   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
7   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 15:: JavaScriptCore::Marking
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtWebKit           0x00000001119fa887
JSC::GCThread::waitForNextPhase() + 119
3   org.qt-project.QtWebKit           0x00000001119fa913
JSC::GCThread::gcThreadMain() + 83
4   org.qt-project.QtWebKit           0x0000000111cf96ef
WTF::wtfThreadEntryPoint(void*) + 15
5   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
6   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
7   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 16:: JavaScriptCore::Marking
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtWebKit           0x00000001119fa887
JSC::GCThread::waitForNextPhase() + 119
3   org.qt-project.QtWebKit           0x00000001119fa913
JSC::GCThread::gcThreadMain() + 83
4   org.qt-project.QtWebKit           0x0000000111cf96ef
WTF::wtfThreadEntryPoint(void*) + 15
5   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
6   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
7   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 17:: JavaScriptCore::Marking
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtWebKit           0x00000001119fa887
JSC::GCThread::waitForNextPhase() + 119
3   org.qt-project.QtWebKit           0x00000001119fa913
JSC::GCThread::gcThreadMain() + 83
4   org.qt-project.QtWebKit           0x0000000111cf96ef
WTF::wtfThreadEntryPoint(void*) + 15
5   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
6   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
7   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 18:: JavaScriptCore::Marking
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtWebKit           0x00000001119fa887
JSC::GCThread::waitForNextPhase() + 119
3   org.qt-project.QtWebKit           0x00000001119fa913
JSC::GCThread::gcThreadMain() + 83
4   org.qt-project.QtWebKit           0x0000000111cf96ef
WTF::wtfThreadEntryPoint(void*) + 15
5   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
6   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
7   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 19:
0   libsystem_kernel.dylib            0x00007fff96b015e2 __workq_kernreturn +
10
1   libsystem_pthread.dylib           0x00007fff9322a578 _pthread_wqthread +
1283
2   libsystem_pthread.dylib           0x00007fff93228341 start_wqthread + 13

Thread 20:: Thread (pooled)
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtCore             0x000000011532fec0
QWaitConditionPrivate::wait_relative(unsigned long) + 288
3   org.qt-project.QtCore             0x000000011532fceb
QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore             0x000000011532fbc2
QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore             0x000000011532b66d
QThreadPoolThread::run() + 573
6   org.qt-project.QtCore             0x000000011532e6ea
QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
8   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
9   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 21:: Thread (pooled)
0   libsystem_kernel.dylib            0x00007fff96b00db6 __psynch_cvwait + 10
1   libsystem_pthread.dylib           0x00007fff9322b728 _pthread_cond_wait +
767
2   org.qt-project.QtCore             0x000000011532fec0
QWaitConditionPrivate::wait_relative(unsigned long) + 288
3   org.qt-project.QtCore             0x000000011532fceb
QWaitConditionPrivate::wait(unsigned long) + 43
4   org.qt-project.QtCore             0x000000011532fbc2
QWaitCondition::wait(QMutex*, unsigned long) + 162
5   org.qt-project.QtCore             0x000000011532b66d
QThreadPoolThread::run() + 573
6   org.qt-project.QtCore             0x000000011532e6ea
QThreadPrivate::start(void*) + 362
7   libsystem_pthread.dylib           0x00007fff9322a99d _pthread_body + 131
8   libsystem_pthread.dylib           0x00007fff9322a91a _pthread_start + 168
9   libsystem_pthread.dylib           0x00007fff93228351 thread_start + 13

Thread 22:
0   libsystem_kernel.dylib            0x00007fff96b015e2 __workq_kernreturn +
10
1   libsystem_pthread.dylib           0x00007fff9322a578 _pthread_wqthread +
1283
2   libsystem_pthread.dylib           0x00007fff93228341 start_wqthread + 13

Thread 23:
0   libsystem_kernel.dylib            0x00007fff96b015e2 __workq_kernreturn +
10
1   libsystem_pthread.dylib           0x00007fff9322a578 _pthread_wqthread +
1283
2   libsystem_pthread.dylib           0x00007fff93228341 start_wqthread + 13

Thread 24:
0   libsystem_kernel.dylib            0x00007fff96b015e2 __workq_kernreturn +
10
1   libsystem_pthread.dylib           0x00007fff9322a578 _pthread_wqthread +
1283
2   libsystem_pthread.dylib           0x00007fff93228341 start_wqthread + 13

Thread 25:

Thread 10 crashed with X86 Thread State (64-bit):
  rax: 0x00007000008c6c00  rbx: 0x00000000ffffffff  rcx: 0x0000000000000010
rdx: 0x00000000000003f0
  rdi: 0x00007000008c6c10  rsi: 0x0000000163cf4410  rbp: 0x0000700000806b00
rsp: 0x0000700000806b00
   r8: 0x0000700000846c00   r9: 0x0000000000000000  r10: 0x000000000000007d
r11: 0x00006ffe9cbd2800
  r12: 0x00007fa27bcb1900  r13: 0x00007fa280a64340  r14: 0x00007fa27bd51070
r15: 0x00007fa27bd51080
  rip: 0x00007fff844145ea  rfl: 0x0000000000010206  cr2: 0x00007000008c6c00

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #39 from [hidden email] ---
In case of the problem will be relevant of widget style (as size of preview to
render image is not calculated properly), i use Fusion style.

Gilles

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |CONFIRMED
           Platform|MacPorts Packages           |Mac OS X Disk Images

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #40 from [hidden email] ---
Maik,

I go back with this problem under OSX.

This time, i used llldb CLI debuguer from XCode which is very similar than GDB
for GCC but here for Clang compiler.

The backtrace while running Color Balance tool when yellow settings is changed
is below :

digikam.general: Preview  "Balance des couleurs"  started...
Process 65243 stopped
* thread #30: tid = 0xe12f6, 0x0000000100c9e294
libdigikamcore.5.1.0.dylib`Digikam::CBFilter::adjustRGB(double, double, double,
double, bool) + 36, name = 'Thread (pooled)', stop reason = EXC_BAD_ACCESS
(code=1, address=0x700000ca1bf8)
    frame #0: 0x0000000100c9e294
libdigikamcore.5.1.0.dylib`Digikam::CBFilter::adjustRGB(double, double, double,
double, bool) + 36
libdigikamcore.5.1.0.dylib`Digikam::CBFilter::adjustRGB:
->  0x100c9e294 <+36>: movq   %rdi, -0x140018(%rbp)
    0x100c9e29b <+43>: movsd  %xmm0, -0x140020(%rbp)
    0x100c9e2a3 <+51>: movsd  %xmm1, -0x140028(%rbp)
    0x100c9e2ab <+59>: movsd  %xmm2, -0x140030(%rbp)
(lldb) bt
* thread #30: tid = 0xe12f6, 0x0000000100c9e294
libdigikamcore.5.1.0.dylib`Digikam::CBFilter::adjustRGB(double, double, double,
double, bool) + 36, name = 'Thread (pooled)', stop reason = EXC_BAD_ACCESS
(code=1, address=0x700000ca1bf8)
  * frame #0: 0x0000000100c9e294
libdigikamcore.5.1.0.dylib`Digikam::CBFilter::adjustRGB(double, double, double,
double, bool) + 36
    frame #1: 0x0000000100c9dc01
libdigikamcore.5.1.0.dylib`Digikam::CBFilter::applyCBFilter(Digikam::DImg&,
double, double, double, double) + 193
    frame #2: 0x0000000100c9d4f9
libdigikamcore.5.1.0.dylib`Digikam::CBFilter::filterImage() + 105
    frame #3: 0x0000000100c36ec9
libdigikamcore.5.1.0.dylib`Digikam::DImgThreadedFilter::startFilterDirectly() +
137
    frame #4: 0x0000000100c371b6
libdigikamcore.5.1.0.dylib`Digikam::DImgThreadedFilter::run() + 22
    frame #5: 0x0000000100f23293
libdigikamcore.5.1.0.dylib`Digikam::DynamicThread::DynamicThreadPriv::run() +
99
    frame #6: 0x0000000106bdf497 QtCore`QThreadPoolThread::run() + 103
    frame #7: 0x0000000106be26ea QtCore`QThreadPrivate::start(void*) + 362
    frame #8: 0x00007fff89b0599d libsystem_pthread.dylib`_pthread_body + 131
    frame #9: 0x00007fff89b0591a libsystem_pthread.dylib`_pthread_start + 168
    frame #10: 0x00007fff89b03351 libsystem_pthread.dylib`thread_start + 13
(lldb)

This is the current code from git/master. No patch applied.

Gilles

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #41 from [hidden email] ---
*** Bug 378176 has been marked as a duplicate of this bug. ***

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #42 from [hidden email] ---
Maik,

I'm back to this problem under OSX which still valid and always not resolved.

When i triaging bug, i discovered one similar entry under Linux :

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

Look well. It's not exactly Color Balance tool, but ChanelMixer used in BW
converter.

Sound like there is a problem with Data alignment in memory. This is what's you
suspected in this file in the past. Right ?

Gilles

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

Maik Qualmann <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99834|0                           |1
        is obsolete|                            |

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

--- Comment #43 from Maik Qualmann <[hidden email]> ---
Created attachment 105104
  --> https://bugs.kde.org/attachment.cgi?id=105104&action=edit
cbfilter6.patch

Gilles,

can you test this patch when you have time? There is only one technical test,
the patch is not intended to definitively solve the problem.

Maik

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 340389] digiKam crashes while editing pictures for color balancing on OSX [patch]

bugzilla_noreply
In reply to this post by Detlef Duerr
https://bugs.kde.org/show_bug.cgi?id=340389

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #45 from [hidden email] ---
*** Bug 380841 has been marked as a duplicate of this bug. ***

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