java.lang.OutOfMemoryError: Failed to allocate a 1751411837 byte allocation with 14685664 free bytes and 170MB until OOM

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

tip

Try adding these lines to your manifest: "android:hardwareAccelerated="false"" and "android:largeHeap="true"" as it seems to work for some cases. See also this article about handling bitmaps on android's documentation: https://goo.gl/8LVrzp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 139#239198946
    via GitHub by mikes01
    ,
  • OutOfMemoryError on nexus 6 video
    via GitHub by Artem-dsi
    ,
  • GitHub comment 30#185086377
    via GitHub by kientux
    ,
  • OutOfMemoryError
    via GitHub by levantaodedo
    ,
  • GitHub comment 21#112281178
    via GitHub by jpxiong
    ,
  • GitHub comment 2#112270989
    via GitHub by jpxiong
    ,
  • GitHub comment 9#90753090
    via GitHub by lgorse
    ,
    • java.lang.OutOfMemoryError: Failed to allocate a 1751411837 byte allocation with 14685664 free bytes and 170MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at java.nio.MemoryBlock.allocate(MemoryBlock.java:131) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:73) at org.mp4parser.support.AbstractBox.parse(AbstractBox.java:95) at org.mp4parser.AbstractBoxParser.parseBox(AbstractBoxParser.java:107) at org.mp4parser.BasicContainer.initContainer(BasicContainer.java:107) at org.mp4parser.boxes.iso14496.part12.MetaBox.parse(MetaBox.java:82) at org.mp4parser.AbstractBoxParser.parseBox(AbstractBoxParser.java:107) at org.mp4parser.BasicContainer.initContainer(BasicContainer.java:107) at org.mp4parser.support.AbstractContainerBox.parse(AbstractContainerBox.java:75) at org.mp4parser.AbstractBoxParser.parseBox(AbstractBoxParser.java:107) at org.mp4parser.BasicContainer.initContainer(BasicContainer.java:107) at org.mp4parser.IsoFile.<init>(IsoFile.java:55) at org.mp4parser.IsoFile.<init>(IsoFile.java:50) at org.mp4parser.muxer.container.mp4.MovieCreator.build(MovieCreator.java:54) at b.m.videoblog.maker.VideoFile.mergeVideo(VideoFile.java:159) at b.m.videoblog.maker.Maker.mergeFile(Maker.java:448) at b.m.videoblog.maker.Maker.setupPlayer(Maker.java:148) at b.m.videoblog.maker.States.MakerPlayerState.initialize(MakerPlayerState.java:20) at b.m.videoblog.maker.Maker.onSurfaceTextureAvailable(Maker.java:324) at android.view.TextureView.getHardwareLayer(TextureView.java:368) at android.view.View.updateDisplayListIfDirty(View.java:15244) at android.view.View.draw(View.java:16040) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15262) at android.view.View.draw(View.java:16040) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15262) at android.view.View.draw(View.java:16040) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15262) at android.view.View.draw(View.java:16040) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15262) at android.view.View.draw(View.java:16040) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.updateDisplayListIfDirty(View.java:15262) at android.view.View.draw(View.java:16040) at android.view.ViewGroup.drawChild(ViewGroup.java:3610) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3400) at android.view.View.draw(View.java:16273) at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2697) at android.view.View.updateDisplayListIfDirty(View.java:15267) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:281) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:287) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:322) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2619) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2438) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2071) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1111) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6017) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:606) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)

    Users with the same issue

    Agócs Tamás
    Agócs Tamás3 times, last one,
    Larten
    Larten8 times, last one,
    Stefan Braune
    Stefan Braune17 times, last one,
    Unknown visitor1 times, last one,
    filpgame
    filpgame8 times, last one,
    65 more bugmates