Bug 448600

Summary: KmPlot crashed after zoom out
Product: [Applications] kmplot Reporter: Emanuele Spirito <emaster987>
Component: generalAssignee: Christoph Feck <cfeck>
Status: REPORTED ---    
Severity: crash CC: emaster987, kitt997
Priority: NOR    
Version First Reported In: 1.3.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Log of crash done by KCrash
Another log by KCrash
Plot of the function

Description Emanuele Spirito 2022-01-16 15:22:12 UTC
Created attachment 145546 [details]
Log of crash done by KCrash

SUMMARY
I asked KmPlot to plot a implicit function plot of (1−y^2)∙(2−y^2) − (1+cos(3∙x))= 0. Then he plotted correctly, when I tried to zoom out two times it crashed. I tried again and it happened again. I noticed that the backtrace was very long to achieve the first time (I mean 10 minutes). 

STEPS TO REPRODUCE
1. Open KmPlot
2. Plot a implicit function plot of (1−y^2)∙(2−y^2) − (1+cos(3∙x))= 0
3.  Zoom out some times.

OBSERVED RESULT
Until 3. KmPlot plotted the function correctly but after 3. KmPlot crashes.

EXPECTED RESULT
No crashes. 

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 35
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.14.17-301.fc35.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics

ADDITIONAL INFORMATION
Comment 1 Emanuele Spirito 2022-01-16 15:23:10 UTC
Created attachment 145547 [details]
Another log by KCrash

I repetead the sequence another time and the result was the same but I send you this new crash log.
Comment 2 Emanuele Spirito 2022-01-16 15:23:45 UTC
Created attachment 145548 [details]
Plot of the function

I attached the screenshot of the plot of the function