[Marble-bugs] [Bug 201681] New: using the method MarbleWidget::centreOn() is making a very large amount of memory and using a lot of cpu.
Andrew Manson
g.real.ate at gmail.com
Mon Jul 27 18:22:20 CEST 2009
https://bugs.kde.org/show_bug.cgi?id=201681
Summary: using the method MarbleWidget::centreOn() is making a
very large amount of memory and using a lot of cpu.
Product: marble
Version: unspecified
Platform: Compiled Sources
OS/Version: unspecified
Status: NEW
Severity: crash
Priority: NOR
Component: general
AssignedTo: marble-bugs at kde.org
ReportedBy: g.real.ate at gmail.com
Version: (using Devel)
Installed from: Compiled sources
the MarbleWidget::centreOn() function is obviously stuck in an infinite loop
which is creating an object in memory for every turn of the loop. It took less
than 3 seconds for my memory to max out and if it didn't kill marble then it
would have even maxed out my swap.
The code used to cause this problem was :
m_marbleWidget->centerOn( item->coordinate(), false );
where the bool parameter was first tried to be "true" so that it would animate
the movement and the item is a GeoGraphicsItem that returns a correct
GeoDataCoordinates object.
I have committed the line that causes this problem but you will need to remove
the comments if you would like to recreate this error. it can be found in
OsmAnnotatePlugin.cpp line 212.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Marble-bugs
mailing list