Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GNU/Linux] UnityEditor.ContainerWindow : NullReferenceException: Object reference not set to an instance of an object in Unity 2019 / 2020 LTS #18

Open
vikrantwaghmode opened this issue Apr 12, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@vikrantwaghmode
Copy link

In Unity 2020.3.3 LTS whenever I try to open the wizard for adding object on the node like railings. It throwing a null exception. Not sure if anyone else has this issue. Tried debugging the GSD script but no luck. It work in 2021.2.xx Alpha version of Unity 3d.
Any help appreciated !

Error log
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ContainerWindow.FindUnsavedChanges (UnityEditor.View view) (at /home/bokken/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:306)
UnityEditor.ContainerWindow.UnsavedStateChanged () (at /home/bokken/buildslave/unity/build/Editor/Mono/ContainerWindow.cs:329)
UnityEditor.EditorWindow.CreateNewWindowForEditorWindow (UnityEditor.EditorWindow window, System.Boolean loadPosition, System.Boolean showImmediately, System.Boolean setFocus) (at /home/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:1159)
UnityEditor.EditorWindow.Show (System.Boolean immediateDisplay) (at /home/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:614)
UnityEditor.EditorWindow.Show () (at /home/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:606)
UnityEditor.EditorWindow.GetWindowPrivate (System.Type t, System.Boolean utility, System.String title, System.Boolean focus) (at /home/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:658)
UnityEditor.EditorWindow.GetWindow (System.Type t) (at /home/bokken/buildslave/unity/build/Editor/Mono/EditorWindow.cs:690)
GSDSplineNEditor.DoExtAndEdgeOverview () (at Assets/RoadArchitect/Editor/GSDSplineNEditor.cs:617)
GSDSplineNEditor.OnInspectorGUI () (at Assets/RoadArchitect/Editor/GSDSplineNEditor.cs:463)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.b__0 () (at /home/bokken/buildslave/unity/build/External/MirroredPackageSources/com.unity.ui/Editor/Inspector/InspectorElement.cs:546)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /home/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

@FritzsHero FritzsHero added bug Something isn't working question Further information is requested labels Apr 12, 2021
@FritzsHero
Copy link
Owner

Hi,

thanks for reporting this.
Looks like you are under a GNU/Linux system and I tested it with Ubuntu 20.04 LTS and I also get this error with Unity 2020.3.3f1 LTS.
It might be a problem Unity internal but it is not listed in the known problems. You could probably create an bug report to Unity about this, because it runs fine under Windows 7 x64 and there shouldn't be any platform specific issues in the RoadArchitect code.

Best Regards

Fritzs

@vikrantwaghmode
Copy link
Author

Thanks felt the same way, I have reported this to Unity hopefully they will help. Also much appreciation for all the work on this branch of Road Architect.

@FritzsHero
Copy link
Owner

Unity has no plans on fixing this for 2019 and 2020 LTS.
Issue does not appear on the 2021 version as far as I know.
So if anyone has issues with this, u should upgrade to 2021.x to fix this.
Not great but it is a solution.

Thank you again for reporting this.
I pin this for other GNU/Linux users.
We probably close this in 3 years when no one cares about the 2020 LTS anymore....

@FritzsHero FritzsHero removed the question Further information is requested label Oct 3, 2021
@FritzsHero FritzsHero pinned this issue Oct 3, 2021
@FritzsHero FritzsHero changed the title UnityEditor.ContainerWindow : NullReferenceException: Object reference not set to an instance of an object [GNU/Linux] UnityEditor.ContainerWindow : NullReferenceException: Object reference not set to an instance of an object in Unity 2019 / 2020 LTS Oct 3, 2021
@vikrantwaghmode
Copy link
Author

Thanks @FritzsHero, again appreciate all the awesome work, I can confirm this is fixed in Unity 2021.1.23f1 and version 2.4.0 of road architect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants