Giter VIP home page Giter VIP logo

Comments (6)

Piecrustius avatar Piecrustius commented on May 17, 2024

Currently, if I sign in multiple users, that seems to operate as expected. However, once I sign out one of the users, the UI elements from the UserProfile prefab do not change and eventually after several seconds, I get this error message:

Exception thrown: 'Microsoft.Xbox.Services.XboxException' in Microsoft.Xbox.Services.UWP.CSharp.dll
Exception thrown: 'Microsoft.Xbox.Services.XboxException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.Threading.SynchronizationLockException' in System.Threading.dll

I have not yet been able to find the source.

from xbox-live-unity-plugin.

MSFT-Heba avatar MSFT-Heba commented on May 17, 2024

Hi Piecrustius,
Thanks for reporting this. We'll work on a fix for this bug and update you once the fix is out.
Thanks!

from xbox-live-unity-plugin.

SimonDarksideJ avatar SimonDarksideJ commented on May 17, 2024

@Piecrustius did you find a way to sign out the user in single person mode?

from xbox-live-unity-plugin.

Piecrustius avatar Piecrustius commented on May 17, 2024

DDReaper,
Nope. My objective is to have a local multiplayer game where users can sign in and out during a setup screen. The issue is probably related to a single user signing out.
Currently, I am working on a separate script based on the UserProfile.cs script to track up to 8 users. I think I have them signing in and I am turning to signing out, or at least recognizing when they are signing out and then resetting the user information to allow another sign in.
You can get feedback on a user sign out by adding a function to the XboxLiveUser.SignOutCompleted member. I did it this way, but I do not know if its the right way to do it:

static void UserSignedOut(object sender, SignOutCompletedEventArgs e)
{
Debug.Log("User signed Out: " + e.User.Gamertag);
}

Then add:
XboxLiveUser.SignOutCompleted += UserSignedOut;

to some initialization section, such as in the Start() function.

That is as far as I have gotten on handling a sign out. If I get further, I'll post the code. I should mention that I do not know what I am doing and am making it up as I go along.

Good luck.

from xbox-live-unity-plugin.

SimonDarksideJ avatar SimonDarksideJ commented on May 17, 2024

I did eventually find a way, but it involved using the gamebar to navigate to the Xbox App and then signing out there.
Looked through the code (as you likely have) and found no reference to a "SignOut" option.

If I get a chance, I might try adding another "sign-in" call and see if that replaces it.

from xbox-live-unity-plugin.

jplafonta avatar jplafonta commented on May 17, 2024

This issue is fixed in the 1711 release. If you are still seeing the issue after updating to that please reopen this issue.

from xbox-live-unity-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.