Fwd: error: no matching function for call to `KisSelection::selected()'

Boudewijn Rempt boud at valdyas.org
Tue Apr 12 11:32:32 CEST 2005


Hi, here's an obvious memory corruption error that I however have never seen 
before. Has anyone an idea what is happening?

Melchior Franz reports:

BTW: You are probably aware of most of the bugs. But I want to mention that
I seldom manage to quit krita by closing the window. Most of the time I 
"finish" krita sessions because it simply segfaults. It always seems to be 
caused here:



#0  0x424ac86a in KisTiledDataManager::getTile (this=0x9413208, col=4, row=3, 
writeAccess=true)
    at kis_tileddatamanager.cc:474
474             KisTile *tile = m_hashTable[tileHash];
(gdb) list
469     KisTile *KisTiledDataManager::getTile(Q_INT32 col, Q_INT32 row, bool 
writeAccess)
470     {
471             Q_UINT32 tileHash = calcTileHash(col, row);
472
473             // Lookup tile in hash table
474             KisTile *tile = m_hashTable[tileHash];
475             while(tile != 0)
476             {
477                     if(tile->getRow() == row && tile->getCol() == col)
478                             break;


(gdb) bt
#0  0x424ac86a in KisTiledDataManager::getTile (this=0x9413208, col=4, row=3, 
writeAccess=true)
    at kis_tileddatamanager.cc:474
#1  0x424ac9ec in KisTiledDataManager::pixelPtr (this=0x9413208, x=21, 
y=-1348764826)
    at kis_tileddatamanager.cc:541
#2  0x424aca91 in KisTiledDataManager::writablePixel (this=0x6901f6, 
x=6881782, y=6881782)
    at kis_tileddatamanager.cc:553
#3  0x4244e42b in KisPaintDevice::writablePixel (this=0x9413208, x=64, 
y=6881782) at kis_datamanager.h:149
#4  0x42482bb0 in KisPainter::bitBlt (this=0x9419880, dx=277, dy=198, 
op=COMPOSITE_OVER, srcdev=
      {ptr = 0x8b15f20}, opacity=255 'ÿ', sx=0, sy=0, sw=11, sh=11) at 
ksharedptr.h:164
#5  0x42482e0f in KisPainter::bltSelection (this=0x9419880, dx=277, dy=198, 
op=COMPOSITE_OVER, srcdev=
      {ptr = 0x8b15f20}, opacity=255 'ÿ', sx=0, sy=0, sw=11, sh=11) at 
ksharedptr.h:62
#6  0x42d30f08 in KisBrushOp::paintAt (this=0x847f1c0, pos=@0xbfffdfa0, 
pressure=0.5) at kis_painter.h:249
#7  0x42480cee in KisPainter::paintAt (this=0x9419880, pos=@0x6901f6, 
pressure=0.5, xTilt=0.5, yTilt=0.5)
    at kis_painter.cc:688
#8  0x424cfdc9 in KisToolFreehand::paintAt (this=0x6901f6, pos=@0x6901f6, 
pressure=0.5, xTilt=0.5, yTilt=0.5)
    at kis_tool_freehand.h:76


(gdb) print tileHash
$1 = 100


(gdb) print m_hashTable
$3 = (KisTile **) 0x690066

(gdb) print *m_hashTable
Cannot access memory at address 0x690066



And the funny thing: in a second run under gdb the m_hashTable address was 
again 0x690066. So there's probably something writing over this address, or 
it wasn't even initialized at that time.

m.
-------------- 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/20050412/47af3541/attachment.pgp


More information about the kimageshop mailing list