Search Issue Tracker
Fixed in 2021.3.22f1, 2023.1.0b10, 2023.2.0a7
In Progress in 2022.3.X
Crash when accessing transform component after calling Resources.UnloadUnusedAssets()
# 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/com.mc.test E/CRASH: pid: 29063, tid: 29093, name: UnityMain >>> com.mc.test <<<
29063-29093/com.mc.test E/CRASH: uid: 10473
29063-29093/com.mc.test E/CRASH: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
29063-29093/com.mc.test E/CRASH: Cause: null pointer dereference
Reproducible with: 2018.4.23f1, 2021.3.4f1, 2022.1.19f1c1, 2023.1.0a6.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- GameObject doesn't execute animation the way it's supposed to until any GameObject in the Hierarchy is selected when in the Play Mode
- PropertyField does not properly render its field when changing it back from a valid Asset to "None"
- "ArgumentException: Input Button Enable Debug Button 1 is not set" is thrown when "Enable Debug Button 1" is deleted
- Duplicate invocations when Enabling InputActions during handling an input action
- "Assertion failed on expression" exceptions are thrown when using IJobParallelForTransformExtensions.RunReadOnly
Nov 30, 2022 09:25
same issues here on Unity 2021.3.11f1
UI::CanvasRenderer::UpdateParentHierarchyChange(TransformAccess const*, unsigned int)
Transform_CUSTOM_SetParent(ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*, unsigned char)
Nov 07, 2022 22:33
@Studiozoo your stack trace shows cpp files with line numbers, what's your setup like to get such a good strack trace?
We're a studio that regularly runs into issues and need to wait for the new releases to make it to production, so it would be really useful to have those detailed stack traces to narrow down issues.
I don't know how to message you on here, so feel free to send me an email at:
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