Jump to content

Texture Extension is causing GENA Pro to crash!


dixZo1337
Go to solution Solved by Manny,

Recommended Posts

Im am using the latest Version of Gena together with Unity 2021.3.9.1f.

When ever i try to excess the Texture Extension in Gena it causes this error:

NullReferenceException: Object reference not set to an instance of an object
GeNa.Core.GeNaTerrainExtensionEditor.OnInspectorGUI () (at Assets/Procedural Worlds/GeNa/Scripts/Editor/Extensions/GeNaTerrainExtensionEditor.cs:91)
GeNa.Core.SplineEditor.ExtensionPanel (System.Boolean helpEnabled) (at Assets/Procedural Worlds/GeNa/Scripts/Editor/SplineEditor.cs:1173)
PWCommon5.EditorUtils.Panel (UnityEngine.GUIContent panelLabel, System.String helpKey, System.Action`1[T] contentMethod, UnityEngine.GUIStyle labelStyle, System.Boolean ignoreGuiChange, System.Boolean defaultStatus, System.Boolean showVersionNumber, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
PWCommon5.EditorUtils.Panel (UnityEngine.GUIContent panelLabel, System.String helpKey, System.Action`1[T] contentMethod, System.Boolean ignoreGuiChange, System.Boolean defaultStatus, System.Boolean showVersionNumber, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
PWCommon5.EditorUtils.Panel (System.String nameKey, System.Action`1[T] contentMethod, System.Boolean defaultStatus, UnityEngine.GUILayoutOption[] options) (at <5e780e565d3b4b63836c767b4e8e9d7f>:0)
GeNa.Core.SplineEditor.OnInspectorGUI () (at Assets/Procedural Worlds/GeNa/Scripts/Editor/SplineEditor.cs:701)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <122642d41668428d845063b1753c4e72>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Help would be really appreciated.

Link to comment
Share on other sites

On 9/21/2023 at 10:57 PM, Bryan said:

We will look into this and get back to you as soon as possible! 

 

Do you have an estimate on how when you might have a solution for this error?

Link to comment
Share on other sites

52 minutes ago, Bryan said:

Sorry for the delay we think we found the problem we are testing the solution and trying to get a fix. 

 

Thanks a lot. Just great support through and through. The delay ist just fine and understandable. 

Link to comment
Share on other sites

On 9/29/2023 at 12:02 AM, Bryan said:

Thank you, we should have this completed today! 
Checking into this again now! 

Any progress in testing yet?

Link to comment
Share on other sites

  • Solution

Hi @dixZo1337,

I have thoroughly investigated this issue but it appears to be such a small window of opportunity for the bug to arise in newer projects. However, I have added a fail-safe to the script to ensure that the Extension gets picked up by the editor. This one is quite unique to others because it needs to do a 'AssetDatabase.Contains' check at the start. However, if Unity fails to find the object, it will return null.

Nevertheless, attached to this message is a zip file containing a Unity Package with a patch. Please download, unzip and import it over your project.
GeNaPro_v3.5.4_b0.unitypackage

Give this patch a try and let us know if it resolved your problem. If so, I will release it into a new patch! 🙂

Link to comment
Share on other sites

On 10/3/2023 at 11:55 PM, Manny said:

Hi @dixZo1337,

I have thoroughly investigated this issue but it appears to be such a small window of opportunity for the bug to arise in newer projects. However, I have added a fail-safe to the script to ensure that the Extension gets picked up by the editor. This one is quite unique to others because it needs to do a 'AssetDatabase.Contains' check at the start. However, if Unity fails to find the object, it will return null.

Nevertheless, attached to this message is a zip file containing a Unity Package with a patch. Please download, unzip and import it over your project.
GeNaPro_v3.5.4_b0.unitypackage

Give this patch a try and let us know if it resolved your problem. If so, I will release it into a new patch! 🙂

Thanks so much, Manny. Works like a charm now. Sorry for the slight delay from my side.

Really appreciate the help.

 

Link to comment
Share on other sites

56 minutes ago, dixZo1337 said:

Thanks so much, Manny. Works like a charm now. Sorry for the slight delay from my side.

Really appreciate the help.

 

Thank you for the update. 
If you are happy with our support and the asset will you please consider leaving a review on the UAS?
It would help us out a ton! 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...