sannies / mp4parser

A Java API to read, write and create MP4 files
Apache License 2.0
2.75k stars 566 forks source link

java.lang.NoSuchMethodError and potential OutOfMemory solution #361

Open davidnir1 opened 5 years ago

davidnir1 commented 5 years ago

Hey all, i went through a lot of open issues with no success. I got the popular OutOfMemory exception in my app (when i used 1.9.27), which seems to go away using 1.9.37 by adding these lines to my build.gradle file:

implementation 'org.mp4parser:isoparser:1.9.37' implementation 'org.mp4parser:muxer:1.9.37' implementation 'org.mp4parser:streaming:1.9.37'

Now i am getting this error:

java.lang.NoSuchMethodError: No virtual method rewind()Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)

I read in some threads that this is somehow related to JDK version differences, and couldn't find a proper solution throughout the issues section here or the internet in general. Did anybody manage to figure this out?

Thanks

HBiSoft commented 4 years ago

This is fixed in 1.9.41, please close the issue when you have confirmed this.