[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 211713] New: Crash when moving layer
From:       Bart Coppens <kde () bartcoppens ! be>
Date:       2009-10-24 21:36:28
Message-ID: bug-211713-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

           Summary: Crash when moving layer
           Product: krita
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: unspecified
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: krita-bugs-null@kde.org
        ReportedBy: kde@bartcoppens.be


Version:            (using KDE 4.3.2)
Installed from:    Compiled From Sources

I did the following: create 2600x2600 RGBA8 image. Paint on it. Add a layer.
Paint on that one. Move the top layer around. After a while of moving around
the layer (this might take a while, really), it crash reproducably:



KoCompositeOpAlphaBase<KoRgbTraits<unsigned char>,
KoCompositeOpOver<KoRgbTraits<unsigned char> > >::composite (this=<value
optimized out>,
    dstRowStart=0x7f2079ef34e0 '�' <repeats 200 times>..., dststride=<value
optimized out>, srcRowStart=0x7f207adbf094 <Address 0x7f207adbf094 out of
bounds>, srcstride=<value optimized out>,
    maskRowStart=0x0, maskstride=0, rows=53, cols=8, U8_opacity=255 '�',
channelFlags=@0x7f20813fa7b0) at
/mnt/kde-devel/krita/koffice/libs/pigment/compositeops/KoCompositeOpAlphaBase.h:125
125                             channels_type srcAlpha =
_compositeOp::selectAlpha(srcN[_CSTraits::alpha_pos],
dstN[_CSTraits::alpha_pos]);
(gdb) thread apply all bt

Thread 2 (Thread 0x7f2089362950 (LWP 16364)):
#0  KoCompositeOpAlphaBase<KoRgbTraits<unsigned char>,
KoCompositeOpOver<KoRgbTraits<unsigned char> > >::composite (this=<value
optimized out>,
    dstRowStart=0x7f2079ef34e0 '�' <repeats 200 times>..., dststride=<value
optimized out>, srcRowStart=0x7f207adbf094 <Address 0x7f207adbf094 out of
bounds>, srcstride=<value optimized out>,
    maskRowStart=0x0, maskstride=0, rows=53, cols=8, U8_opacity=255 '�',
channelFlags=@0x7f20813fa7b0) at
/mnt/kde-devel/krita/koffice/libs/pigment/compositeops/KoCompositeOpAlphaBase.h:125
#1  0x00007f20abea5056 in KisPainter::bitBlt (this=0x7f2089361280, dx=888,
dy=772, srcdev={d = 0x7f2089361240}, sx=<value optimized out>, sy=<value
optimized out>, sw=512, sh=461)
    at /mnt/kde-devel/krita/koffice/krita/image/kis_painter.cc:381
#2  0x00007f20abea6764 in KisPainter::bitBlt (this=0x28bbf10, pos=<value
optimized out>, src=<value optimized out>, srcRect=<value optimized out>)
    at /mnt/kde-devel/krita/koffice/krita/image/kis_painter.cc:399
#3  0x00007f20abef36ad in KisMergeVisitor::compositeWithProjection (this=<value
optimized out>, layer=<value optimized out>, rect=<value optimized out>)
    at /mnt/kde-devel/krita/koffice/krita/image/kis_merge_visitor.h:194
#4  0x00007f20abef29f0 in KisGroupLayer::repaintOriginal (this=<value optimized
out>, original=<value optimized out>, rect=@0x7f2089361610)
    at /mnt/kde-devel/krita/koffice/krita/image/kis_group_layer.cc:170
#5  0x00007f20abf0af16 in KisLayer::updateProjection (this=0x3e791b0,
rect=<value optimized out>) at
/mnt/kde-devel/krita/koffice/krita/image/kis_layer.cc:392
#6  0x00007f20abf34afc in KisImageUpdater::update (this=0x3e525d0, node={d =
0x7f2089361820}, child={d = 0x7f2089361810}, rc=<value optimized out>)
    at /mnt/kde-devel/krita/koffice/krita/image/kis_projection.cc:174
#7  0x00007f20abf34c0d in KisImageUpdater::update (this=0x3e525d0, node={d =
0x7f20893618b0}, child={d = 0x7f20893618a0}, rc=<value optimized out>)
    at /mnt/kde-devel/krita/koffice/krita/image/kis_projection.cc:183
#8  0x00007f20abf34e63 in KisImageUpdater::startUpdate (this=0x3e525d0,
node=<value optimized out>, rc=@0x28fa0b0) at
/mnt/kde-devel/krita/koffice/krita/image/kis_projection.cc:156
#9  0x00007f20abf34fa9 in KisImageUpdater::qt_metacall (this=0x3e525d0,
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x9a80db0)
    at /mnt/kde-devel/krita/build/koffice/krita/image/kis_projection.moc:132
#10 0x00007f20ac9c86c8 in QObject::event () from /usr/lib/libQtCore.so.4
#11 0x00007f20a546401d in QApplicationPrivate::notify_helper () from
/usr/lib/libQtGui.so.4
#12 0x00007f20a546c07a in QApplication::notify () from /usr/lib/libQtGui.so.4
#13 0x00007f20a6f779bb in KApplication::notify (this=0x7fffb50cf180,
receiver=0x3e525d0, event=0x412c1e0) at
/mnt/kde-devel/krita/kde4libs-4.3.2/kdeui/kernel/kapplication.cpp:302
#14 0x00007f20ac9b8c9c in QCoreApplication::notifyInternal () from
/usr/lib/libQtCore.so.4
#15 0x00007f20ac9b98e4 in QCoreApplicationPrivate::sendPostedEvents () from
/usr/lib/libQtCore.so.4
#16 0x00007f20ac9e5380 in QEventDispatcherUNIX::processEvents () from
/usr/lib/libQtCore.so.4
#17 0x00007f20ac9b7562 in QEventLoop::processEvents () from
/usr/lib/libQtCore.so.4
#18 0x00007f20ac9b7934 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#19 0x00007f20ac8d05a8 in QThread::exec () from /usr/lib/libQtCore.so.4
#20 0x00007f20ac8d34a5 in ?? () from /usr/lib/libQtCore.so.4
#21 0x00007f20ac652faa in start_thread () from /lib/libpthread.so.0
#22 0x00007f20a48612cd in clone () from /lib/libc.so.6
#23 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f20acf8a740 (LWP 16356)):
#0  0x00007f20a485ab22 in select () from /lib/libc.so.6
#1  0x00007f20ac9e3213 in QEventDispatcherUNIX::select () from
/usr/lib/libQtCore.so.4
#2  0x00007f20ac9e3c5d in QEventDispatcherUNIXPrivate::doSelect () from
/usr/lib/libQtCore.so.4
#3  0x00007f20ac9e53ed in QEventDispatcherUNIX::processEvents () from
/usr/lib/libQtCore.so.4
#4  0x00007f20a54fbee2 in ?? () from /usr/lib/libQtGui.so.4
#5  0x00007f20ac9b7562 in QEventLoop::processEvents () from
/usr/lib/libQtCore.so.4
#6  0x00007f20ac9b7934 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#7  0x00007f20ac9b9ba4 in QCoreApplication::exec () from
/usr/lib/libQtCore.so.4
#8  0x00007f20accb1a55 in kdemain (argc=<value optimized out>, argv=<value
optimized out>) at /mnt/kde-devel/krita/koffice/krita/main.cc:49
#9  0x00007f20a47b15a6 in __libc_start_main () from /lib/libc.so.6
#10 0x00000000004008f9 in _start () at ../sysdeps/x86_64/elf/start.S:113
125                             channels_type srcAlpha =
_compositeOp::selectAlpha(srcN[_CSTraits::alpha_pos],
dstN[_CSTraits::alpha_pos]);


This is compiled with some optimizations. I've verified that the srcRowStart is
actually valid when passed to the composite function, it is just not big
enough.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic