Archived:Using createImage to mirror certain PNGs causes phone crash on S60 3rd Edition (Known Issue)
Archived: 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}}.
This known issue was originally created by Ed welch and has been verified by Nokia Developer.
Article Metadata
Tested with
Devices(s): All
Compatibility
Platform(s): S60 3rd Edition
Article
Created: ed_welch
(03 Sep 2007)
Last edited: hamishwillee
(28 Jun 2012)
Description
This problem only occurs with 8-bit PNG images with dimensions 31 x [an odd number of pixels] and have transparent pixels. It happens when you use Image.createImage to transform an image as follows:
When you draw the image, it will be shown with the transparent pixels of the right-hand side replaced with white pixels. If you try drawing the image several times, the phone will eventually crash.
Solution
Do not use bitmaps with dimensions of 31 x [an odd number of pixels].


You say: certain PNGs. So it is not any PNG file but some special files with some special characteristics. Can you identify those files more precisely?
Could you please define the "crash"? Is is that the phone hits a wall, another phone or a moving car ? :) Or are we talking about a worm reset?
ltomuta