View Issue Details

IDProjectCategoryView StatusLast Update
0004318ScribusGeneralpublic2007-01-04 10:03
ReporterMartin van Rooten Assigned Toplinnell 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformMicrosoft WindowsOSXP pro 
Product Version1.3.3.3 
Summary0004318: PNG. problem
DescriptionWhen using .PNG files for images scribus sometimes uses over 350 MB memory. Sometimes when I try to open such a file, scribus crashes due to a EXEPTION_ACCES_VIOLATION.
When the images are in .JPG the 350MB is reduced to 25MB.
TagsNo tags attached.
Patch

Relationships

related to 0004522 closedplinnell crashing when exporting to PDF 
child of 0002438 acknowledged Metabug: Cases of extreme memory use 

Activities

ringerc

2006-09-29 10:52

reporter   ~0012694

What size are the original images? File size and image dimensions in pixels please. Also please confirm that you're using the _same_ image as both a JPEG and PNG, ie you're comparing apples and apples.

It's worth noting that Scribus must decompress PNG images to work on them (make thumbnails / previews, embed in PDF, etc). It currently does this in a less than ideally memory efficient way - decoding the whole thing into a buffer in RAM and working on it then. It can sometimes have two copies in RAM if it's doing something like applying an ICC profile. It'd be good to try to cut down on this, and there are a few possible ways to do so, but for now you need enough RAM to hold at least two copies of the biggest image in your document decompressed in memory, plus whatever other memory Scribus needs.

You didn't say how much RAM you had. That would be good to know when discussing memory use.

The reason JPEG images (sometimes) don't cause as many issues is that Scribus can sometimes avoid loading the whole image. In particular, if the JPEG doesn't need conversion or colour correction it can be embedded directly into a PDF without being decompressed. It's still decompressed on opening to make the preview image though.

Issue History

Date Modified Username Field Change
2006-09-29 07:40 Martin van Rooten New Issue
2006-09-29 10:52 ringerc Note Added: 0012694
2006-09-29 10:53 ringerc Relationship added child of 0002438
2006-11-16 10:04 mhanski Relationship added related to 0004522
2007-01-04 01:14 plinnell Status new => resolved
2007-01-04 01:14 plinnell Resolution open => unable to reproduce
2007-01-04 01:14 plinnell Assigned To => plinnell
2007-01-04 10:03 plinnell Status resolved => closed