Bug 285552 - Filters instable , no preview ( brightness / level ) , and preview box blinking make crash
Summary: Filters instable , no preview ( brightness / level ) , and preview box blinki...
Status: RESOLVED DUPLICATE of bug 285477
Alias: None
Product: krita
Classification: Applications
Component: Filters (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 285278 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-02 12:43 UTC by David REVOY
Modified: 2012-01-02 17:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
various 3stars kcrash with filters (7.03 KB, application/x-gzip)
2011-11-02 12:44 UTC, David REVOY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David REVOY 2011-11-02 12:43:22 UTC
Version:           svn trunk
OS:                Linux

This concern mostly the filters Levels and Brighness and Contrast. ( for exemple , "HSV color" don't seams to be affected ).

Symptom : 
When launching the Filter , change don't inflence the viewport. Check and Uncheck the 'preview' box , make sometime the effect to refresh, but mostly makes Krita crash. 

Reproducible: Didn't try

Steps to Reproduce:
I open Krita, default RGB document , takes some strokes on the canvas ( various grey )
Call the filters via top menu > filter > Adjust > Levels
Move the rulers


Actual Results:  
nothing happen on canvas, no feedback about the effect. 
If preview box is checked unchecked , may cause Krita to crash

Expected Results:  
Apply the effect in the canvas as a background preview
Refresh when the setting is changed
Not crash :)

( compiled november 02 2011, before that I experienced with a build from last 10 day I think more stability )
Comment 1 David REVOY 2011-11-02 12:44:38 UTC
Created attachment 65156 [details]
various 3stars kcrash with filters

4 files of crash report , with various filters , same procedures
Comment 2 Juan Palacios 2011-11-04 14:31:28 UTC
I can confirm this bug.
Preview is not refresh when filter settings are changed and sometimes causes a crash.
Comment 3 Juan Palacios 2011-11-04 14:33:01 UTC
Btw, i'm using:

Archlinux 64 bit
Kde 4.7.3
KRITA 2.4 beta3 (2.3.83) from kde-unstable repository
Comment 4 Juan Palacios 2011-11-04 15:09:21 UTC
This bug seems to be a duplicate of this one: https://bugs.kde.org/show_bug.cgi?id=285477
Comment 5 Kubuntiac 2011-11-06 17:01:03 UTC
I can confirm that I don't get filter previews, however I also couldn't get a crash (mainly using levels). Tried on:

Krita current master (2.4b3)
KDE 4.7.3
Chakra Linux
FOSS ATI driver
Comment 6 Halla Rempt 2011-12-17 12:21:46 UTC
Hm, the backtraces show two different problems:

3 of them show a crash in KisFilterMask::changeRect:

Thread 10 (Thread 0x7f512b0a3700 (LWP 15458)):
[KCrash Handler]
#6  0x00007f515bbcd3b8 in KisFilterMask::changeRect (this=0x105431b0, rect=..., pos=KisNode::N_FILTHY) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_filter_mask.cpp:164
#7  0x00007f515bc01440 in KisLayer::masksChangeRect (this=<value optimized out>, masks=<value optimized out>, requestedRect=<value optimized out>, rectVariesFlag=@0x7f512b0a292f) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_layer.cc:340
#8  0x00007f515bc0154a in KisLayer::changeRect (this=0x944f1c0, rect=..., pos=<value optimized out>) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_layer.cc:502
#9  0x00007f515bbde3d3 in calculateChecksum (this=0x7f5140004e90, updaterContext=...) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_base_rects_walker.h:284
#10 checksumValid (this=0x7f5140004e90, updaterContext=...) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_base_rects_walker.h:97
#11 KisSimpleUpdateQueue::processOneJob (this=0x7f5140004e90, updaterContext=...) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:96
#12 0x00007f515bbde96b in KisSimpleUpdateQueue::processQueue (this=0x7f5140004e90, updaterContext=...) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_simple_update_queue.cpp:80
#13 0x00007f515bbe3262 in KisUpdateScheduler::tryProcessUpdatesQueue (this=0x7f5140004ac0) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_update_scheduler.cpp:304
#14 0x00007f515bbe3518 in KisUpdateScheduler::processQueues (this=0x7f5140004ac0) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_update_scheduler.cpp:265
#15 0x00007f515bb36e24 in KisUpdateScheduler::qt_metacall (this=0x7f5140004ac0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f512b0a2ba0) at /home/deevad/source-to-compile/krita/calligra/calligra-build/krita/image/moc_kis_update_scheduler.cpp:79
#16 0x00007f515cd175f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#17 0x00007f515bb377a8 in KisUpdaterContext::qt_metacall (this=0x7f5140004ed0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f512b0a2c80) at /home/deevad/source-to-compile/krita/calligra/calligra-build/krita/image/moc_kis_updater_context.cpp:82
#18 0x00007f515cd175f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#19 0x00007f515bb3abca in KisUpdateJobItem::run (this=0x7f5140006200) at /home/deevad/source-to-compile/krita/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_update_job_item.h:66
#20 0x00007f515cc10188 in ?? () from /usr/lib/libQtCore.so.4
#21 0x00007f515cc1b175 in ?? () from /usr/lib/libQtCore.so.4
#22 0x00007f515b01e853 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#23 0x00007f515426bd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#24 0x00007f515456904d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#25 0x0000000000000000 in ?? ()

1 in LcmsColorSpace

Thread 4 (Thread 0x7f2024565700 (LWP 15400)):
[KCrash Handler]
#6  0x00007f20382b85ad in _cmsComputePrelinearizationTablesFromXFORM () from /usr/lib/liblcms.so.1
#7  0x00007f20382cafa9 in cmsCreateMultiprofileTransform () from /usr/lib/liblcms.so.1
#8  0x00007f2031d22690 in LcmsColorSpace<KoRgbU8Traits>::createBrightnessContrastAdjustment (this=0x11c4c2f0, transferValues=<value optimized out>) at /home/deevad/source-to-compile/krita/calligra/calligra-src/plugins/colorengines/lcms/LcmsColorSpace.h:269
#9  0x00007f203496dc51 in KisLevelFilter::createTransformation (this=<value optimized out>, cs=0x11c4c2f0, config=<value optimized out>) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/plugins/filters/levelfilter/kis_level_filter.cpp:99
#10 0x00007f2055860500 in KisColorTransformationFilter::process (this=0x263d270, device=..., applyRect=..., config=0x7f201c017050, progressUpdater=0x7f203e6edae0) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/filter/kis_color_transformation_filter.cc:59
#11 0x00007f20558597d9 in KisFilter::process (this=0x263d270, src=..., dst=..., sel=..., applyRect=..., config=0x7f201c017050, progressUpdater=0x7f203e6edae0) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/filter/kis_filter.cc:115
#12 0x00007f205588ed71 in KisFilterMask::decorateRect (this=0x113b2420, src=..., dst=..., rc=...) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_filter_mask.cpp:130
#13 0x00007f20558c8c98 in KisMask::apply (this=0x113b2420, projection=..., rc=...) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_mask.cc:205
#14 0x00007f20558c3973 in KisLayer::applyMasks (this=0xd2472a0, source=<value optimized out>, destination=..., requestedRect=<value optimized out>) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_layer.cc:422
#15 0x00007f20558c429e in KisLayer::updateProjection (this=0xd2472a0, rect=<value optimized out>) at /home/deevad/source-to-compile/krita/calligra/calligra-src/krita/image/kis_layer.cc:466
#16 0x00007f20557fc4fd in KisAsyncMerger::startMerge (this=0x9269fb0, walker=...) at /home/deevad/source-to-compile/krita/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_async_merger.h:207
#17 0x00007f20557fcc02 in runMergeJob (this=0x9269f70) at /home/deevad/source-to-compile/krita/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_update_job_item.h:75
#18 KisUpdateJobItem::run (this=0x9269f70) at /home/deevad/source-to-compile/krita/calligra/calligra-build/krita/image/../../../calligra-src/krita/image/kis_update_job_item.h:56
#19 0x00007f20568d2188 in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007f20568dd175 in ?? () from /usr/lib/libQtCore.so.4
#21 0x00007f2054ce0853 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#22 0x00007f204df2dd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#23 0x00007f204e22b04d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#24 0x0000000000000000 in ?? ()

This on is in lcms1 -- which might explain why I cannot reproduce it, since I am using lcms2.
Comment 7 Halla Rempt 2011-12-17 13:21:02 UTC
*** Bug 285278 has been marked as a duplicate of this bug. ***
Comment 8 Halla Rempt 2011-12-18 14:19:46 UTC
Confirmed that the bug is caused by using lcms1; I will disable lcms1 now. The preview issue is also confirmed.
Comment 9 Sven Langkamp 2012-01-02 17:27:17 UTC

*** This bug has been marked as a duplicate of bug 285477 ***