Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Memory leak in Calc
Memory leak in Calc
 
   NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
Boukman
Pure-blooded Human


Joined: Nov 16, 2004
Posts: 31

PostPosted: Sun Mar 09, 2008 4:13 pm    Post subject: Memory leak in Calc

I may have stumbled upon a memory leak bug in the Calc component of Neooffice. I don't know if it's a bug with the openoffice.org underlying code, but I am working on a file and I noticed this weird behaviour whereby when I want to delete rows from this Excel (.xls) file which contains a long list of names using the "Command" key to choose multiple, non-consecutive lines, I get a warning window titled "Neooffice 2.2" which states "Warning: The content was not copied to the clipboard." I then acknowledge the window by pressing on the "OK" button, which makes the window disappear. However, since I do this quite a lot on this file, over time, I see my swap files become bigger and bigger, and I verified that Neooffice is the culprit with Activity Monitor. At some point, I have to quit Neooffice to bring back the swap files to a reasonable size. I'm using Neooffice 2.2.2 patch 11 on PowerPC running Mac OS X 10.5.2.

I know I might be short on details, but if you want more info, or a copy of the file I'm working on, you just have to ask.[/b]
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun Mar 09, 2008 4:31 pm    Post subject:

My first idea would be to eliminate NeoOffice's "Undo buffer" as the cause by trying the following:

1. Select the Tools :: Options menu
2. In the dialog that appears, select NeoOffice :: Memory
3. Lower the Undo :: Number of Steps field to something small like 10 (mine is set at 100) and click the OK button
4. Restart NeoOffice

Does this cause memory to stay within reasonable levels?

Patrick
Back to top
Boukman
Pure-blooded Human


Joined: Nov 16, 2004
Posts: 31

PostPosted: Sun Mar 09, 2008 6:53 pm    Post subject:

Your idea did help quite a bit. I tested it for a few hours, but in the end, my swap files were still getting bigger, only at a much, much lower rate than before, so Neooffice was much more usable. I still want to thank you for your quick answer.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun Mar 09, 2008 7:25 pm    Post subject:

Looking at swap files will only give you a very rough sense of total memory used by all processes, not a specific one.

What would be more useful to collect is Virtual Memory column for NeoOffice as shown in the /Applications/Utilities/Activity Monitor application.

Patrick
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Testing All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.