You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-01-30 17:42:58 [verbose]: ⚠️ An unhandled error has occurred.
2024-01-30 17:42:58 [verbose]:
2024-01-30 17:42:58 [verbose]: This error has been automatically reported to the devs.
2024-01-30 17:42:58 [error]: An unhandled error has occurred.
2024-01-30 17:42:58 [error]: System.NullReferenceException: Object reference not set to an instance of an object.
2024-01-30 17:42:58 [error]: at osu.Game.Online.API.OAuth.RequestAccessToken()
2024-01-30 17:42:58 [error]: at osu.Game.Online.API.APIAccess.attemptConnect()
2024-01-30 17:42:58 [error]: at osu.Game.Online.API.APIAccess.run()
2024-01-30 17:42:58 [error]: at System.Threading.Thread.StartHelper.Callback(Object state)
2024-01-30 17:42:58 [error]: at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
2024-01-30 17:42:58 [error]: --- End of stack trace from previous location ---
2024-01-30 17:42:58 [error]: at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
2024-01-30 17:42:58 [error]: at System.Threading.Thread.StartCallback()
2024-01-30 17:42:58 [verbose]: Unhandled exception has been allowed with 0 more allowable exceptions .
2024-01-30 17:42:58 [verbose]: 🌅 Global background loading
The text was updated successfully, but these errors were encountered:
Closesppy#26824... I think?
Can be reproduced via something like
diff --git a/osu.Game/Online/API/OAuth.cs b/osu.Game/Online/API/OAuth.cs
index 485274f349..e6e93ab4c7 100644
--- a/osu.Game/Online/API/OAuth.cs
+++ b/osu.Game/Online/API/OAuth.cs
@@ -151,6 +151,11 @@ internal string RequestAccessToken()
{
if (!ensureAccessToken()) return null;
+ for (int i = 0; i < 10000; ++i)
+ {
+ _ = Token.Value.AccessToken;
+ }
+
return Token.Value.AccessToken;
}
The cause is `SecondFactorAuthForm` calling `Logout()`, which calls
`OAuth.Clear()`, _while_ the `APIAccess` connect loop is checking if
`authentication.HasValidAccessToken` is true, which happens to
internally check `Token.Value.AccessToken`, which the clearing of
tokens can brutally interrupt.
Type
Crash to desktop
Bug description
Screenshots or videos
No response
Version
2024.130.2-lazer
Logs
1706636517.runtime.log
The text was updated successfully, but these errors were encountered: