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
Comments (9)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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