question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OutOfMemoryError creating a Movie

See original GitHub issue

Hello,

I’m using mp4parser 1.1.2.1, and I’m having a problem creating a movie. Movie movie = MovieCreator.build(new FileDataSourceImpl(video.getPath()));

this is the log: java.lang.OutOfMemoryError: Failed to allocate a 271631603 byte allocation with 16777216 free bytes and 69MB until OOM at java.nio.ByteBuffer.allocate(ByteBuffer.java:56) at com.googlecode.mp4parser.AbstractBox.parse(AbstractBox.java:110) at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:107) at com.googlecode.mp4parser.BasicContainer.next(BasicContainer.java:185) at com.googlecode.mp4parser.BasicContainer.hasNext(BasicContainer.java:161) at com.googlecode.mp4parser.util.LazyList.blowup(LazyList.java:30) at com.googlecode.mp4parser.util.LazyList.size(LazyList.java:77) at com.googlecode.mp4parser.BasicContainer.getBoxes(BasicContainer.java:80) at com.googlecode.mp4parser.authoring.samples.DefaultMp4SampleList.<init>(DefaultMp4SampleList.java:36) at com.coremedia.iso.boxes.mdat.SampleList.<init>(SampleList.java:33) at com.googlecode.mp4parser.authoring.Mp4TrackImpl.<init>(Mp4TrackImpl.java:64) at com.googlecode.mp4parser.authoring.container.mp4.MovieCreator.build(MovieCreator.java:57) at com.android.df.ContinuousCaptureActivity.trimVideo(ContinuousCaptureActivity.java:915) at com.android.df.ContinuousCaptureActivity.fileSaveComplete(ContinuousCaptureActivity.java:568) at com.android.df.ContinuousCaptureActivity.access$100(ContinuousCaptureActivity.java:97) at com.android.df.ContinuousCaptureActivity$MainHandler.handleMessage(ContinuousCaptureActivity.java:200) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) If you need more information I would appreciate It. Thank you.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:6

github_iconTop GitHub Comments

3reactions
whiteLTcommented, Jan 19, 2017

Same for me. version 1.1.21 the latest one. Had to went back to 1.1.7 this version does not throw that exception.

1reaction
guilpejoncommented, May 29, 2017

Same for version 1.9.27. Did you solved this @OrangeDynamic?

Read more comments on GitHub >

github_iconTop Results From Across the Web

OutOfMemoryError when playing several videos sequentially ...
An OutOfMemoryError means that your code is either using up too much memory. because of a bug (e.g. creating an array that's too...
Read more >
java - OutOfMemoryError even though enough free memory
OutOfMemoryError : unable to create new native thread is a confusing message, since it has not really to do with running out of...
Read more >
Windows 8 Movie Maker - Out of memory error
Running Windows 8 64 Bit 8 gb ram Adding files is fast, editing files is fast.....When "creating a movie" it gets to about...
Read more >
Adobe Premiere 2020 - Error Compiling Movie - Out of memory
Adobe Premiere 2020 - Error Compiling Movie - Out of memory - Failed to Create Encoder. agarabaghirollins.
Read more >
java heap space error while creating movie - narkive
Error using ==> movie. Java exception occurred: java.lang.OutOfMemoryError: Java heap space. I went to to the preferences and under the java heap space ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found