Search Issue Tracker

Won't Fix

Votes

12

Found in

2017.2.0a1

2017.3.0b11

Issue ID

971967

Regression

Yes

[TreeCreator] Selecting rotate node of a nested branch group on a tree throws " NullReferenceException" error

Graphics - General

-

What Happened:
On rotating node of a nested branch group of a tree, the editor throws null reference exception

Steps To Reproduce:
1. 3D Object > Create Tree
2. Tree > Select branch group in tree creation window > Click on "Add Branch" icon
3. Click on the rotation node on the branch, in the scene view.
5. Observe that clicking on brach node rotate icon throws " NullReferenceException" error.

Actual Result:
Selecting the rotation icon shouldn't throw any error.

Expected Result:
Selecting the rotation icon on the branch throws null reference error.

Frequency:
Always

Steps To Reproduce:

1. Create a 3d game object of type tree.
2. Select the branch icon on the inspector.
3. Click on the 'Add Brach' icon.
4. Click on the rotation icon on the branch in the scene view.
5. Observe that clicking on brach rotating icon of a branch on a tree throws " NullReferenceException" error.

Actual Result:
Selecting the rotation icon on the branch throws null reference error.

Expected Result:
Selecting the rotation icon shouldn't throw any error.

Frequency:
Always

Environment:
2017.3.0b11
Occurring on windows & Mac

Working on:
Unity 5.6.3f1, 2017.1.2f1, 2017.1.2p3

Reproducible with:
2017.2.0a1, 2017.2.0f1, 2017.2.0f3, 2017.3.0b11

Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
TreeEditor.TreeEditor.OnSceneGUI () (at /Users/builduser/buildslave/unity/build/Extensions/TreeEditor/TreeEditor/TreeEditor.cs:1076)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.SceneView.CallOnSceneGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2507)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1833)
UnityEditor.SceneView.OnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1663)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:255)

  1. Response avatar

    Resolution Note (fix version ):

    TreeCreator will only be available as a package in GitHub, where Unity developers and users will be able to contribute to its development and maintenance. To support this move, we are suspending bug fixes until the TreeCreator is a package. However, although TreeCreator will not be available directly in the Unity Editor, Unity will continue to support any Assets made with TreeCreator.

Comments (5)

  1. 62197d4206863b4dae110e3c550149f7?d=mm

    RAMJI_KUMARARAJAN

    Oct 15, 2019 07:13

    Still issue is there. I just checked in the version 2019.2.6f1. Unity is useless man !!!

    I moved to unreal engine and Modern C++ a while ago.

  2. 0e6c5567ce74647cc7c3c298d0d55dcf?d=mm

    CreartStudio

    May 02, 2019 14:38

    Same problem on ALL version since 2017.3

  3. 13d8edb7b767ca88e86ce3e7973a9f98?d=mm

    guepardrex

    Oct 06, 2018 14:11

    Hello
    I have this problem too in the version 2018.2.11
    Someone can help us?

  4. 042e04881754ef5cf82cd7f4e7b0c002?d=mm

    zangad

    Jun 11, 2018 00:33

    Happens to me, too. Exactly as stated in the reproduction steps above. Unity 2018.1. I need to make trees with the editor (cannot use SpeedTree for my project) but cannot make/edit a single tree because of this bug.

  5. 059437b01a2b370a9b2b1a5ad51186ac?d=mm

    csurogdi

    Apr 17, 2018 20:40

    I've got this problem too :-/
    Reinstalled and updated unity, make a brand new project but this problem is permanent.....

    Please help, i want pay for unity but this bug is changed my mind.

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.