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

List:       kde-bugs-dist
Subject:    [Bug 248397] Kolor Lines crashes constantly while playing
From:       Frederik Schwarzer <schwarzer () kde ! org>
Date:       2011-06-23 15:55:37
Message-ID: 20110623155537.108FA8AA58 () immanuel ! kde ! org
[Download RAW message or body]

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


Frederik Schwarzer <schwarzer@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schwarzer@kde.org




--- Comment #19 from Frederik Schwarzer <schwarzer kde org>  2011-06-23 17:55:35 ---
Ok, that made it crash here as well. Even with smaller window sizes.

My debug output says:
klines(9822) KLinesAnimator::moveAnimationFrame: === frame:  337
klines(9822) KLinesAnimator::moveAnimationFrame: === cellSize:  44
klines(9822) KLinesAnimator::moveAnimationFrame: === intervalNum:  7
klines(9822) KLinesAnimator::moveAnimationFrame: === m_foundPath.count():  16
klines(9822) KLinesAnimator::moveAnimationFrame: === frame:  580
klines(9822) KLinesAnimator::moveAnimationFrame: === cellSize:  43
klines(9822) KLinesAnimator::moveAnimationFrame: === intervalNum:  13
klines(9822) KLinesAnimator::moveAnimationFrame: === m_foundPath.count():  16
klines(9822) KLinesAnimator::moveAnimationFrame: === frame:  647
klines(9822) KLinesAnimator::moveAnimationFrame: === cellSize:  37
klines(9822) KLinesAnimator::moveAnimationFrame: === intervalNum:  17
klines(9822) KLinesAnimator::moveAnimationFrame: === m_foundPath.count():  16
ASSERT failure in QList<T>::at: "index out of range", file
/usr/include/qt4/QtCore/qlist.h, line 456

When the window size decreases, the cellSize does as well. Then the calculation
of the intervalNumber changes and it can become bigger than the number of paths
found.

The fix from #16 looks like a nice workaround for shrinking windows, but if the
window size is increased while the animation runs, as does the cellSize and
then the ball arrives in the wrong cell.

I guess the whole animation calculation needs to be reworked.
KLines is currently unmaintained. It needs someone digging in a bit into the
animation code.

-- 
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