Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Autoplay of next song doesn't produce sound #538

Open
@chaseleslie

Description

@chaseleslie

Shuttle version:

v2.0.17

Device, OS:

Pixel6, Android 12

Description of bug:

When the next song in a playlist is automatically switched to, the next song will not play. Manual intervention (e.g., hitting the previous button or selecting a track) will restore the sound.

Steps to reproduce:

  1. Play a song in a playlist
  2. Wait until the next song in a playlist is automatically advanced to when the song finishes

Expected outcome:

The next song should play.

Observations/Actual Result:

The next song does not play. It will play if the track is manually selected or if the previous button is selected. A seemingly relevant portion of the output of ADB logcat:

01-20 18:05:58.606  7063  7063 E AndroidRuntime: FATAL EXCEPTION: main
01-20 18:05:58.606  7063  7063 E AndroidRuntime: Process: another.music.player, PID: 7063
01-20 18:05:58.606  7063  7063 E AndroidRuntime: android.app.ForegroundServiceDidNotStartInTimeException: Context.startForegroun
dService() did not then call Service.startForeground(): ServiceRecord{44fa7ba u0 another.music.player/com.simplecity.amp_library
.playback.MusicService}
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at android.app.ActivityThread.throwRemoteServiceException(ActivityThread
.java:1923)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at android.app.ActivityThread.access$2700(ActivityThread.java:247)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2148)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:201)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:288)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:7839)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeIn
it.java:548)
01-20 18:05:58.606  7063  7063 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions