Bug 133640 - kmplot crashes when zooming in/out
Summary: kmplot crashes when zooming in/out
Status: RESOLVED WORKSFORME
Alias: None
Product: kmplot
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Klaus-Dieter M
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 10:37 UTC by Tobias G. Pfeiffer
Modified: 2008-04-20 16:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.