Re: [prerelease] LyX 1.4.0pre3 - memory for screen graphics

2006-01-04 Thread Peter Mountfort
Hi All

I have compiled 


Re: [prerelease] LyX 1.4.0pre3 - memory for screen graphics

2006-01-04 Thread Peter Mountfort
Hi All

Apologies for the incomplete post earlier.

I have compiled lyx-1.4.0pre3 on SuSE 10.0 and 9.2 using the qt frontend. In 
both cases the memory usage of LyX and the X-server grow without bound, when 
editing documents containing graphics.

In the simplest case, it seems that cutting and pasting a paragraph above a 
graphics insert which is shown in LyX causes the image to be reconverted, 
without freeing the memory from the previous conversion.

Attached are the debug output (on SuSE 9.2) from LyX and some runs of ps for a 
minimal session which illustrates the problem:
1. Open lyx document which contains one image
2. Scroll down until image is displayed
   log shows image is converted
   memory grows 2.5 MB
3. Scroll up until image is off screen
4. Select and cut a paragraph
5. Paste the paragraph back
   log shows image is reconverted
   memory grows 1 MB
6. Undo and Redo
   log shows image is reconverted
   memory grows 2 MB
7. Exit and discard changes

The problem was discovered while editing a document with many images when the 
memory usage of LyX and the X-server each grew to 1.5 GB.

I have searched unsuccessfully for reports of this problem in bugzilla and the 
mail list archive.

Regards

Peter
lyx4 -dbg info,gui,action,graphics
Setting debug level to info,gui,action,graphics
Debugging `info' (General information)
Debugging `gui' (GUI handling)
Debugging `action' (User commands)
Debugging `graphics' (Graphics conversion and loading)
Could not find  Qt translations for locale en_GB.UTF-8
LoaderQueue:  priority set to 10 images at a time, 100 milliseconds between calls
Recognised Fileformat: agr
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
File type not recognised before EOF!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
Language code:C
Setting new locale for Qt:C
LoaderQueue: waking up
Full icon name is `/usr/local/share/lyx/images/buffer-new.xpm'
Full icon name is `/usr/local/share/lyx/images/file-open.xpm'
Full icon name is `/usr/local/share/lyx/images/buffer-write.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show_print.xpm'
Full icon name is `/usr/local/share/lyx/images/undo.xpm'
Full icon name is `/usr/local/share/lyx/images/redo.xpm'
Full icon name is `/usr/local/share/lyx/images/cut.xpm'
Full icon name is `/usr/local/share/lyx/images/copy.xpm'
Full icon name is `/usr/local/share/lyx/images/paste.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show_findreplace.xpm'
Full icon name is `/usr/local/share/lyx/images/font-emph.xpm'
Full icon name is `/usr/local/share/lyx/images/font-noun.xpm'
Full icon name is `/usr/local/share/lyx/images/font-free-apply.xpm'
Full icon name is `/usr/local/share/lyx/images/math-mode.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_graphics.xpm'
Full icon name is `/usr/local/share/lyx/images/tabular-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_Enumerate.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_Itemize.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_List.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_Description.xpm'
Full icon name is `/usr/local/share/lyx/images/depth-increment.xpm'
Full icon name is `/usr/local/share/lyx/images/depth-decrement.xpm'
Full icon name is `/usr/local/share/lyx/images/float-insert_figure.xpm'
Full icon name is `/usr/local/share/lyx/images/float-insert_table.xpm'
Full icon name is `/usr/local/share/lyx/images/label-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_ref.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_citation.xpm'
Full icon name is `/usr/local/share/lyx/images/index-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/footnote-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/marginalnote-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/note-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/url-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/ert-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_include.xpm'
Full icon 

Re: [prerelease] LyX 1.4.0pre3 - memory for screen graphics

2006-01-04 Thread Peter Mountfort
Hi All

I have compiled 


Re: [prerelease] LyX 1.4.0pre3 - memory for screen graphics

2006-01-04 Thread Peter Mountfort
Hi All

Apologies for the incomplete post earlier.

I have compiled lyx-1.4.0pre3 on SuSE 10.0 and 9.2 using the qt frontend. In 
both cases the memory usage of LyX and the X-server grow without bound, when 
editing documents containing graphics.

In the simplest case, it seems that cutting and pasting a paragraph above a 
graphics insert which is shown in LyX causes the image to be reconverted, 
without freeing the memory from the previous conversion.

Attached are the debug output (on SuSE 9.2) from LyX and some runs of ps for a 
minimal session which illustrates the problem:
1. Open lyx document which contains one image
2. Scroll down until image is displayed
   log shows image is converted
   memory grows 2.5 MB
3. Scroll up until image is off screen
4. Select and cut a paragraph
5. Paste the paragraph back
   log shows image is reconverted
   memory grows 1 MB
6. Undo and Redo
   log shows image is reconverted
   memory grows 2 MB
7. Exit and discard changes

The problem was discovered while editing a document with many images when the 
memory usage of LyX and the X-server each grew to 1.5 GB.

I have searched unsuccessfully for reports of this problem in bugzilla and the 
mail list archive.

Regards

Peter
lyx4 -dbg info,gui,action,graphics
Setting debug level to info,gui,action,graphics
Debugging `info' (General information)
Debugging `gui' (GUI handling)
Debugging `action' (User commands)
Debugging `graphics' (Graphics conversion and loading)
Could not find  Qt translations for locale en_GB.UTF-8
LoaderQueue:  priority set to 10 images at a time, 100 milliseconds between calls
Recognised Fileformat: agr
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
File type not recognised before EOF!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
filetools(getFormatFromContents)
Couldn't find a known format!
Language code:C
Setting new locale for Qt:C
LoaderQueue: waking up
Full icon name is `/usr/local/share/lyx/images/buffer-new.xpm'
Full icon name is `/usr/local/share/lyx/images/file-open.xpm'
Full icon name is `/usr/local/share/lyx/images/buffer-write.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show_print.xpm'
Full icon name is `/usr/local/share/lyx/images/undo.xpm'
Full icon name is `/usr/local/share/lyx/images/redo.xpm'
Full icon name is `/usr/local/share/lyx/images/cut.xpm'
Full icon name is `/usr/local/share/lyx/images/copy.xpm'
Full icon name is `/usr/local/share/lyx/images/paste.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show_findreplace.xpm'
Full icon name is `/usr/local/share/lyx/images/font-emph.xpm'
Full icon name is `/usr/local/share/lyx/images/font-noun.xpm'
Full icon name is `/usr/local/share/lyx/images/font-free-apply.xpm'
Full icon name is `/usr/local/share/lyx/images/math-mode.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_graphics.xpm'
Full icon name is `/usr/local/share/lyx/images/tabular-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_Enumerate.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_Itemize.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_List.xpm'
Full icon name is `/usr/local/share/lyx/images/layout_Description.xpm'
Full icon name is `/usr/local/share/lyx/images/depth-increment.xpm'
Full icon name is `/usr/local/share/lyx/images/depth-decrement.xpm'
Full icon name is `/usr/local/share/lyx/images/float-insert_figure.xpm'
Full icon name is `/usr/local/share/lyx/images/float-insert_table.xpm'
Full icon name is `/usr/local/share/lyx/images/label-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_ref.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_citation.xpm'
Full icon name is `/usr/local/share/lyx/images/index-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/footnote-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/marginalnote-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/note-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/url-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/ert-insert.xpm'
Full icon name is `/usr/local/share/lyx/images/dialog-show-new-inset_include.xpm'
Full icon