Search Issue Tracker
Fixed
Fixed in 2021.3.22f1, 2022.3.3f1, 2023.1.0b10, 2023.2.0a7
Votes
15
Found in
2018.4.23f1
2021.3.4f1
2022.1.19f1
2023.1.0a6
2023.2.0a1
Issue ID
UUM-11111
Regression
No
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/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.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Unsupported texture format R16 for a swizzle" error and texture is not correctly rendered when using texture Swizzle and reimporting texture asset
- Tab order is incorrect after re-ordering
- [Ubuntu] Red squares instead of ticks in dropdown options
- Multiple simultaneous input with the touch screen sometimes leaves button in not default state
- Crash on ShowDelayedContextMenu(bool) when changing the Size options of a Visual Element in the UIToolkit Inspector
recaeee2001
Sep 18, 2023 13:18
@Studiozoo hello, my crash stack is similar to yours.And it was reported by remote players, so I want to reproduct it. How did you reproduct your crash stack that contains log like "::OnParentingChanged"?
JoJoJoX
Nov 30, 2022 09:25
same issues here on Unity 2021.3.11f1
0
libunity.so
UI::MarkParentCanvasDirtyAsNeeded(UI::Canvas*)
1
libunity.so
UI::CanvasRenderer::OnParentingChanged()
2
libunity.so
UI::CanvasRenderer::UpdateParentHierarchy()
3
libunity.so
UI::CanvasRenderer::UpdateParentHierarchyChange(TransformAccess const*, unsigned int)
4
libunity.so
TransformHierarchyChangeDispatch::DispatchSelfAndAllChildren(TransformAccess, TransformHierarchyChangeDispatch::InterestType)
5
libunity.so
Transform::SetParent(Transform*, Transform::SetParentOption)
6
libunity.so
Transform_CUSTOM_SetParent(ScriptingBackendNativeObjectPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*, unsigned char)
P4ndemic
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:
riccardovarenna@hotmail.de
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