Bug 154099

Summary: Kmpot hangs on doing implicit plots with < or > sign in it.
Product: [Applications] kmplot Reporter: Nikita Skovoroda <chalkerx>
Component: generalAssignee: Klaus-Dieter M <kd.moeller>
Status: CONFIRMED ---    
Severity: crash CC: eike.krumbacher, ewoerner, fraph24
Priority: NOR    
Version: 1.2.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kf5 port

Description Nikita Skovoroda 2007-12-15 13:53:42 UTC
Version:            (using KDE KDE 3.97.0)
Installed from:    SuSE RPMs
OS:                Linux

If i try to create an imlicit plot with function like f(x,y) = x + y < 1, kmplot just hangs with infinite number of 

kmplot(6867) View::drawImplicitInSquare: Implicit: got to last iteration!

in the console.

The expected behaviour is to draw an area on the plot, or to say that is not valid input data.
Comment 1 Tristan Hoffmann 2008-04-20 17:30:10 UTC
kmplot from KDE 4.x simply doesn't draw this function, so it behaves right I guess. Of course an error message would be great.
Comment 2 Nikita Skovoroda 2008-05-10 11:12:55 UTC
> kmplot from KDE 4.x simply doesn't draw this function, so it behaves right I guess.

Then it should give the user some sort of error message.
The problem is that it hangs and stops reacting to user actions.
Comment 3 Nikita Skovoroda 2008-09-20 01:51:35 UTC
Still hangs.

chalker@linux:~> kmplot --version
Qt: 4.5.0-snapshot-20080916
KDE: 4.1.66 (KDE 4.1.66 (KDE 4.2 >= 20080912)) "release 2.1"
KmPlot: 1.2.0
Comment 4 Nikita Skovoroda 2009-07-24 06:54:18 UTC
Still hangs on
„Qt: 4.5.2
KDE: 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2))
KmPlot: 1.2.1“.

No output to the console. The input indicator stops blinking, the window  contents turn to blank (if kwin effects are off).
Comment 5 Nikita Skovoroda 2010-06-20 12:24:58 UTC
„Qt: 4.6.3
KDE: 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2))
KmPlot: 1.2.1“
Comment 6 Nikita Skovoroda 2010-06-20 12:26:24 UTC
Using Arch Linux.(In reply to comment #5)
> „Qt: 4.6.3
> KDE: 4.4.85 (KDE 4.4.85 (KDE 4.5 Beta2))
> KmPlot: 1.2.1“

Using Arch Linux and kde-unstable.

The problem is still present.
Comment 7 Nikita Skovoroda 2011-06-07 22:32:59 UTC
Qt: 4.7.3
KDE: 4.6.80 (4.7 Beta1)
KmPlot: 1.2.1

Still hangs dead on (invalid?) input.
Comment 8 Nikita Skovoroda 2011-08-15 10:20:49 UTC
Qt: 4.7.3
KDE: 4.7.41 (4.7.41 (KDE 4.8 >= 20110807)
KmPlot: 1.2.1

Still hangs.
Comment 9 Nikita Skovoroda 2011-08-15 10:27:59 UTC
And it builds wrong graph for:

floor(x) = 1
y + floor(x) = 1
floor(y) = floor(x) — looks like junk
Comment 10 eike.krumbacher 2011-11-13 15:32:09 UTC
Hi!

Entering an equation like f(x) = x + y < 1 does not result in crash. You have to wait maybe 5 minutes. And then, you get the totally wrong result. 

If you like, you can test with g(x) = (x^2 + y^2) > 1, which goes faster. The result of the above equation (f) is a totally coloured/filled window, the latter (g) givese a figur which does not belong to the equation too.
Comment 11 Nikita Skovoroda 2012-01-08 15:01:31 UTC
Eike Krumbacher, that's nice, it hanged on that before, too.

Ok. Checked this again. Kmplot does not hang anymore, no «View::drawImplicitInSquare: Implicit: got to last iteration!» messages anymore.

But the results are broken.

Test functions:
x*x + y*y < 1
floor(y) = floor(x)
floor(x) = 1
y + floor(x) = 1
x + y < 1 (first example) — looks almost ok, but still not good enough.
Comment 12 Nikita Skovoroda 2012-01-08 15:10:16 UTC
Whoops, i am mistaken here. There are still a lot of «View::drawImplicitInSquare: Implicit: got to last iteration!» messages. I just forgot to enable kdebugdialog.

Sorry.

x*x + y*y < 1 — still hangs with 
kmplot(2078) View::drawImplicitInSquare: Implicit: got to last iteration!
…

x*x + y*y > 1 — gives junk with
kmplot(2078) View::drawImplicitInSquare: Implicit: got to last iteration!
…
kmplot(2078) View::drawImplicitInSquare: Implicit: got to last iteration!
kmplot(2078) View::drawImplicitInSquare: Implicit: got to last iteration!
kmplot(2078) View::drawImplicitInSquare: Couldn't find root - giving up.
Comment 13 Nikita Skovoroda 2012-01-08 15:15:44 UTC
Tested on

Qt: 4.8.0
KDE Development Platform: 4.7.97 (4.8 RC2 (4.7.97)
KmPlot: 1.2.1
Comment 14 Nikita Skovoroda 2012-05-22 15:37:49 UTC
KDE: 4.8.3, Qt: 4.8.1, KmPlot: 1.2.1.

Hangs.
Comment 15 Christoph Feck 2014-08-17 16:25:28 UTC
*** Bug 329556 has been marked as a duplicate of this bug. ***
Comment 16 Nikita Skovoroda 2015-03-15 23:59:07 UTC
Created attachment 91574 [details]
kf5 port

KF: 5.8.0
Qt: 5.4.1
KmPlot: 1.2.1

Takes several minutes, but does not hang.
The result is not valid (see the attachment).
Comment 17 Nikita Skovoroda 2015-03-16 00:01:29 UTC
> Takes several minutes, but does not hang.
You should read that as «stops reacting for several minutes, then renders some strange result».
Trying to resize the window results in several more blocked minutes.
Comment 18 Justin Zobel 2020-12-17 05:21:31 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 19 Christoph Feck 2020-12-17 11:31:02 UTC
Entering a simple relation such as 'x + y > 1' still causes a long lag, and a wrong result.