zyrouge / symphony

🎵 Lightweight, elegant music player for Android 9+.
https://zyrouge.github.io/symphony/
GNU Affero General Public License v3.0
1.23k stars 79 forks source link

[Bug] Crash due to "Concurrent Modification Exception" when playing music and browsing through library #504

Open Currrupted opened 7 months ago

Currrupted commented 7 months ago

Description

Recently, Symphony has been crashing and showing fatal errors, occasionally. Today, when I was inside the app while playing music, the app crashed again and the error screen popped up. It showed the error "java.util.ConcurrentModificationException" (see below).

I had to close and restart the app, after which everything worked fine again.

Steps to Reproduce

Unfortunately, I could not find a way to cause the error again. It seems to be unrelated to anything I was doing. However, this is what I did:

  1. Open the application and start playing any track or playlist
  2. Stay in the application
  3. Browse inside the app and through the library
  4. The app crashes, throwing the error shown below

Expected Behavior

The error and crash, which happened here, shouldn't occur. Using the app to play files and browse through the library should work without anything going wrong.

Screenshots

photo_2024-04-02_15-30-55

Device

Additional Context

I have tried to obtain the logs through adb, however I couldn't get them for the time in question. If it is of any help, I can try again.

Checklist

zyrouge commented 6 months ago

I'm not sure where that error is from due to obfuscation. I'll be attaching log-symbols from the next release, will be looking into this after that.

varun325 commented 6 months ago

It's similar for my device as well, though it occurs when the application is in background, I usually start a lofi playlist and let the phone stay in background. After a while at some point this happens and when I unlock the phone, I see this error. It does seem that the crash occurs while tracks change from one to the next, that's after one song in the queue ends and a new one starts.