I'm not sure why

Boudewijn Rempt boud at valdyas.org
Thu Feb 2 11:10:08 CET 2006


But without this patch

Index: kis_scale_visitor.cc
===================================================================
--- kis_scale_visitor.cc        (revision 504765)
+++ kis_scale_visitor.cc        (working copy)
@@ -106,8 +106,8 @@
         {
             if (!(contribY.p[srcpos].m_pixel < 0 || 
contribY.p[srcpos].m_pixel >= height))
             {
-                //tmpRows[contribY.p[srcpos].m_pixel] = new Q_UINT8[ width * 
m_pixelSize ];
-                tmpRows[ contribY.p[srcpos].m_pixel ] = tmpRowsMem[ srcpos ];
+                tmpRows[contribY.p[srcpos].m_pixel] = new Q_UINT8[ width * 
m_pixelSize ];
+                //tmpRows[ contribY.p[srcpos].m_pixel ] = 
tmpRowsMem[ srcpos ];
                 m_dev ->readBytes(tmpRows[contribY.p[srcpos].m_pixel], 0, 
contribY.p[srcpos].m_pixel, width, 1);
             }
         }

I get the following crash whenever I want to see the filters dialog. It could 
be something I did -- but in that case everyone would have the crash now, but 
I don't understand how I could have messed up the scaling code by not touching
it.

#9  0xb66af83c in memcpy () from /lib/tls/i686/cmov/libc.so.6
#10 0xb60f7763 in KisTiledDataManager::readBytes (this=0x8a4acb8, 
    data=0x30 <Address 0x30 out of bounds>, x=0, y=5, w=500, h=1)
    at /home/boud/koffice/krita/core/tiles/kis_tileddatamanager.cc:727
#11 0xb60ee620 in KisDataManager::readBytes (this=0x8a4acb8, 
    data=0x30 <Address 0x30 out of bounds>, x=0, y=5, w=500, h=1)
    at kis_datamanager.h:180
#12 0xb60ed8a3 in KisPaintDevice::readBytes (this=0xb1ca3508, 
    data=0x30 <Address 0x30 out of bounds>, x=0, y=5, w=500, h=1)
    at /home/boud/koffice/krita/core/kis_paint_device.cc:969
#13 0xb60e2b6b in KisScaleWorker::run (this=0xbfd4d99c)
    at /home/boud/koffice/krita/core/kis_scale_visitor.cc:111
#14 0xb623a621 in KisPreviewWidget::zoomChanged (this=0x8a51388)
    at /home/boud/koffice/krita/ui/kis_previewwidget.cc:200
#15 0xb623a8d7 in KisPreviewWidget::slotSetDevice (this=0x8a51388, 
    dev=@0xbfd4dbb4) at /home/boud/koffice/krita/ui/kis_previewwidget.cc:119
#16 0xb6216770 in KisFilterManager::slotApplyFilter (this=0x8b42dd0, i=4)
    at /home/boud/koffice/krita/ui/kis_filter_manager.cc:283
#17 0xb6216da1 in KisFilterManager::qt_invoke (this=0x8b42dd0, _id=4, 
    _o=0xbfd4dca8) at kis_filter_manager.moc:93
-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20060202/54fe991f/attachment.pgp 


More information about the kimageshop mailing list