SpotifyXP / SpotifyXP

Spotify player for Windows XP
http://werwolf2303.de
Apache License 2.0
53 stars 3 forks source link

multiple NullPointerException errors after playing for 1 hours #63

Open lesar8 opened 2 days ago

lesar8 commented 2 days ago

Hi. After playing for 1 hours, i'm getting multiple [java.lang.NullPointerException] errors and the number keep increasing every seconds. Music still plays and the UI still respond, but the "Search" feature won't work and the "Errors" dialog won't open.

This always happens after 1 hours of listening session, maybe due to Spotify servers blocking the requests ?

Java

[java.lang.NullPointerException] com.spotifyxp.api.SpotifyAPI$1.run(SpotifyAPI.java:30) com.spotifyxp.events.Events$PrivateEvent.trigger(Events.java:26) com.spotifyxp.events.Events.triggerEvent(Events.java:124) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.getResponseBody(SpotifyHttpManager.java:308) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:126) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:141) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.getResponseBody(SpotifyHttpManager.java:315) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:126) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:141) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.getResponseBody(SpotifyHttpManager.java:315) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:126) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:141) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.getResponseBody(SpotifyHttpManager.java:315) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:126) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:141) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.getResponseBody(SpotifyHttpManager.java:315) com.spotifyxp.deps.se.michaelthelin.spotify.SpotifyHttpManager.get(SpotifyHttpManager.java:126) com.spotifyxp.deps.se.michaelthelin.spotify.requests.AbstractRequest.getJson(AbstractRequest.java:107) com.spotifyxp.deps.se.michaelthelin.spotify.requests.data.library.CheckUsersSavedTracksRequest.execute(CheckUsersSavedTracksRequest.java:33) com.spotifyxp.utils.TrackUtils.isTrackLiked(TrackUtils.java:193) com.spotifyxp.listeners.PlayerListener.onTrackChanged(PlayerListener.java:69) com.spotifyxp.deps.xyz.gianlu.librespot.player.Player$EventsDispatcher.lambda$trackChanged$8(Player.java:1125) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) java.lang.Thread.run(Thread.java:748)

werwolf2303 commented 1 day ago

I'm aware of this issue and I will create a fix for this now that I have the very descriptive stacktrace from you