Skip to content

Playing the winning second song always leads to TimeoutException #1

@jbripley

Description

@jbripley

When Music Machine tries to play the second song in the playlist, after having playing through the first song and recieving a song vote during that time, always leads to a TimeoutException in Jotify.

Steps to reproduce

  1. Start up Music Machine
  2. Vote on song, song starts playing immediately
  3. Vote on second song
  4. Wait for first song to finish
  5. Music Machine tries to start playback on second song in playlist
  6. The following exception occurs

Exception in thread "Thread-4" java.lang.NullPointerException
at de.felixbruns.jotify.api.player.SpotifyInputStream.channelData(Unknown Source)
at de.felixbruns.jotify.api.protocol.channel.Channel.process(Unknown Source)
at de.felixbruns.jotify.api.JotifyConnection.commandReceived(Unknown Source)
at de.felixbruns.jotify.api.protocol.Protocol.receivePacket(Unknown Source)
at de.felixbruns.jotify.api.JotifyConnection.run(Unknown Source)
at java.lang.Thread.run(Thread.java:637)
java.util.concurrent.TimeoutException: Timeout while waiting for data.
at de.felixbruns.jotify.api.protocol.channel.ChannelCallback.get(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyInputStream.requestKey(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyInputStream.(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyOggPlayer.play(Unknown Source)
at de.felixbruns.jotify.api.JotifyConnection.play(Unknown Source)
at com.markupartist.nollbit.musicmachine.server.MusicMachinePlaybackAdapter.playTrack(Unknown Source)
at com.markupartist.nollbit.musicmachine.server.MusicMachinePlaybackAdapter.playbackFinished(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyOggPlayer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:637)

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