You Are Here:

Community: Developer Discussion Boards

#1 Old Strange MemoryError when dealing with PNG files stored in ZIP files... - 2009-04-20, 11:35

Join Date: Sep 2004
Posts: 31
jamiefuller
Offline
Registered User
Hi All,

I am a bit of a noob to python, only been at it a week now but have written my first application.

Its a comic book reader and works pretty well, if I may say so myself the packaged file can be found here http://www.jamiefuller.com

If I run the script in the Python enviroment and try to open a PNG file it works fine. However if I package the same script and run it directly when I try to open a PNG file I get a MemoryError error.

Rather strangly the error produced looks like this http://img529.imageshack.us/img529/6471/scr000094.jpg which looks like its failing in the zip module, but only when extracting 24 bit png files, which is very strange.

I have written a very tiny script here which extracts a single png file from a zip file called test.zip stored on the root of the e:\

It works fine in the editor but not when packaged.

Script file = http://30dbs.nfshost.com/error/prob.txt
Packaged SIS = http://30dbs.nfshost.com/error/prob_v1_0_0.sis
test zip file = http://30dbs.nfshost.com/error/test.zip

Any help would be great.
Reply With Quote

#2 Old Re: Strange MemoryError when dealing with PNG files stored in ZIP files... - 2009-04-20, 19:30

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
This is probably an error with the size of your zip file

What is its size?
Reply With Quote

#3 Old Re: Strange MemoryError when dealing with PNG files stored in ZIP files... - 2009-04-20, 19:51

Join Date: Sep 2004
Posts: 31
jamiefuller
Offline
Registered User
Quote:
Originally Posted by Rafael T. View Post
This is probably an error with the size of your zip file

What is its size?
hi, it happens in all sizes of zips, with all sizes of png files. Big zips, little zips, even zips with chicken pox
Reply With Quote

#4 Old Re: Strange MemoryError when dealing with PNG files stored in ZIP files... - 2009-04-20, 21:28

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Have you tried to increase heap size with Ensymble? More info at this thread.

Cheers,

--jouni
Reply With Quote

#5 Old Re: Strange MemoryError when dealing with PNG files stored in ZIP files... - 2009-04-20, 21:41

Join Date: Sep 2004
Posts: 31
jamiefuller
Offline
Registered User
Quote:
Originally Posted by JOM View Post
Have you tried to increase heap size with Ensymble? More info at this thread.

Cheers,

--jouni
jouni,

Thank you soooo much, that resoved it, I upped the Maximum heap size to 5MB and the problem seems to be gone!

Many thanks again!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
how to zip files sencao General Symbian C++ 7 2008-10-10 10:29
Location of PNG files & emulator 6230i heuven Mobile Java Media (Graphics & Sounds) 4 2006-09-27 11:55
Multiple files archive (tar, zip...) beltry General Symbian C++ 1 2006-09-13 13:07
GAMA and PHYS chunks in PNG files kounapuu Mobile Java Media (Graphics & Sounds) 0 2004-12-06 20:06
protecting png files kechong Mobile Java Media (Graphics & Sounds) 0 2003-06-03 16:11

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia