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
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
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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
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
Pnvanol
Oct 16, 2023 08:23
still happening on 2022.3.5 on Linux
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 ()
peq42
Mar 22, 2023 21:41
still happens on 2021.3.21 on windows
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
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.
Jeepster
Nov 19, 2022 06:09
can confirm it still happens in unity 2022.
peq42
Nov 04, 2022 22:20
issue still happens on 2022.1.20f