Archived:Not enough memory - error when decoding progressive JPEG images (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (21 Jun 2012)



Trying to decode a JPEG image with progressive encoding may result in "Not enough memory" error.


Decoding (converting) a JPEG image with progressive encoding reserves more memory than decoding an image with sequential encoding.
When using the CImageDecoder class to decode a large progressive JPEG, CImageDecoder::Convert() may complete with KErrNoMemory (-4) error.

How to reproduce

(See detailed description).


Increasing the maximum size of the heap memory that the application may use helps solving memory issues with  CImageDecoder. Heap size can be adjusted with the EPOCHEAPSIZE keyword in the .mmp project definition file. For example,
EPOCHEAPSIZE  0x100000 0x200000
This will set the initial heap size to 4 KB (default value), and the maximum to 2 MB.

This page was last modified on 21 June 2012, at 06:46.
72 page views in the last 30 days.