mirror of
https://github.com/NTifyApp/NTify.git
synced 2026-04-26 07:55:51 +03:00
[GH-ISSUE #43] Can't login in Spotify account #38
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#38
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 @oleg-dubinskiy on GitHub (Jul 5, 2024).
Original GitHub issue: https://github.com/NTifyApp/NTify/issues/43
The app does no longer crash since recent commits, but now it's not possible to login with any Spotify account (neither Free, nor Premium). The splash simply hangs at "Checking login" screen and nothing happens after that. In stable 2.0.2 branch, the login form immediately appears as it should, but in latest master it does not. I tried as to install it first, same without doing that (with a



--setup-completeoption), but unfortunately it does not fix the problem.Tested on the following platforms:
Linux (Ubuntu 21.10) amd64 + OpenJDK 18-ea amd64,
ReactOS 0.4.15-dev-8058-ga7cbb60 i386 + OpenJDK 8u42 i386.
Windows XP Professional SP3 i386 + Java 8u51 i386.
So this is definitely a bug in SpotifyXP itself.
No any visible debug output in the terminal however.
If any additional debugging (enabling a special debug option) is required, please specify it to me, I'll capture a log and will attach it here. Thanks. 🙂
@Jri-creator commented on GitHub (Jul 6, 2024):
Confirmed issue with latest commits.
Same issue reported, found under 98th and 99th commit.
@Jri-creator commented on GitHub (Jul 6, 2024):
@oleg-dubinskiy Attach --setup-complete and --debug to the command, then copy/paste the output in a text file.
My output, from Ubuntu 24.04:
debug.txt
@oleg-dubinskiy commented on GitHub (Jul 6, 2024):
Done. Here are 3 logs from all the OSes tested above:
debug_Ubuntu_21.10.txt
debug_ReactOS_0.4.15_dev.txt
debug_Windows_XP_Pro_SP3.txt
All 3 logs look almost same, however there are some small differences. But the source of problem seems identical in all 3 testcases.
@Jri-creator commented on GitHub (Jul 7, 2024):
@werwolf2303 Looks like it's hanging on some internal process.
[THROWABLE java.awt.IllegalComponentStateException] contentPane cannot be set to null. [THROWABLE java.awt.IllegalComponentStateException] java.desktop/javax.swing.JRootPane.setContentPane(JRootPane.java:591) [THROWABLE java.awt.IllegalComponentStateException] java.desktop/javax.swing.JDialog.setContentPane(JDialog.java:1036) [THROWABLE java.awt.IllegalComponentStateException] com.spotifyxp.dialogs.LoginDialog.<init>(LoginDialog.java:30) [THROWABLE java.awt.IllegalComponentStateException] com.spotifyxp.Initiator.checkLogin(Initiator.java:276) [THROWABLE java.awt.IllegalComponentStateException] com.spotifyxp.Initiator.main(Initiator.java:89) java.awt.IllegalComponentStateException: contentPane cannot be set to null. at java.desktop/javax.swing.JRootPane.setContentPane(JRootPane.java:591) at java.desktop/javax.swing.JDialog.setContentPane(JDialog.java:1036) at com.spotifyxp.dialogs.LoginDialog.<init>(LoginDialog.java:30) at com.spotifyxp.Initiator.checkLogin(Initiator.java:276) at com.spotifyxp.Initiator.main(Initiator.java:89)[THROWABLE java.awt.IllegalComponentStateException] com.spotifyxp.dialogs.LoginDialog.(LoginDialog.java:30)
[THROWABLE java.awt.IllegalComponentStateException] com.spotifyxp.Initiator.checkLogin(Initiator.java:276)
[THROWABLE java.awt.IllegalComponentStateException] com.spotifyxp.Initiator.main(Initiator.java:89)
java.awt.IllegalComponentStateException: contentPane cannot be set to null.
at java.desktop/javax.swing.JRootPane.setContentPane(JRootPane.java:591)
at java.desktop/javax.swing.JDialog.setContentPane(JDialog.java:1036)
at com.spotifyxp.dialogs.LoginDialog.(LoginDialog.java:30)
at com.spotifyxp.Initiator.checkLogin(Initiator.java:276)
at com.spotifyxp.Initiator.main(Initiator.java:89)
And what's in bold is what triggering the bug in the beta build(s).
[Error text grabbed from Ubuntu debug logs]
@Jri-creator commented on GitHub (Jul 7, 2024):
@werwolf2303 That, unfortunately, didn't work. The issue is still occuring, and the debug log looks the same.
java -jar SpotifyXP.jar --setup-complete --debug [INFO ] Found setup argument => true [WARNING ] Key 'settings.ui.theme' has an invalid value: 'DARKGREEN'! Resetting to default value... [WARNING ] Unknown Theme: 'DARKGREEN'! Trying to load theme differently [INFO ] Loaded Theme => DarkGreen from => Werwolf2303 [THROWABLE java.lang.NullPointerException] Cannot invoke "com.spotifyxp.swingextension.CustomLengthTextField.setColumns(int)" because "this.spotifyusernamefield" is null [THROWABLE java.lang.NullPointerException] com.spotifyxp.dialogs.LoginDialog.<init>(LoginDialog.java:31) [THROWABLE java.lang.NullPointerException] com.spotifyxp.Initiator.checkLogin(Initiator.java:276) [THROWABLE java.lang.NullPointerException] com.spotifyxp.Initiator.main(Initiator.java:89) java.lang.NullPointerException: Cannot invoke "com.spotifyxp.swingextension.CustomLengthTextField.setColumns(int)" because "this.spotifyusernamefield" is null at com.spotifyxp.dialogs.LoginDialog.<init>(LoginDialog.java:31) at com.spotifyxp.Initiator.checkLogin(Initiator.java:276) at com.spotifyxp.Initiator.main(Initiator.java:89)@werwolf2303 commented on GitHub (Jul 7, 2024):
Ok I will look into that
@werwolf2303 commented on GitHub (Jul 7, 2024):
Ok I will look into that
@Jri-creator commented on GitHub (Jul 7, 2024):
@werwolf2303 Looks like error starts here:
[THROWABLE java.lang.NullPointerException] Cannot invoke "com.spotifyxp.swingextension.CustomLengthTextField.setColumns(int)" because "this.spotifyusernamefield" is null [THROWABLE java.lang.NullPointerException] com.spotifyxp.dialogs.LoginDialog.<init>(LoginDialog.java:31) [THROWABLE java.lang.NullPointerException] com.spotifyxp.Initiator.checkLogin(Initiator.java:276) [THROWABLE java.lang.NullPointerException] com.spotifyxp.Initiator.main(Initiator.java:89) java.lang.NullPointerException: Cannot invoke "com.spotifyxp.swingextension.CustomLengthTextField.setColumns(int)" because "this.spotifyusernamefield" is null at com.spotifyxp.dialogs.LoginDialog.<init>(LoginDialog.java:31) at com.spotifyxp.Initiator.checkLogin(Initiator.java:276) at com.spotifyxp.Initiator.main(Initiator.java:89)Something about
this.spotifyusernamefieldbeingnullis what's causing the java throw [java error]@Jri-creator commented on GitHub (Jul 7, 2024):
And according to my research and ChatGPT, The error points to line 31 in the LoginDialog constructor, and that spotifyusernamefield must be initialized before line 31.
ChatGPT's words:
"The java.lang.NullPointerException you're encountering indicates that the spotifyusernamefield object is null when you attempt to call the setColumns(int) method on it. This means the object has not been properly initialized before its method is invoked. Let's go through steps to identify and fix this issue.
Steps to Fix the NullPointerException
Ensure that spotifyusernamefield is properly initialized before you call any methods on it.
The error points to line 31 in the LoginDialog constructor. Verify that spotifyusernamefield is initialized before line 31.
Confirm that spotifyusernamefield is assigned a new instance of CustomLengthTextField or retrieved from somewhere before calling setColumns." [Note: AI is not always correct. Check for mistakes]
I'll spare you the rest, as this info should help.
@werwolf2303 commented on GitHub (Jul 7, 2024):
It works for me.... Weird
@werwolf2303 commented on GitHub (Jul 7, 2024):
https://www.file-upload.net/download-15356766/SpotifyXP.jar.html
@werwolf2303 commented on GitHub (Jul 7, 2024):
Please try this one
@Jri-creator commented on GitHub (Jul 7, 2024):
Ok, that is weird. Maybe Github isn't building it correctly?
Anyways, with further progress, a different error is shown:

@Jri-creator commented on GitHub (Jul 7, 2024):
Debug:
debug.txt
@werwolf2303 commented on GitHub (Jul 7, 2024):
I can't fix the reconnecting thing. That depends on your network
@Jri-creator commented on GitHub (Jul 7, 2024):
I've rebooted both my computer and network, and this issue still persists. The public release [Ver 2.0.2] works as intended, so I am not sure if this is a network issue.
@oleg-dubinskiy commented on GitHub (Jul 7, 2024):
Just tried, thanks! It works for me now too (at least in ReactOS 0.4.15-dev)! 😃

@oleg-dubinskiy commented on GitHub (Jul 7, 2024):
This error occurs for me too, but only after login, at "Creating API..." step:

@oleg-dubinskiy commented on GitHub (Jul 7, 2024):
Here's a new debug log I got from Command Prompt:
debug_ReactOS_0.4.15_dev_NEW.txt
@Jri-creator commented on GitHub (Jul 8, 2024):
@werwolf2303 Is it misconfigured Spotify API requests? The PUBLIC beta (2.0.2) creates files essential for connections to the Spotify API. IDK, it's your code.
@werwolf2303 commented on GitHub (Jul 8, 2024):
I also don't know I have to compare the code
@Jri-creator commented on GitHub (Jul 8, 2024):
@werwolf2303 @oleg-dubinskiy Just to experiment, I tried to swap the SpotifyXP file from the Public Beta to the 100th commit beta in the SpotifyXP folder, and it didn't work.