mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #159] invalid memory address or nil pointer dereference in api_server.go #102
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pilollipietro on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/159
With git master code updated at Commit
30c81e8DEBU[0011] loading track (paused: false, position: 30945ms) uri="spotify:track:4hhNhWxf64zgd6MgONhFfV"
DEBU[0011] put connect state because PLAYER_STATE_CHANGED
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x2c pc=0x5e7e20]
goroutine 1 [running]:
main.(*ApiServer).Emit(0x28d6300, 0x2aaed00)
/src/cmd/daemon/api_server.go:610 +0xd4
main.(*AppPlayer).loadCurrentTrack(0x28a28c0, {0x7d19f4, 0xbeffc8}, 0x0, 0x1)
/src/cmd/daemon/controls.go:221 +0x49c
main.(*AppPlayer).handlePlayerCommand(0x28a28c0, {0x7d19f4, 0xbeffc8}, {0x5b27dadf, {0x2ab0630, 0x28}, {{0x2ac1170, 0x8}, {0x0, 0x0}, ...}})
/src/cmd/daemon/player.go:237 +0x1c8c
main.(*AppPlayer).handleDealerRequest(0x28a28c0, {0x7d19f4, 0xbeffc8}, {0x2889e40, {0x2a97a40, 0x24}, {0x5b27dadf, {0x2ab0630, 0x28}, {{0x2ac1170, ...}, ...}}})
/src/cmd/daemon/player.go:354 +0x11c
main.(*AppPlayer).Run(0x28a28c0, {0x7d19f4, 0xbeffc8}, 0x28881c0)
/src/cmd/daemon/player.go:582 +0x55c
main.(*App).withAppPlayer(0x28ac400, {0x7d19f4, 0xbeffc8}, 0x28a6a30)
/src/cmd/daemon/main.go:227 +0x590
main.(*App).withCredentials(...)
/src/cmd/daemon/main.go:190
main.(*App).Interactive(0x28ac400, {0x7d19f4, 0xbeffc8}, 0x0)
/src/cmd/daemon/main.go:186 +0x98
main.main()
/src/cmd/daemon/main.go:614 +0x714
@devgianlu commented on GitHub (Jan 12, 2025):
I am a little bit confused, I don't see how this could happen. Did you modify the code in any way?
@wasamasa commented on GitHub (Jan 13, 2025):
I have managed to get a similar crash on HEAD after editing my config to look as follows:
Then, shortly after launching:
@devgianlu commented on GitHub (Jan 13, 2025):
@wasamasa Thank you for posting! I had missed that. Now fixed.
@pilollipietro commented on GitHub (Jan 13, 2025):
Thank you