Search Issue Tracker

Fixed in 2018.2.X



Found in


Issue ID




Disabling UI crashes at GameObject::IsActive



Steps to reproduce:

1. Open project
2. Open SceneA (or SceneB)
3. Click the big button in the middle continuously until the editor crashes.

Reproduced with: 5.3.5p6, 5.4.0b24, 5.5.0a2, 5.6.2f1, 2017.3.0p1, 2018.1.0b2

Comments (45)

  1. CptDustmite

    Jan 05, 2017 08:39

    FYI - the source of my crashes was when a script destroyed a Canvas component. It seems that, in certain situations, Unity does not like this.

    A similar thread can be seen here, for reference:

  2. CptDustmite

    Dec 28, 2016 07:22

    Different stack trace:

    0x000000014126AB60 (Unity) UI::CanvasRenderer::CanvasHierarchyChanged
    0x000000014004A592 (Unity) MessageHandler::HandleMessage
    0x000000014004AC64 (Unity) GameObject::SendMessageAny
    0x00000001403815F2 (Unity) Transform::BroadcastMessageAny
    0x0000000141277222 (Unity) UI::Canvas::AddToManager
    0x000000014127DAA8 (Unity) UI::Canvas::AwakeFromLoad
    0x000000014052DC6A (Unity) AwakeFromLoadQueue::InvokeAwakeFromLoad
    0x000000014052DDF6 (Unity) AwakeFromLoadQueue::AwakeFromLoad
    0x000000014004BF8D (Unity) GameObject::ActivateAwakeRecursively
    0x000000014004C2B5 (Unity) GameObject::SetSelfActive
    0x0000000140E8E3C5 (Unity) GameObject_CUSTOM_SetActive

  3. CptDustmite

    Dec 28, 2016 07:01

    The output stack trace usually ends with the following:

    0x000000014004B586 (Unity) GameObject::IsActive
    0x0000000141271BE5 (Unity) UI::CanvasManager::AddDirtyRenderer
    0x000000014126CE26 (Unity) UI::CanvasRenderer::SetMesh

  4. CptDustmite

    Dec 28, 2016 06:53

    (Version 5.4.1)

  5. CptDustmite

    Dec 28, 2016 06:42

    I am also experiencing this crash frequently, at inconsistent places in my game.

    The stack traces on crash log differ each time however usually end with GameObject::IsActive, and occur usually when a UI GameObject has been disabled.

    Not sure if related, but on older Android devices these crashes seem to be even more frequent.

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.