Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.3.3

1.4.0

Issue ID

MTTB-1164

Regression

Yes

Multiplayer Play Mode package throws file not found IO exception after Small Scale Competitive Multiplayer Template project is created

Package: Multiplayer Play Mode

-

*Steps to reproduce:*
# Create a new Small Scale Competitive Multiplayer template project

# Check the console after the project is created

*Actual results:* Errors related to file Not Found IO exception are thrown

*Expected results:* No errors or warnings are thrown after creating a project

*Reproducible with versions:* 1.3.3(6000.0.18f1, 6000.0.45f1), 1.4.0(6000.1.0b13, 6000.2.0a8)

*Not reproducible with versions:* 2022.3.60f1 (Multiplayer Play Mode package is not included in that version of the Template)

Could not test with versions: 2023.2.20f1, 2023.3.0b1 (Small Scale Competitive Multiplayer template is not available), 6000.0.0b11, 6000.0.17f1 (Multiplayer Center package is missing and throws Package Manager related errors on project creation)

*Tested on (OS):* Ubuntu 22.04, macOS 15.3.2, Windows 11

*Notes:*
* Errors appear only on Project creation. Trying to clear the library and restart the project did not reproduce the issue
* Errors are clearable. For consistent reproduction - disable all Console clear options
* Error originates from the Multiplayer Play Mode package
* The regression point is likely tied to the inclusion of the Multiplayer Play Mode package to the Template project
** Marking 1.3.3 as a regression point since it is the oldest MPPM package version included in a template. However, it is possible errors existed in MPPM 1.0.0 and the bug was only highlighted with MPPM inclusion in templates
** 2023.2.20f1 - 2023.3.0b10 do not have the Template project available
** 6000.0.0b11 - 6000.0.17f1 couldn't test as project creation fails due to Multiplayer Play Center related package errors

*Full Error message:*
{quote}System.IO.FileNotFoundException: Could not find file "/Users/$USER_NAME/Projects/My project (75)/ProjectSettings/ProjectVersion.txt"
File name: '/Users/$USER_NAME/Projects/My project (75)/ProjectSettings/ProjectVersion.txt'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <016d35b5449b460ca65d15b1a0aee10a>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <016d35b5449b460ca65d15b1a0aee10a>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00055] in <016d35b5449b460ca65d15b1a0aee10a>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding) [0x00000] in <016d35b5449b460ca65d15b1a0aee10a>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string,System.Text.Encoding)
  at System.IO.File.InternalReadAllLines (System.String path, System.Text.Encoding encoding) [0x00006] in <016d35b5449b460ca65d15b1a0aee10a>:0 
  at System.IO.File.ReadAllLines (System.String path) [0x0002c] in <016d35b5449b460ca65d15b1a0aee10a>:0 
  at Unity.Multiplayer.Playmode.Workflow.Editor.VirtualProjectWorkflow.ReadVersionInfo () [0x00000] in ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Workflow/Editor/Workflow/VirtualProjectWorkflow.cs:144 
  at Unity.Multiplayer.Playmode.Workflow.Editor.VirtualProjectWorkflow.HasVersionChanged () [0x00000] in ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Workflow/Editor/Workflow/VirtualProjectWorkflow.cs:93 
  at Unity.Multiplayer.Playmode.Workflow.Editor.VirtualProjectWorkflow.ValidateVersionsChange () [0x00000] in ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Workflow/Editor/Workflow/VirtualProjectWorkflow.cs:116 
  at Unity.Multiplayer.Playmode.Workflow.Editor.VirtualProjectWorkflow..cctor () [0x0000a] in ./Library/PackageCache/com.unity.multiplayer.playmode@5a1f3b990b6d/Workflow/Editor/Workflow/VirtualProjectWorkflow.cs:73 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[]) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:136)
{quote}

  1. Resolution Note:

    Fixed in 1.4.1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.