Summary: | Crash when trying to plot implicite x^y = y^x | ||
---|---|---|---|
Product: | [Applications] kmplot | Reporter: | Christoph Feck <cfeck> |
Component: | general | Assignee: | Klaus-Dieter M <kd.moeller> |
Status: | CONFIRMED --- | ||
Severity: | crash | CC: | annma, eike.krumbacher, justin.zobel |
Priority: | NOR | ||
Version First Reported In: | 1.2.1 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Christoph Feck
2010-02-28 23:51:12 UTC
No crash in 4.4 branch revision 1097441 but reproduced in trunk. It's x^y=1 or y^x=1 which crash for me apparently. Christoph, no clue where I can look? (I noticed you fixed some code in KmPlot in the past) The bugs are fixed were only cosmetical and parser related. I nonetheless looked at the issue more deeply. This is what I found out: 1. You can trigger it with more simple relations, such as "x^2=y^2". 2. You can work around it by using a "fuzzy" compare, such as "x^2=y^2+0.01". 3. By gradually making the fuzzy constant smaller (e.g. 0.001 etc), you see the problem: the graph crosses itself, and the internal implicit plot algorithm does not handle this. 4. By simply removing the assert, you get wrong plots, e.g. one line stops at the subdivision quadrant where the intersection occurs. In other words, to fix this bug requires someone familiar with both the code as well as implicit plots and its singularities handling, i.e. most probably the original author. Is he still around? Also try "sin x+cos y=0.01", and watch the intersections when lowering the fuzzy value :) Hi! Works for me. Version 1.2.1, KDE development platform ckecked out from git. (4.7.3) Creating an implicit plot with g(x,y) = x^y = y^x results in a correct plot. I think we can close this bug. Eike The assert instruction is still in the code, and it still asserts when plotting it. You probably have not compiled in debug mode. Christoph, 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. It still crashes, just type "sin x+cos y=0" to reproduce. |