Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Crashing #199

Closed
seniorm0ment opened this issue Mar 12, 2022 · 12 comments
Closed

App Crashing #199

seniorm0ment opened this issue Mar 12, 2022 · 12 comments

Comments

@seniorm0ment
Copy link

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

@jmshrv
Copy link
Owner

jmshrv commented Mar 13, 2022

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

@Maxplosion
Copy link

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)

@seniorm0ment
Copy link
Author

seniorm0ment commented Mar 13, 2022

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

@jmshrv
Copy link
Owner

jmshrv commented Mar 13, 2022

Which ROM do you use?

@seniorm0ment
Copy link
Author

seniorm0ment commented Mar 13, 2022

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

@jmshrv
Copy link
Owner

jmshrv commented Mar 13, 2022

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.

@seniorm0ment
Copy link
Author

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

@seniorm0ment
Copy link
Author

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.

@jmshrv
Copy link
Owner

jmshrv commented Mar 16, 2022

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.

@Chaphasilor
Copy link
Collaborator

@seniorm0ment is this still an issue for you?

@seniorm0ment
Copy link
Author

I have not noticed any crashing personally

@Chaphasilor
Copy link
Collaborator

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants