Search Issue Tracker

Fixed in 2018.2.X

Fixed in 2017.2.X, 2017.3.X, 2018.1.X

Votes

38

Found in

2017.3.0b9

Issue ID

968882

Regression

Yes

Gameobject Transforms are not being disabled when the Player is Stopped

Themes

-

Gameobject Transform component keeps on being detected post to Disable of the Game object.

Users are running into this without Vuforia, but this project reproduced with Vuforia specifically:
https://forum.unity.com/threads/assertion-failed-transform-has-setisdispatchinterested-present-when-destroying-the-hierarchy.505111/
https://forum.unity.com/threads/problem-with-error-when-scene-transitions.507158/

Pre requisites:
Vuforia component should be installed with Unity Engine.

Steps to Reproduce:
1. Create a new Project.
2. Click on Edit > Project Settings > Player.
3. Enable the "Vuforia Augmented Reality Supported" from the XR Setting Section.
4. Click on GameObject Menu > Vuforia > AR Camera
5. Create an Image Target from the Vuforia Menu
6. Set relevant parameters for the Dataset that was created on Vuforia portal
7. Set the Image Target such that AR Camera views the Image Target.
8. Play The Scene
9. Once the Marker displays the Augmented Game object , Stop the Player.
Error would be displayed

Stack Trace:
1. Assertion failed: Transform has SetIsDispatchInterested present when destroying the hierarchy. Systems must deregister themselves in Deactivate.
2. Assertion failed: Transform has SetIsHierarchyDispatchInterested present when destroying the hierarchy. Systems must deregister themselves in Deactivate.

Reproduced On: 2017.3.0b9

Works Fine On: 2017.2.0f3, 2017.3.0b8, 2017.3.0b7

Regression Introduced On: 2017.3.0.b9

Platforms that Error comes : Mac OS, Windows OS.

License type: Free

Comments (28)

  1. Zullar

    Dec 20, 2017 02:50

    I'm getting the same error after upgrading to 2017.2.1f1

  2. Steederino

    Dec 18, 2017 21:00

    This is happening whenever a collider is disabled on a GameObject which is not currently activeInHierarchy. Here's a simple repro:

    var obj = new GameObject();
    var collider = obj.AddComponent<BoxCollider>();

    // Disable the collider (while the object is inactive)
    obj.SetActive(false);
    collider.enabled = false;

    // Destroying the object will result in "Assertion failed" errors
    Destroy(obj);

  3. Coks

    Dec 08, 2017 10:43

    I have same error in my project when reload scenes or end of play mode in editor. Seen in versions: 2017.2.0p2 (64-bit), 2017.2.0p3 (64-bit), 2017.2.0p4 (64-bit), 2017.3.0f1 (64-bit).

  4. JacobK

    Dec 07, 2017 17:39

    Still happening in 2017.2.0p4. Getting the assertion faileds 800 or so times!

  5. Tyrathect

    Dec 06, 2017 04:49

    Still seeing this in 2017.2.0p3. Not vuforia related.

  6. gudouan

    Dec 02, 2017 17:14

    Me too!
    This error now appears after upgrading to "Unity 2017.2.0p3".
    So I posted it on the forum.

    https://forum.unity.com/threads/problem-with-error-when-scene-transitions.507158/

    In addition, I do not use VUFORIA.

  7. radek_oml

    Nov 30, 2017 12:06

    Happens also in 2017.2.p3, VUFORIA not used. Didn't happen before.

  8. jo82

    Nov 28, 2017 04:51

    Happened today. Not using VUFORIA. Using 2017.2p3

  9. 80dots

    Nov 26, 2017 04:10

    I have same issue after updating 2017.2.0p2.

    I turned on XR settings. (Oculus, Daydream)
    When I load another scene using SceneManager, the below error occur.

    Assertion failed: Transform has SetIsDispatchInterested present when destroying the hierarchy. Systems must deregister themselves in Deactivate.
    Assertion failed: Transform has SetIsHierarchyDispatchInterested present when destroying the hierarchy. Systems must deregister themselves in Deactivate.

  10. moco2k

    Nov 22, 2017 13:38

    Same here. Issue started with 2017.2.0p2. Never seen this before in other unity versions.
    Like the others, I am not using Vuforia at all.

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.