Bug 133640

Summary: kmplot crashes when zooming in/out
Product: [Applications] kmplot Reporter: Tobias G. Pfeiffer <tgpfeiffer>
Component: generalAssignee: Klaus-Dieter M <kd.moeller>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tobias G. Pfeiffer 2006-09-06 10:37:42 UTC
Version:            (using KDE KDE 3.5.4)
Installed from:    Ubuntu Packages
OS:                Linux

When I have kmplot draw a function graph (no matter what complexity) and use any kind of zooming function (in/out/whatever), then kmplot hangs, I see the mouse pointer that tells me to wait ("hour glass" in other operating systems) and so it remains, i.e. the window gets blank and I can't do anything in it.

It might be that it is no kmplot bug, since - if I remember right - I once was looking in the source for finding the bug and it seems that the corresponding function is never called at all.
Comment 1 Xavier Corredor Llano 2006-10-22 01:41:15 UTC
also it happens to me, with Kubuntu Edgy RC1
Comment 2 FunkyTune 2007-01-31 16:44:27 UTC
This happens to me, too.
Kubuntu Edgy 6.10
Comment 3 FunkyTune 2007-04-08 23:56:57 UTC
OK, I think I've managed to track down what is going on. 
It seems that the Parser::eval() method doesn't handle decimal numbers correctly, but returns 0 instead. This leads to xmin and xmax both becoming 0 in coordToMinMax(), which in turn makes dx in plotfkt() to be 0 as well, so the rendering gets stuck in an endless loop.

Hope that will help.

/John
Comment 4 Tristan Hoffmann 2008-04-20 16:54:09 UTC
I can not reproduce this bug at all with kmplot 1.2.0 on KDE 3.5.7 (openSUSE packages), so I assume it's fixed.

Please retest with a more recent version and reopen this bug, if kmplot still hangs on zooming, thanks.