Open vimproved opened 2 months ago
Hey, yeah so this is probably because Finamp always pre-caches a certain duration as opposed to size, which might be just a tiny amount for LQ audio but leads to issues in cases like yours.
I think we can configure both a maximum duration and maximum buffer size for Android. On iOS we can set a target duration, but I'm not sure if the OS handles the maximum memory by itself, since we cannot set a limit there.
I'll see what I can do!
Hi! I'm fully aware this is a rather niche case, but it seems like when presented with a very large audio file (my example here and how I ran into this is the 192khz recording of Close to the Edge by Yes, the first track of which clocks in at a very beefy 770MiB). This seems to only happen on Android (could not reproduce it on Linux at least, not sure about iOS), and it only happens when Finamp is about 2/3 of the way through loading the file, so I'm guessing that the limit is about 500MiB. Here is the log produced by
adb logcat -b crash
whenever it OoMs: