Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Phonograph always crashes after playing last song in queue #142

Open
8549 opened this issue Apr 26, 2017 · 9 comments
Open

Phonograph always crashes after playing last song in queue #142

8549 opened this issue Apr 26, 2017 · 9 comments
Labels

Comments

@8549
Copy link

8549 commented Apr 26, 2017

Whatever the app is playing, if the song is the last in the queue (be it an album or a playlist) Phonograph will crash after playing it. When the song ends, the app is stuck and doesn't respond to touch controls, and it starts playing again the same last song. When it is finished playing it for the second time, the app closes itself and i get the Android message box saying Phonograph crashed. While the app is stuck playing the song for the second time, the notification is also stuck. I can get out of the app with the home button, the music still plays, and if i remove the app from the recents and reopen it, it waits a few seconds and then Android asks me if i want to kill it because it's not responding.

It has been happening ever since the app changed its name from Gramophone, and the bug occurs every single time. As a workaround i found that setting the loop mode to repeat the album prevents this.

I'm attaching a logcat.
phonograph.txt

The device is an Alcatel OneTouch Idol 3 (6045Y) and it happened both with 5.1.1 and 6.0.1

@kabouzeid
Copy link
Owner

Can't reproduce it. Thanks for the logcat, maybe someone else will find the error.

@kaplanbora
Copy link

I have got the same problem. When the last song is finished it replays that song again and the app becomes unresponsive. You cannot stop playing or close the app and just wait for android to realize this and ask for termination. This is happening on Sony Xperia Z3 with Android 6.0.1 and Phonograph 0.15.0. Anything else I can provide?

@arkon
Copy link
Collaborator

arkon commented Jun 21, 2017

@kaplanbora A logcat would be great.

@arkon
Copy link
Collaborator

arkon commented Jul 7, 2017

@plumbe0 @kaplanbora Are you using gapless playback?

@8549
Copy link
Author

8549 commented Jul 8, 2017

I was. I turned it off and now works as intended. Still, i'd rather have gapless playback without problems... Are the causes of the mentioned issues known?

@arkon
Copy link
Collaborator

arkon commented Jul 8, 2017

@plumbe0 Not yet, it was just what I gleamed from reading the logs.

@kaplanbora
Copy link

@arkon Yes I am using gapless. You think thats the problem? I don't use my phone for music recently so I tried to reproduce this but no luck.

@arkon
Copy link
Collaborator

arkon commented Jul 8, 2017

@kaplanbora It was the only notable thing in @plumbe0 's logcat from what I could tell. I'm not sure what exactly is causing the issue yet though.

@arkon
Copy link
Collaborator

arkon commented Jul 13, 2017

Note to self: it'll probably be better to use something like ExoPlayer's DynamicConcatenatingMediaSource (google/ExoPlayer#1706) to handle gapless playback rather than the 2 MediaPlayers.

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

No branches or pull requests

4 participants