Search Issue Tracker
By Design
Votes
0
Found in [Package]
1.0.0
1.0.1
Issue ID
MTTB-1311
Regression
No
Join Session By Code Widget throws SessionException
Steps to reproduce:
- Open the attached project
- Open the Sample Scene
- Enter Play mode
- Create a new session with a name of "T1"
- In the Multiplayer Play Mode window, start a virtual Player
- In the Virtual Player Game view, enter the session code
- Press the Join button
Actual results: Player does not join the session and a "SessionException: lobby code 'T1' contains an invalid character '1' (U+0031) at index 1" error is thrown
Expected results: Player joins the session without any errors or warnings
Reproducible with versions: 1.0.0(6000.0.48f1), 1.0.1(6000.1.2f1, 6000.2.0b1)
Can’t test with versions: 2022.3.62f1(MP Widgets package is not available)
Tested on (OS): macOS 15.4.1, Windows 11
Full error message:
*
{quote}SessionException: lobby code 'T1' contains an invalid character '1' (U+0031) at index 1
Unity.Services.Multiplayer.LobbyHandler.JoinLobbyByCodeAsync (System.String lobbyCode, Unity.Services.Lobbies.JoinLobbyByCodeOptions options) (at ./Library/PackageCache/com.unity.services.multiplayer@e9296dd42336/Runtime/Multiplayer/Lobby/LobbyHandler.cs:578)
Unity.Services.Multiplayer.SessionManager.JoinByCodeAsync (System.String sessionCode, Unity.Services.Multiplayer.JoinSessionOptions sessionOptions) (at ./Library/PackageCache/com.unity.services.multiplayer@e9296dd42336/Runtime/Multiplayer/Session/SessionManager.cs:107)
UnityEngine.Debug:LogException(Exception)
Unity.Multiplayer.Widgets.SessionManager:HandleSessionException(SessionException) (at ./Library/PackageCache/com.unity.multiplayer.widgets@a5723a5a90fa/Runtime/Session/Session/SessionManager.cs:155)
Unity.Multiplayer.Widgets.SessionManager:<EnterSession>b__14_0(Exception) (at ./Library/PackageCache/com.unity.multiplayer.widgets@a5723a5a90fa/Runtime/Session/Session/SessionManager.cs:144)
System.AggregateException:Handle(Func`2)
Unity.Multiplayer.Widgets.<EnterSession>d__14:MoveNext() (at ./Library/PackageCache/com.unity.multiplayer.widgets@a5723a5a90fa/Runtime/Session/Session/SessionManager.cs:140)
UnityEngine.UnitySynchronizationContext:ExecuteTasks() (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:110){quote}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
Resolution Note:
The Join session by Code button requires a Session Code to join, not the session name.
The code of the created session can be displayed in the UI using the Show Session Code widget.