Skip to content

Librespot suddenly started throwing "session-packet-receiver" java.nio.BufferUnderflowException #142

@re999

Description

@re999

Playback stopped. I tried restarting both client and librespot-java but it started throwing the following exception in logs:

2019-10-05 18:23:05 INFO  Session:98 - Created new session! {deviceId: 394d4675-1eff-4a2a-8b8f-36a0150e60d5, ap: gae2-accesspoint-a-z9qf.ap.spotify.com/104.199.241.149} 
2019-10-05 18:23:07 INFO  Session:242 - Connected successfully!
2019-10-05 18:23:08 DEBUG TimeProvider:20 - Corrected time offset, delta: -1s
2019-10-05 18:23:08 TRACE Session:741 - Handled Ping {payload: 5D98C36B}
2019-10-05 18:23:08 INFO  Session:778 - Skipping SecretBlock
Exception in thread "session-packet-receiver" java.nio.BufferUnderflowException
	at java.nio.Buffer.nextGetIndex(Buffer.java:500)
	at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:135)
	at xyz.gianlu.librespot.core.Session$Receiver.run(Session.java:756)
	at java.lang.Thread.run(Thread.java:745)
2019-10-05 18:23:08 TRACE SpotifyIrc:105 - Send frame, type: kMessageTypeHello
2019-10-05 18:23:08 TRACE MercuryClient:131 - Send Mercury request, seq: 1, uri: hm://remote/3/user/1167013247/, method: POST

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions