Search Issue Tracker

Fixed

Fixed in 1.2.2

Votes

0

Found in [Package]

1.0.0

Issue ID

MTTB-200

Regression

No

Errors are thrown when exiting Play Mode while simulating Virtual Players

Package: Multiplayer Play Mode

-

How to reproduce:
1. Open the “MultiplayerPlayMode“ project
2. Open the “1_Bootstrap“ scene in Assets\CodeSmile\MultiPal\Scenes
3. Select Window → Multiplayer Play Mode
4. Activate all the Virtual Players
5. Enter Play Mode
6. Exit Play Mode
7. Observe all the Consoles

Expected result: No errors are seen
Actual result: Errors are seen

Reproducible with: 1.0.0-pre.2 (6000.0.0a12), 1.0.0 (6000.0.0b14)

Reproducible on: Windows 10, Windows 11 (user’s device)
Not reproducible on: No other environment tested

Errors:
(Always throw in 1.0.0 (6000.0.0a12))
Destroy may not be called from edit mode! Use DestroyImmediate instead.
Destroying an object in edit mode destroys it permanently.
UnityEngine.UIElements.UIElementsRuntimeUtilityNative:UpdatePanels ()

(Sometimes thrown in 1.0.0 and 1.0.0-pre.2 (6000.0.0a12), 1.0.0 (6000.0.0a13, 6000.0.0a14) )
Assertion failed on expression: '!(InstanceID_AsSInt32Ref(instanceID) & 1)'

InvalidOperationException: This cannot be used during play mode, please use SceneManager.LoadScene()/SceneManager.LoadSceneAsync() instead.

Note: If the issue does not reproduce, repeat the steps 5 and 6 multiple times

  1. Resolution Note (fix version 1.2.2):

    Tested with 1.2.2.

  2. Resolution Note:

    Tested with 1.3.0-pre.2.

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.