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

Very large playlists cause music to stop playing when phone gets locked #929

Open
Koenvh1 opened this issue Jan 22, 2019 · 9 comments
Open

Comments

@Koenvh1
Copy link
Contributor

Koenvh1 commented Jan 22, 2019

I have a playlist with 1148 songs. If I play a song from that playlist, everything works fine, until I lock my phone (or it locks itself), when the music just stops. This works fine with smaller playlists.

I expect it being due to the larger playlist using more memory, and that Android wants to clear out that memory when it locks, but I not 100% sure about that.

@matthieudecamy
Copy link

Hi,
I've been having the same issue here, but with an even larger playlist (about 5000 songs). This is making DSub very difficult to use for me as my default listening mode is to throw my starred playlist on random, which I can't do anymore.

(Note: I'd be willing to look into fixing/mitigating the issue, but I'd need some pointers on where exactly the playlists are loaded in memory.)

@Koenvh1
Copy link
Contributor Author

Koenvh1 commented Oct 29, 2020

I believe that's done here:

The SelectDirectoryFragment is used for multiple purposes, not just for playlists.

@dverbeeck
Copy link

I am encountering this same issue. Perhaps related to library size, not playlist size? As soon as my screen goes dark, Subsonic will stop playing. It also takes an abnormally long time to start downloading any sync'd tracks after launch.

@Koenvh1
Copy link
Contributor Author

Koenvh1 commented Apr 20, 2021

I believe it is caused by this (and the line below it):

outState.putSerializable(Constants.FRAGMENT_LIST, (Serializable) entries);

This gets called when the activity is about to stop (which might happens when the phone gets locked), but due to the size of the entries, it throws a TransactionTooLarge exception, which stops playback.

@dverbeeck
Copy link

dverbeeck commented Apr 20, 2021 via email

@dverbeeck
Copy link

dverbeeck commented Apr 20, 2021 via email

@Koenvh1
Copy link
Contributor Author

Koenvh1 commented Apr 20, 2021

@dverbeeck You can try to open a different view (e.g. the Library view), which may work around it. Your mileage may vary.

@dverbeeck
Copy link

dverbeeck commented Apr 20, 2021 via email

@FibreTTP
Copy link

Bumping to find out if this is an issue that can be fixed.

(as it seems to be quite prevalent: #882, #1067, #1129)

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