mojira.dev
MCL-602

Login error when switched to another profile

Affected version is 1.0.2.

When I switch to another account (both from non-premium to premium, and from premium to non-premium),
I cannot login to switched account so I forced play in offline mode
even if I have internet connection.

Switching back to original account, I log in successfully.

Error messages:

> Launcher 1.0.2 (through bootstrap 4) started on windows...
> System.getProperty('os.name') == 'Windows 7'
> System.getProperty('os.version') == '6.1'
> System.getProperty('os.arch') == 'amd64'
> System.getProperty('java.version') == '1.7.0_25'
> System.getProperty('java.vendor') == 'Oracle Corporation'
> Loaded 2 profile(s); selected 'デモ'
> Trying to log in...
> Logging in with access token
> Logged in successfully
> Delta time to compare resources: 335 ms 
> Download job 'Resources' skipped as there are no files to download
> Job 'Resources' finished successfully
> Trying to log in...
> Logging in with access token
> Couldn't go online
> net.minecraft.launcher.authentication.exceptions.InvalidCredentialsException: Invalid token
> 	at net.minecraft.launcher.authentication.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:123)
> 	at net.minecraft.launcher.authentication.yggdrasil.YggdrasilAuthenticationService.logInWithToken(YggdrasilAuthenticationService.java:97)
> 	at net.minecraft.launcher.authentication.yggdrasil.YggdrasilAuthenticationService.logIn(YggdrasilAuthenticationService.java:50)
> 	at net.minecraft.launcher.ui.sidebar.login.NotLoggedInForm$1.run(NotLoggedInForm.java:158)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> 	at java.util.concurrent.FutureTask.run(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> 
> Going to play offline as 'aMotohiko'...

Launcher says 'play offline', but I can play minecraft in online mode (skin applied).

Related issue: MCL-587 (private issue I opened)

Linked issues

MCL-132 Bad login Resolved MCL-612 when useing profile selection it forces you into offline mode Resolved MCL-624 cant login via online mode Resolved MCL-617 can't login due to bug! Resolved MCL-634 Login Credentials don't load after profile switch Resolved

Attachments

Comments 32

Switch profile, press 'LogOut' and then re-enter password, I can login successfully.

I tested in new environment (delete launcher_profiles.json and create new),
login error is occurred to another profile with same account.

In launcher_profiles.json, 'username' and 'uuid' are same values respectively, but both 'accessToken's are different.

Also confirmed that logging out and logging in again fixes this issue.

Starting launcher

Launcher 1.0.3 (through bootstrap 4) started on windows...
System.getProperty('os.name') == 'Windows 7'
System.getProperty('os.version') == '6.1'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.7.0_25'
System.getProperty('java.vendor') == 'Oracle Corporation'
Going to log in with legacy stored username & password...
Loaded 3 profile(s); selected '13w23b'
Trying to log in...
Logging in with access token
Logged in successfully
Delta time to compare resources: 1356 ms 
Download job 'Resources' skipped as there are no files to download
Job 'Resources' finished successfully
Going to log in with legacy stored username & password...
Trying to log in...
Logging in with access token
Couldn't go online
net.minecraft.launcher.authentication.exceptions.InvalidCredentialsException: Invalid token.
	at net.minecraft.launcher.authentication.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:123)
	at net.minecraft.launcher.authentication.yggdrasil.YggdrasilAuthenticationService.logInWithToken(YggdrasilAuthenticationService.java:97)
	at net.minecraft.launcher.authentication.yggdrasil.YggdrasilAuthenticationService.logIn(YggdrasilAuthenticationService.java:50)
	at net.minecraft.launcher.ui.sidebar.login.NotLoggedInForm$1.run(NotLoggedInForm.java:158)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
22 more comments

@Mister Adams/Dinnerbone: I don't know if it's related, but MCL-945 ("Copying profile of Account 1 will overwrite Account 1's name to Account's 2 name after logging in with Account 2 (Donor Account gets changed to Recipient Account)") :
When I make a copy of an existing Profile of another account, said copied account gets overwritten by the 2nd account's name/info.

As I'm not a coder, I don't know if it can be related at all, but I wanted to add this here, in case there is some sort of relation.

I also made a Video where you can see that happening (it's linked in MCL-945)

Regards,
Meri

This bug/issue still affects the new launcher, 1.0.9. Just to let you guys know.

Is this the bug where it says only Play Offline until you log out and then back in? The aforementioned bug was marked as a dupe of this, but this seems to be broader.

ANBO Motohiko

Nathan Adams

Confirmed

Retrieved