• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

ios app crash after download due to low memory in ipad 1

Guest
Sep 05, 2013 Sep 05, 2013

Copy link to clipboard

Copied

my ios application download some .zip files and then start unzip. if .zip file is higher than 50MB, program crash after downloading. i can see it is fully downloaded in progress event but complete event cannot dispatch. also app crash when zip file is higher than 150MB in ipad 3.

TOPICS
Development

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

Could you please share code snippet or sample application to reproduce the problem. Also, please share the iOS and AIR SDK version you are using?

Regards,

Nimit

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 06, 2013 Sep 06, 2013

Copy link to clipboard

Copied

air 3.7

ios 6.3  

     //download button click:

               ...

                        loader.dataFormat = URLLoaderDataFormat.BINARY;

                        loader.load(selectedContent.fileurl);

                        loader.addEventListener(ProgressEvent.PROGRESS, downloadProgress);

                        loader.addEventListener(Event.COMPLETE, downloadComplete);

               ...

private function downloadProgress(event:ProgressEvent):void
{


loadingText.text = lang.getWord("player.mobile.downloading") + Math.round(event.bytesLoaded / 1024) + "/" + Math.round(event.bytesTotal / 1024);




}

private function downloadComplete(event:Event):void

        {

         

            var fileName:String = "z" + downloadContent.loid.toString() + ".zip"; // new String(downloadContent.fileurl).split("/").pop();

            //call the saveLocally function; loader.data has the bytes of the loaded resource

         

            saveLocally("zip/" + fileName, loader.data);

           

            loadingText.text = lang.getWord("player.mobile.downloadFinished");

            loader.close();

            loader == null;

            try

            {

                unzipFile("zip/" + fileName);

               

            }

            catch (err:Error)

            {

                loadingText.visible = false;

                downloadContent = null;

                UI.hideActivityIndicator();

               

                Warn(lang.getWord("player.mobile.downloadError"));

               

                refreshList();

            }

        }

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 08, 2013 Sep 08, 2013

Copy link to clipboard

Copied

Are you sure that you are not just running out of memory on whatever iPad you are testing it? If you fill up the RAM memory, your iPad crashes and that's quite normal...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 08, 2013 Sep 08, 2013

Copy link to clipboard

Copied

LATEST

i can see memory usage while testing and it crash due to lack of memory. also smaller zip files can be downloaded and unzipped. is it normal to crash due to unzipping 50mb file?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines