Search Issue Tracker
By Design
By Design in 1.5.X
Votes
0
Found in [Package]
1.1.0
1.2.0
1.4.0
1.4.1
1.5.0
Issue ID
MTTB-1184
Regression
No
Upgrading MPPM package while Virtual Player is started throws FileNotFound Exception and prevents VP's window from being closed
Steps to reproduce:
- Open the attached project
- Open Multiplayer Play Mode window
- Start one of the Virtual Players
- Open the Package Manager window
- Change the version of the MPPM package (If no versions are listed under Version History tab - use the add Package by name option and provide a different version than it is currently installed
- After the upgrade process is over, inspect the Virtual Player's window
- Try closing the Virtual Player's window
Actual results: Depending on the MPPM package version, errors will appear immediately after opening the VP window or after trying to close it. On the newer MPPM version, the bug also prevents the window from being closed
Expected results: The package version change proceeds without issues. MPPM windows are either gracefully closed or remain open and functional after the upgrade process.
Reproducible with versions: 1.1.0(6000.0.6f1), 1.2.0, 1.2.2(6000.0.10f1), 1.3.3(6000.0.46f1), 1.4.0(6000.1.0b13), 1.4.1(6000.1.0b14, 6000.2.0a8), 1.5.0-exp.1(6000.2.0a8)
Not reproducible with versions: 1.0.0-pre.2, 1.0.0(6000.0.0b11)
Tested on (OS): macOS 15.3.2
Notes:
- While testing 1.2.0-1.2.2 errors appeared immediately after opening the VP's window. The bug did not prevent closing the VP window
- While testing 1.4.0-1.5.0-exp.1 errors appeared only when trying to close the VP window. The bug prevents the window from closing. The only way to close it is either to restart the editor or enter Play mode which crashes the leftover VP window
Full error message:
{quote}FileNotFoundException: Could not find file ""
System.IO.Directory.InsecureGetCurrentDirectory () (at <90608de5b7464836a1b66c3d03851b52>:0)
System.IO.Path.InsecureGetFullPath (System.String path) (at <90608de5b7464836a1b66c3d03851b52>:0)
System.IO.Path.GetFullPath (System.String path) (at <90608de5b7464836a1b66c3d03851b52>:0)
System.IO.Directory.CreateDirectory (System.String path) (at <90608de5b7464836a1b66c3d03851b52>:0)
UnityEditor.WindowLayout.EnsureDirectoryCreated (System.String path) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/WindowLayout.cs:1116)
UnityEditor.WindowLayout.SaveWindowLayout (System.String path, System.Boolean reportErrors) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/WindowLayout.cs:1608)
Unity.Multiplayer.PlayMode.Editor.Bridge.WindowLayout.SaveWindowLayout (System.String path) (at ./Library/PackageCache/com.unity.multiplayer.playmode@9270179de68a/InternalBridge/WindowLayout.cs:28)
Unity.Multiplayer.Playmode.Workflow.Editor.ModeSwitcher.SaveCurrentWindow () (at ./Library/PackageCache/com.unity.multiplayer.playmode@9270179de68a/Workflow/Editor/EditorModes/ModeSwitcher.cs:110)
Unity.Multiplayer.Playmode.Workflow.Editor.ClonedPlayerSystems+<>c.<Listen>b__14_2 (System.Boolean isFocused) (at ./Library/PackageCache/com.unity.multiplayer.playmode@9270179de68a/Workflow/Editor/EditorSystems/ClonedPlayerSystems.cs:122)
UnityEditor.EditorApplication.Internal_FocusChanged (System.Boolean hasFocus) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:554)
{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
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- "Layer Palette Profile" Asset is automatically applied to the second Terrain but doesn't load any layers
- "Terrain Tools" shortcut conflicts with the Overlays shortcut by default
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
Resolution Note:
Upgrading with the virtual player open is not supported
Resolution Note (1.5.X):
Upgrading with the virtual player open is not supported