finamp icon indicating copy to clipboard operation
finamp copied to clipboard

App Crashing

Open seniorm0ment opened this issue 3 years ago • 11 comments

I notice fairly often I can throw something on then after a song or two the app just closes. It disappears from notifications menu and stops playing music.

Android 10, F-Droid Latest Version

seniorm0ment avatar Mar 12 '22 02:03 seniorm0ment

Is music playing when this happens? I've never seen anything like this before.

jmshrv avatar Mar 13 '22 01:03 jmshrv

sounds like very aggressive battery optimization that closes the app when it runs in the background maybe? many phones have/had that and on some even adding apps to the whitelist does not work all the time. (looking at you Honor)

Maxplosion avatar Mar 13 '22 11:03 Maxplosion

Yes music is always playing when it happens, and I have disabled any battery optimization for the app already. I know my device is generally within 1-2gb free on ram, maybe it is a memory leak? I will be getting a new phone soon but if this an issue it'd be cool to resolve it for others

seniorm0ment avatar Mar 13 '22 13:03 seniorm0ment

Which ROM do you use?

jmshrv avatar Mar 13 '22 13:03 jmshrv

LG's stock (custom) Android 10 rom from LGv40

seniorm0ment avatar Mar 13 '22 13:03 seniorm0ment

I can't find anything online saying that LG is particularly bad at killing apps. The app uses about 200-300MB of RAM when playing music, and Dart/Kotlin don't have memory leaks (unless there's a bug in the language itself or something). If you can get access to a logcat, try searching for finamp or flutter, there may be a crash report there if it really is hard crashing.

jmshrv avatar Mar 13 '22 14:03 jmshrv

Yeah I'll check the logcat when I get some time

seniorm0ment avatar Mar 13 '22 15:03 seniorm0ment

I haven't had time to check, but I'm wondering if I'm actually getting thrown for a loop, and it's just due to the song ending and nothing else being in the queue, so the notification disappears. I did notice this happen yesterday. The queue does seem to display wonky behavior, and the shuffle button for albums does not work. I actually don't seem to be able to add stuff to queue then view the list of it either idk.

I'll keep a lookout and see if I notice whether it does it during a song playback, or at the end.

seniorm0ment avatar Mar 15 '22 21:03 seniorm0ment

Yeah, the notification will disappear when the queue ends, although the new release will be more like how it "should" be with the queue returning to the start once its done (personally I prefer the notification disappearing but Android 11 likes players to persist). Album shuffling should work, but it always picks the first song. This is a known issue and is tracked at #61, I'm pretty sure it's an issue with the player package I use.

jmshrv avatar Mar 16 '22 00:03 jmshrv

@seniorm0ment is this still an issue for you?

Chaphasilor avatar Jan 25 '24 20:01 Chaphasilor

I have not noticed any crashing personally

seniorm0ment avatar Jan 26 '24 17:01 seniorm0ment

Alright, nice. Be sure to disable "enter low-priority state on pause" in the settings (Android only) to prevent the OS from closing the app, just to be sure :)

Chaphasilor avatar Jan 28 '24 13:01 Chaphasilor