Skip to main content
Known Participant
March 11, 2013
Question

Ipad App using adobe air hangs completely on trying to load an image in release build

  • March 11, 2013
  • 4 replies
  • 945 views

I am trying load a png image from a url for an AIR app that is tobe deployed in Ipad. I am using air 3.6 Below is a simplified version of my code:-

var loader:Loader = new Loader();
loader
.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, onIconLoaded);

loader
.contentLoaderInfo.addEventListener(ErrorEvent.ERROR, function(event:ErrorEvent😞void {
trace
('security sandbox error ignored');
});

var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain);
trace
("going for image load");
loader
.load ( new URLRequest("some url"), context );

private function onIconLoaded(event:flash.events.Event😞void
{          
    trace
("image loaded");
   
var info:LoaderInfo = event.target as LoaderInfo;      
    addChild
(info.content);

}

This works perfectly fine inside adobe flex builder (tried with 4.6 & 4.7). It also works fine in ipad when done fast packaging. But after doing 'export release build' the whole app is getting hanged whenever I try to download the image using the above code snippet.

Is it related to the below problem:-

http://forums.adobe.com/message/4656130

If yes, has it been resolved?


This topic has been closed for replies.

4 replies

dm1985Author
Known Participant
March 12, 2013

Can anyone provide me any clue what is going wrong?

chris.campbell
Legend
March 12, 2013

Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include your sample code or an application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly (ccampbel@adobe.com). 

I've forwarded this along to the iOS team so someone should take a look soon.  Once you've added, please post back with the URL so that others effected can add their comments and votes.

Thanks,

Chris

dm1985Author
Known Participant
March 13, 2013

Thanks Chris for replying.

I have created the bug at bugbase.adobe.com. BUG ID - 3519108.