mirror of
https://github.com/NTifyApp/NTify.git
synced 2026-04-26 07:55:51 +03:00
[GH-ISSUE #63] multiple NullPointerException errors after playing for 1 hours #52
Labels
No labels
In Progress
bug
enhancement
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/NTify#52
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 @lesar8 on GitHub (Dec 1, 2024).
Original GitHub issue: https://github.com/NTifyApp/NTify/issues/63
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.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 on GitHub (Dec 1, 2024):
I'm aware of this issue and I will create a fix for this now that I have the very descriptive stacktrace from you
@lesar8 commented on GitHub (Dec 6, 2024):
Hi, i just tested and unfortunately the latest build doesn't fix this issue.
@werwolf2303 commented on GitHub (Dec 6, 2024):
I think I forgot to handle this error in some places. This error happens when Java can't reach a website. The code then returns null, and because null is nothing it throws a null pointer
@werwolf2303 commented on GitHub (Dec 7, 2024):
Is the stack trace the same? SpotifyXP should retry it a few times and if it fails throw an IOException now instead of returning a null pointer
@lesar8 commented on GitHub (Dec 8, 2024):
The stack trace is same as before with a lot of null pointer errors, the error [java.lang.StackOverflowError] sometimes appears. The server is disconnected and could not reconnect, just blank page when i click on result.
@lesar8 commented on GitHub (Dec 20, 2024):
No luck for me, still facing this problem after updated to the latest build..
@werwolf2303 commented on GitHub (Dec 29, 2024):
I think I fixed the bug in the new nightly
@lesar8 commented on GitHub (Dec 29, 2024):
Yes fixed for me too! It show this error java.lang.StackOverflowError every hours but apart from that, music playing smoothly without interruption. Big thanks!
@werwolf2303 commented on GitHub (Dec 30, 2024):
It would be nice if you could send the stack trace of the StackOverflowError
@lesar8 commented on GitHub (Dec 30, 2024):
Apparently "java.lang.StackOverflowError" is the only error that comes up. I tested for 3 hours and there are 3 errors present in the dialog box (1 per hours).
@werwolf2303 commented on GitHub (Dec 30, 2024):
Click on one so that I can see the stack trace
@lesar8 commented on GitHub (Dec 30, 2024):
Okay here it is, i cut down those repetitive "SpotifyHttpManager" lines because the log got too big!!
@werwolf2303 commented on GitHub (Jan 14, 2025):
Is it resolved now?
@lesar8 commented on GitHub (Jan 15, 2025):
Hi, just tested and i can confirm this issue was fixed now. Thank you!