Search Issue Tracker

Not Reproducible

Votes

0

Found in

2021.2

2021.2.0f1

2022.1

Issue ID

1378234

Regression

Yes

[Linux] IConnectionState was not Disposed! error is thrown when using Profiler with maximized Game view

Profiling

-

How to reproduce:
1. Create new project
2. Open Profiler window and dock it
3. In Game view set window size to Play Maximized
4. Enter Play Mode
5. Notice error in console
6. Undock Profiler and enter Play Mode again
7. Notice different error in console

Errors:
Floating Profiler:
IConnectionState was not Disposed! Please make sure to call Dispose in OnDisable of the EditorWindow in which it was used.
UnityEditor.Networking.PlayerConnection.GeneralConnectionState:Finalize () (at /home/bokken/buildslave/unity/build/Editor/Mono/Networking/PlayerConnection/AttachToPlayerGUI.cs:377)

Docked:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ProfilerWindow.SaveViewSettings () (at /home/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerWindow.cs:682)
UnityEditor.ProfilerWindow.OnDisable () (at /home/bokken/buildslave/unity/build/Modules/ProfilerEditor/ProfilerWindow/ProfilerWindow.cs:367)
UnityEditor.EditorApplicationLayout:InitPlaymodeLayout() (at /home/bokken/buildslave/unity/build/Editor/Mono/GUI/EditorApplicationLayout.cs:59)

Reproduced with: 2021.2.0f1, 2022.1.0a13
Does not reproduce with: 2021.1.26f1

Note: Not reproducible with MacOS 11.6 and Windows 10

Comments (9)

  1. abdullaimtiazunity

    Oct 21, 2023 13:32

    ConnectionState was not Disposed! Please make sure to call Dispose in OnDisable of the EditorWindow in which it was used. please solve the problem

  2. abdullaimtiazunity

    Oct 21, 2023 13:31

    ConnectionState was not Disposed! Please make sure to call Dispose in OnDisable of the EditorWindow in which it was used. please solve the problem

  3. Pnvanol

    Oct 16, 2023 08:23

    still happening on 2022.3.5 on Linux

  4. tecmoc

    Jul 08, 2023 00:41

    it stills happening on windows 11 2021.3.13f1 DX11 - IConnectionState was not Disposed! Please make sure to call Dispose in OnDisable of the EditorWindow in which it was used.
    UnityEditor.Networking.PlayerConnection.GeneralConnectionState:Finalize ()

  5. peq42

    Mar 22, 2023 21:41

    still happens on 2021.3.21 on windows

  6. ClearRoseOfWar

    Mar 01, 2023 19:49

    Still happens in 2021.3.16f1 - But I am on windows. Closing the profiler seems to fix the issue

  7. unity_0D902C43329EBAD72F6E

    Feb 22, 2023 02:17

    have this issue but on Windows
    IConnectionState was not Disposed! Please make sure to call Dispose in OnDisable of the EditorWindow in which it was used.

  8. Jeepster

    Nov 19, 2022 06:09

    can confirm it still happens in unity 2022.

  9. peq42

    Nov 04, 2022 22:20

    issue still happens on 2022.1.20f

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.