Search Issue Tracker


Under Consideration for 2021.3.X



Found in



Issue ID




Crash when accessing transform component after calling Resources.UnloadUnusedAssets()



Reproduction steps:
# download and open the attached project
# switch to android platform and make a build
# install the apk to an android device and run the app
# Click the only "Button"

Expected result: No Crash

Actual result:: The app crashed with info:

29063-29093/ E/CRASH: pid: 29063, tid: 29093, name: UnityMain  >>> <<<
29063-29093/ E/CRASH: uid: 10473
29063-29093/ E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
29063-29093/ E/CRASH: Cause: null pointer dereference


Reproducible with: 2018.4.23f1 and 2021.3.4f1. It seems affect every version.

Comments (1)

  1. StudioZoo

    Sep 18, 2022 09:33

    I also have a similar issue about it. I got this problem when I upgraded from 2019.4 to 2021.3.
    But In my case, it's occurred such a crash even if remove the calling Resources.UnloadUnSedAssets().
    I have the same callstack on Android but Have a detailed iOS callstack so I leave a comment.

    #0 0x00000001010a42ec in ::MarkParentCanvasDirtyAsNeeded() at /Users/bokken/buildslave/unity/build/Modules/UI/CanvasRenderer.cpp:110
    #1 0x00000001010a57bc in ::OnParentingChanged() at /Users/bokken/buildslave/unity/build/Modules/UI/CanvasRenderer.cpp:608
    #2 0x00000001010a457c in ::UpdateParentHierarchy() at /Users/bokken/buildslave/unity/build/Modules/UI/CanvasRenderer.cpp:493
    #3 0x00000001010a5834 in ::UpdateParentHierarchyChange() at /Users/bokken/buildslave/unity/build/Modules/UI/CanvasRenderer.cpp:509
    #4 0x0000000100cf3118 in ::DispatchSelfAndAllChildren() at /Users/bokken/buildslave/unity/build/Runtime/Transform/TransformHierarchyChangeDispatch.cpp:357
    #5 0x0000000100cf5c84 in ::SetParent() at /Users/bokken/buildslave/unity/build/Runtime/Transform/Transform.cpp:941
    #6 0x0000000100b5ac40 in ::Transform_CUSTOM_SetParent() at /Users/bokken/buildslave/unity/build/artifacts/iOS/Modules/iOS_arm64_nondev_i_r/Bindings/CoreBindings.gen.cpp:63214

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.