×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    31

    Strange MemoryError when dealing with PNG files stored in ZIP files...

    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.

  2. #2
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: Strange MemoryError when dealing with PNG files stored in ZIP files...

    This is probably an error with the size of your zip file

    What is its size?

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    31

    Re: Strange MemoryError when dealing with PNG files stored in ZIP files...

    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

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Strange MemoryError when dealing with PNG files stored in ZIP files...

    Have you tried to increase heap size with Ensymble? More info at this thread.

    Cheers,

    --jouni

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    31

    Re: Strange MemoryError when dealing with PNG files stored in ZIP files...

    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!

Similar Threads

  1. how to zip files
    By sencao in forum Symbian
    Replies: 7
    Last Post: 2008-10-10, 09:29
  2. Location of PNG files & emulator 6230i
    By heuven in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-09-27, 10:55
  3. Multiple files archive (tar, zip...)
    By beltry in forum Symbian
    Replies: 1
    Last Post: 2006-09-13, 12:07
  4. GAMA and PHYS chunks in PNG files
    By kounapuu in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-12-06, 19:06
  5. protecting png files
    By kechong in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-06-03, 15:11

Posting Permissions

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