PrismLauncher / PrismLauncher

A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once (Fork of MultiMC)
https://prismlauncher.org
GNU General Public License v3.0
5.65k stars 636 forks source link

Microsoft account is always "offline" on startup #1850

Closed tristanjahier closed 10 months ago

tristanjahier commented 11 months ago

Operating System

Windows 10

Version of Prism Launcher

Prism Launcher 8.0

Version of Qt

Qt 6.6.0

Description of bug

Everyday when I open the launcher to play Minecraft, my Microsoft account's status is "Working", but if I try to run an instance, it tells me to "choose my offline player name", meaning that it failed to authenticate. After that, my account's status is "Offline".

The "fix" is to add a new Microsoft account, overriding the existing one, and then it correctly reports as "Online" and I can play Minecraft normally. This is doable but very annoying.

Steps to reproduce

It might not work for everyone, but for me it is as simple as;

Suspected cause

No response

This issue is unique

tristanjahier commented 11 months ago

After a couple of hours of play, if I exit the game, exit Prism then restart Prism, the problem occurs again.

Trial97 commented 11 months ago

Can you upload some logs? or should I presume it is a duplication of one of these issues: #920 #592 #520 #699 #293?

tristanjahier commented 11 months ago

@Trial97 I think not. At least the conditions are not the same. In these mentioned issues it often involves a lost Internet connection, or recovery after sleep mode. In my case, my account is always "offline" on startup.

Additional test I've done:

  1. Open Prism.
  2. Add your Microsoft account. It is now "online" / "ready".
  3. Launch Minecraft. It works in online mode (no prompt about "offline player name").
  4. Exit Minecraft, but keep Prism open.
  5. Launch Minecraft again. It works in online mode.
  6. Exit Minecraft, and exit Prism too.
  7. Open Prism again.
  8. Launch Minecraft. => It prompts "choose your offline player name", meaning that it does not work correctly.

Here is the corresponding log: PrismLauncher-0.log

 0.000 D | Testing "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/qtlogging.ini" ...
 0.000 D | Found "C:/Users/[MyUserName]/AppData/Local/Programs/PrismLauncher/data/../qtlogging.ini" ...
 0.000 D | Loading logging rules from: "C:/Users/[MyUserName]/AppData/Local/Programs/PrismLauncher/data/../qtlogging.ini"
 0.000 D | Setting log rules:
 0.000 D |      "*.debug=true"
 0.000 D |      "launcher.auth.credentials.debug=false"
 0.000 D |      "launcher.task=false"
 0.000 D |      "launcher.task.net=true"
 0.000 D |      "launcher.task.net.download.debug=false"
 0.000 D |      "launcher.task.net.metacache=false"
 0.000 D |      "launcher.task.net.metacache.http=true"
 0.000 D |      "launcher.task.net.upload=true"
 0.000 D |      "qt.*.debug=false"
 0.000 D | <> Log initialized.
 0.001 D | <> No migration needed from "PolyMC"
 0.001 D | <> No migration needed from "MultiMC"
 0.001 D | Prism Launcher , (c) 2022-2023  Prism Launcher Contributors, � 2021-2022 PolyMC Contributors , � 2012-2021 MultiMC Contributors
 0.001 D | Version                    :  "8.0"
 0.001 D | Platform                   :  "official"
 0.001 D | Git commit                 :  ""
 0.001 D | Git refspec                :  "refs/heads/stable"
 0.001 D | Compiled for               :  "Windows 10.0.20348 AMD64"
 0.001 D | Compiled by                :  "MSVC - 19.37.32825.0"
 0.001 D | Build Artifact             :  "Windows-MSVC-Qt6"
 0.001 D | Updates Enabled           :  Yes
 0.001 D | Work dir before adjustment :  "C:/Users/[MyUserName]/AppData/Local/Programs/PrismLauncher"
 0.001 D | Work dir after adjustment  :  "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher"
 0.001 D | Adjusted by                :  "Persistent data path"
 0.001 D | Binary path                :  "C:/Users/[MyUserName]/AppData/Local/Programs/PrismLauncher"
 0.001 D | Application root path      :  "C:/Users/[MyUserName]/AppData/Local/Programs/PrismLauncher"
 0.001 D | <> Paths set.
 0.008 D | Detected default console font: "Courier New" , substitutions: ""
 0.046 D | <> Settings loaded.
 0.046 D | Detecting proxy settings...
 0.046 D | Using no proxy is an option!
 0.046 D | <> Network done.
 0.049 D | Loading Application Language File for fr ...
 0.049 D | Your language is "fr"
 0.049 D | <> Translations loaded.
 0.050 D | Started watching  "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/icons"
 0.050 D | Adding  "icons/modrinth_sop.png"
 0.068 D | Sorting icon list...
 0.068 D | <> Instance icons intialized.
 0.069 D | [Theme] <> Initializing Icon Themes
 0.069 D | [Theme] Loaded Built-In Icon Theme "pe_colored"
 0.069 D | [Theme] Loaded Built-In Icon Theme "pe_light"
 0.069 D | [Theme] Loaded Built-In Icon Theme "pe_dark"
 0.069 D | [Theme] Loaded Built-In Icon Theme "pe_blue"
 0.069 D | [Theme] Loaded Built-In Icon Theme "breeze_light"
 0.069 D | [Theme] Loaded Built-In Icon Theme "breeze_dark"
 0.069 D | [Theme] Loaded Built-In Icon Theme "OSX"
 0.069 D | [Theme] Loaded Built-In Icon Theme "iOS"
 0.069 D | [Theme] Loaded Built-In Icon Theme "flat"
 0.069 D | [Theme] Loaded Built-In Icon Theme "flat_white"
 0.069 D | [Theme] Loaded Built-In Icon Theme "multimc"
 0.069 D | [Theme] Icon Theme Folder Path:  "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/iconthemes"
 0.069 D | [Theme] <> Icon themes initialized.
 0.069 D | [Theme] <> Initializing Widget Themes
 0.070 D | [Theme] Determining System Theme...
 0.070 D | [Theme] System theme seems to be: "windowsvista"
 0.070 D | [Theme] Considering theme from theme factory: "windowsvista"
 0.070 D | [Theme] System theme has been determined to be: "windowsvista"
 0.070 D | [Theme] Loading Built-in Theme: "system"
 0.070 D | [Theme] Loading Built-in Theme: "dark"
 0.070 D | [Theme] Loading Built-in Theme: "bright"
 0.070 D | [Theme] Theme Folder Path:  "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/themes"
 0.070 D | [Theme] <> Widget themes initialized.
 0.070 D | [Theme] CatPacks Folder Path: "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/catpacks"
 0.071 D | Instance path              :  "instances"
 0.071 D | Loading Instances...
 0.071 D | Discovering instances in "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/instances"
 0.072 D | Found instance ID "Vanille arrangée"
 0.072 D | Will load group list now.
 0.072 D | Group list loaded.
 0.073 D | Loaded instance  "Vanille arrangée"  from  "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/instances/Vanille arrangée"
 0.073 D | <> Instances loaded.
 0.073 D | Loading accounts...
 0.073 D | AccountList: Queued default account with internal ID  "fe57ca9a9cbc4879a56f6e6735b852da"  to refresh first
 0.073 D | AuthFlow: "Connexion avec un compte Microsoft."
 0.073 D | DeviceFlow::refresh: Token: ... "ClMGA$$"
 0.888 D | RefreshSchedule: Processing account  "XXXX"  with internal ID  "fe57ca9a9cbc4879a56f6e6735b852da"
 0.888 D | <> Accounts loaded.
 0.890 D | <> Cache initialized.
 0.890 D | Downloading Translations Index...
 0.917 D | [Theme] <> Icon theme set.
 0.917 D | [Theme] applying theme "Système"
 0.917 D | [Theme] <> Application theme set.
 0.948 D | Reloading news.
 0.948 D | Loading components
 0.954 D | Component list save is scheduled for "Vanille arrangée"
 0.959 D | Resolving dependencies
 0.959 D | "Req: net.fabricmc.intermediary" Is met.
 0.959 D | "Req: net.minecraft == 1.20.2" Is met.
 0.959 D | "Req: org.lwjgl3" Is met.
 0.959 D | Component list update/resolve task succeeded for "Vanille arrangée"
 0.977 D | Instance-type specific settings were loaded!
 1.086 D | <> Main window shown.
 1.086 D | Initializing updater
 1.086 D | <> Updater started.
 1.124 D | Dir changed: "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/translations"
 1.126 D | Loading Application Language File for fr ...
 5.970 D | Component list save performed now for "Vanille arrangée"
10.599 D | Paged dialog close requested
10.617 D | Sorting icon list...
10.617 D | Detecting proxy settings...
10.617 D | Using no proxy is an option!
10.617 D | Paged dialog close approved
10.618 D | Paged dialog geometry saved
10.646 D | Discovering instances in "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/instances"
10.647 D | Found instance ID "Vanille arrangée"
10.647 D | Should keep and soft-reload "Vanille arrangée"
30.893 D | RefreshSchedule: Background account refresh failed:  "Impossible d'authentifier l'utilisateur Microsoft, erreur réseau."
31.128 C | [launcher.task.net.download]: "{57cf1a27-8743-43bf-8da7-f03e6b3efe4e}" Aborted  "https://i18n.prismlauncher.org/index_v2.json"
31.128 C | [launcher.task.net.download]: "{c4dda953-0148-4914-95cf-469e5e8281ca}" Aborted  "https://prismlauncher.org/feed/feed.xml"
31.130 D | Dir changed: "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/translations"
31.132 D | Loading Application Language File for fr ...
31.132 D | Dir changed: "C:/Users/[MyUserName]/AppData/Roaming/PrismLauncher/translations"
31.133 D | Loading Application Language File for fr ...
43.359 D | Finished loading RSS feed.
43.363 D | Loaded news entry "Prism Launcher Release 8.0, now available"
43.363 D | Loaded news entry "[MALWARE WARNING] RCE Vulnerability on some modded servers - Bleeding Pipe"
43.363 D | Loaded news entry "Prism Launcher Release 7.2, now available"
43.363 D | Loaded news entry "Prism Launcher Release 7.1, now available"
43.363 D | Loaded news entry "Prism Launcher Release 7.0, now available"
43.363 D | Loaded news entry "FTB Modpack Downloading Removal."
43.363 D | Loaded news entry "[MALWARE WARNING] \"fractureiser\" malware in many popular Minecraft mods and modpacks"
43.363 D | Loaded news entry "[SECURITY UPDATE] Prism Launcher Release 6.3, now available"
43.363 D | Loaded news entry "Prism Launcher Release 6.2, now available"
43.363 D | Loaded news entry "Prism Launcher Release 6.1, now available"
43.363 D | Loaded news entry "Prism Launcher Release 6.0, now available"
43.363 D | Loaded news entry "Prism Launcher Release 5.2, now available"
43.363 D | Loaded news entry "Prism Launcher Release 5.1, now available"
43.363 D | Loaded news entry "Prism Launcher Release 5.0, now available"
43.363 D | Loaded news entry "PolyMC Update 1.4.2, now available"
43.363 D | Loaded news entry "PolyMC Update 1.4.1, now available"
43.363 D | Loaded news entry "PolyMC Update 1.4.0, now available"
43.363 D | Loaded news entry "PolyMC Update 1.3.2, now available"
43.363 D | Loaded news entry "PolyMC Update 1.3.1, now available"
43.363 D | Loaded news entry "PolyMC Update 1.3.0, now available"
43.363 D | Loaded news entry "PolyMC Update 1.2.2, now available (CurseForge Hotfix)"
43.363 D | Loaded news entry "PolyMC Update 1.2.1, now available"
43.363 D | Loaded news entry "PolyMC Update 1.2.0, now available"
43.363 D | Loaded news entry "PolyMC Update 1.1.1, now available"
43.363 D | Loaded news entry "PolyMC Update 1.1.0, now available"
43.363 D | Loaded news entry "Moving on"
43.363 D | Loaded news entry "Modrinth support and Mod downloading"
43.363 D | Loaded news entry "New maintainers and step down."
43.363 D | News loading succeeded.

One interesting line is:

RefreshSchedule: Background account refresh failed: "Impossible d'authentifier l'utilisateur Microsoft, erreur réseau."

In English the error message is: "Impossible to authenticate the Microsoft user, network error.".

Trial97 commented 10 months ago

Hi this is how I interpret this and other issues: Prism has a background refresh account token job. In all issues mentioned, and this included, that job fails due to a network error(what you have here). Because that job is run periodically when you try to play the game before is executed again you get the play offline dialog. So even if the steps differ they are in essence the same issue: Prism doesn't try to log in, if the account is not logged in, on instance launch. I will close this issue as duplicate since this is what it is. I also have a fix for this that should be released in 8.1 (https://github.com/PrismLauncher/PrismLauncher/pull/1771) * Feel free to reopen this if you experience the same behavior in the 8.1 (when released)

tristanjahier commented 5 months ago

Quick follow-up: I have Prism 8.2 now, and I have just started the launcher after many (many!) days without playing Minecraft, and it authenticated (to Microsoft) without a problem. I guess this is sorted out. 👍🏻

THEBOSSES7000 commented 5 months ago

f yo

I have the problem, even in the Prism 8.3. Every time I open the launcher my Microsoft account is disconnected, any possible solution do you have?

Lilith-In-Starlight commented 2 months ago

Having this issue on Prism 8.4

ThePhoenix56 commented 2 months ago

Experiencing this issue aswell on Prism 8.4

LFFPicard commented 2 weeks ago

It's happening to me as well on a newly updated 8.4

LFFPicard commented 1 day ago

I still get this and now it takes ages to go through the process of removing and re-adding the account.

image