Skip to main content
Inspiring
July 27, 2013
Question

asc 2.0 crash with large embedded video file

  • July 27, 2013
  • 2 replies
  • 871 views

Hello,

asc 2.0 crash with large embedded video files

package{ 

  import flash.display.Sprite;

  public class Main extends Sprite{

    [Embed(source="video/myVideo.mp4", mimeType="application/octet-stream")]

    public var video:Class;

    public function Main(){

    }

  }

}

on Windows with a small video, it compile fine, with a large video (525 Mo) the compiler crash

internal error : java.lang.NullPointerException

        at com.adobe.flash.swf.SWF.addFrame(SWF.java:91)

        at com.adobe.flash.compiler.internal.targets.SWFTarget$FramesInformation

.createFrames(SWFTarget.java:876)

        at com.adobe.flash.compiler.internal.targets.AppSWFTarget$AppFramesInfor

mation.createFrames(AppSWFTarget.java:386)

        at com.adobe.flash.compiler.internal.targets.SWFTarget.build(SWFTarget.j

ava:243)

        at com.adobe.flash.compiler.clients.MXMLC.buildSWFModel(MXMLC.java:674)

        at com.adobe.flash.compiler.clients.MXMLC.buildArtifact(MXMLC.java:660)

        at com.adobe.flash.compiler.clients.MXMLC.compile(MXMLC.java:541)

        at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:230)

        at com.adobe.flash.compiler.clients.MXMLC.mainNoExit(MXMLC.java:184)

        at com.adobe.flash.compiler.clients.MXMLC.staticMainNoExit(MXMLC.java:15

6)

        at com.adobe.flash.compiler.clients.MXMLC.main(MXMLC.java:143)

Thanks

This topic has been closed for replies.

2 replies

Participating Frequently
August 1, 2013

java.lang.NullPointerException

i met this error every time if i compile a "BIG " project.(with 1G+  image resources).   And also ,if you  import 500+ images into Flash CS ...you  know ,its prefix is  "Adobe".

i guess , it's  because somebody not like "BIG " thing.

So..on  32bit windows  platform ..i  upgrade my JVM to  1.7 ,and..modified  -XSS value . it will help us ..but not 100% resolved.

Finally ,i upgrade to  64bit platform ..this problem seems  gone.

I think ,it's  because of the bad RAM Manager  of  JVM. on 32bit windows machine .it's only can manager 1024M ram .(such a stupid VM).   And  on 64bit platform ..JVM seems  to be d normal.

chris.campbell
Legend
July 30, 2013

Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include 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). 

Once added, please post back with the URL so that others affected can add their comments and votes.

Thanks,

Chris