Skip to content

Removing NFC tag after playback completion triggers invalid pause retries and prevents replay #295

Description

@Gudsfile

Description

When a "CD" (NFC tag) reaches the end of playback and the NFC tag is then removed, Jukebox attempts to pause the player even though nothing is currently playing.

This generates repeated warnings in the logs and appears to leave the system in an inconsistent state.

Logs

2026-06-21 15:13:34,947 - jukebox - WARNING - Playback pause failed; retrying in 2.000s
2026-06-21 15:13:37,021 - jukebox - INFO    - Pausing player `PlayerName`
2026-06-21 15:13:37,071 - jukebox - WARNING - pause failed, probably a not available transition: UPnP Error 701 received: Transition not available from 192.168.1.x

Steps to reproduce

  1. Place an NFC tag associated with a CD that exists in the library.
  2. Let playback reach the end naturally.
  3. Remove the NFC tag after playback has finished.

Observed behavior

  • Jukebox attempts to pause the player even though no track is currently playing.
  • Retry attempts are triggered and generate repeated log messages.
  • The system appears to enter an inconsistent state.
  • Placing the same NFC tag again does not restart playback.
  • The only way I have found to recover is to place another NFC tag that is known by the library.

Expected behavior

If playback has already finished, removing the NFC tag should either be treated as a no-op or Jukebox should verify the player state before sending a pause command.

The system should return to a normal state and allow the same NFC tag to be placed again to restart playback.

Additional information

I have not yet tested the following scenario:

  1. Wait until all pause retries have completed.
  2. Place an NFC tag that is not known by the library.

So I do not yet know whether the inconsistent state persists in that case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions