Closed HBiSoft closed 4 years ago
I can confirm that this issue is not present in 1.1.7
. Since posting this issue I haven't had any crashes.
I've tried all the versions after 1.1.7
, so for now I will stick with 1.1.7
.
Same problem here. I'm using version 1.9.39
Video file https://drive.google.com/open?id=1EX-EJvGAARsRXIb1PQutUTSyuk4mBegt
My code:
val movie = MovieCreator.build(File(dstPath))
StackTrace:
E/flutter: [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(40)] java.lang.OutOfMemoryError: Failed to allocate a 2065855862 byte allocation with 16777216 free bytes and 158MB until OOM
at java.nio.ByteBuffer.allocate(ByteBuffer.java:56)
at org.mp4parser.support.AbstractBox.parse(AbstractBox.java:96)
at org.mp4parser.AbstractBoxParser.parseBox(AbstractBoxParser.java:115)
at org.mp4parser.BasicContainer.initContainer(BasicContainer.java:107)
at org.mp4parser.IsoFile.<init>(IsoFile.java:57)
at org.mp4parser.IsoFile.<init>(IsoFile.java:52)
at org.mp4parser.muxer.container.mp4.MovieCreator.build(MovieCreator.java:54)
at org.mp4parser.muxer.container.mp4.MovieCreator.build(MovieCreator.java:39)
@talesbarretoss
I tried testing with your video, but I need permission..
Try version 1.1.7, I haven't had this issue since using it.
@talesbarretoss
I just tested your video in my application running 1.1.7
and it's working fine. My device's video player can't open it, but my app can.
Thank you @HBiSoft! We will keep version 1.1.7 for a while.
This issue has been posted multiple times, but non of them have actually provided a project and file that reproduces this issue #139 #151 #284 #299
I created a project that replicates this issue every time, here is the link (Latest version was used - 1.9.39):
https://github.com/HBiSoft/Mp4ParserOutOfMemory
and here is the file that can be used to reproduce the crash (VERY random video that was posted by another user that is experiencing this crash):
https://drive.google.com/file/d/1MQ3KGVNePta69s9xZu8mAm1qwliqkURq/view?usp=sharing
@sannies you mentioned that you stoped working on this issue when you couldn't reproduce the issue #139, by using my project and file you will definitely be able to reproduce the issue.
Here is the entire log, from selecting the file until the crash happens: