Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android crash #6

Open
vizgl opened this issue May 22, 2024 · 0 comments
Open

Android crash #6

vizgl opened this issue May 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vizgl
Copy link

vizgl commented May 22, 2024

Unity 2020.3.48f1
CompositeCanvasRenderer 1.0.0

I received crash on android. In the developer console I got this:


pid: 0, tid: 22481 >>> com.my.game <<<

backtrace:
#00 pc 0x000000000083a2f4 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (il2cpp::vm::Class::FromIl2CppType(Il2CppType const*, bool)+620) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#01 pc 0x0000000000857588 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (il2cpp::vm::Type::GetTypeFromHandle(long)+1112) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#2 pc 0x00000000015abe8c /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (Type_GetTypeFromHandle_m180706985100778663E9C75D4FC001D367C0120F+23114) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#3 pc 0x000000000096ed20 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (GameObject_TryGetComponent_TisRuntimeObject_mC7639C3E3E2A65695113BCF25718826CC392D6CB_gshared+50634) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#4 pc 0x0000000001a911d0 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (U3CU3Ec_U3CInitializeOnLoadU3Eb__20_0_m3EDDAFAFF9326B868348C64EB1A67F61BF14DA82+15868) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#5 pc 0x0000000000e133e4 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (Action_1_Invoke_m587509C88BB83721D7918D89DF07606BB752D744_gshared+47) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#6 pc 0x0000000001301cb4 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (FastAction_1_Call_mB927B5612809DE54BD50582C401751F281A197EA_gshared+36479) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#07 pc 0x000000000156edc8 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (TextMeshProUGUI_GenerateTextMesh_mA2F8E81A125F189133866F64EF1AE377238BCB9B+21) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#08 pc 0x0000000001569a70 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (TextMeshProUGUI_OnPreRenderCanvas_m87F59A95DCCEFAAAA470E491C6CC6967FF0ACD21+21) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#09 pc 0x0000000001573180 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (TextMeshProUGUI_Rebuild_mF0C1F166FB5B4A7B8E13A590422C1FBC083717D7+35704) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#10 pc 0x00000000010a1f00 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (CanvasUpdateRegistry_PerformUpdate_mC0E85CD761EA6D619AB636E6671CB91DF6605A12+119) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#11 pc 0x0000000001db8f7c /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (WillRenderCanvases_Invoke_mFCD97A3223FD31C109A2B6283ECE7FE307E89282+47) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#12 pc 0x00000000006eca40 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (RuntimeInvoker_FalseVoid_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5(void ()(), MethodInfo const, void*, void**)+137905) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#13 pc 0x000000000084c9b0 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libil2cpp.so (il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)+556) (BuildId: 06b2f0171988ec888bf36bdb351ede1110ac8cc9)
#14 pc 0x000000000061a4f4 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#15 pc 0x000000000061f750 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#16 pc 0x0000000000261f34 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#17 pc 0x0000000000540910 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#18 pc 0x0000000000540944 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#19 pc 0x0000000000540b88 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#20 pc 0x0000000000699b3c /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#21 pc 0x00000000006b0330 /data/app/~~hs1rz9CEojR-U50Q6swbUg==/com.my.game-QY9MNYZ2gcOnJ0R1InzjjQ==/lib/arm64/libunity.so (BuildId: 4565412aacb0f77699b60001b0821a460b259334)
#22 pc 0x0000000000355630 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144)
#23 pc 0x0000000002001128 /memfd:jit-cache

So as I understand, crash appear in this method:

    public class CompositeCanvasProcess
    {
...
#if UNITY_EDITOR
        [InitializeOnLoadMethod]
#else
        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
#endif
        private static void InitializeOnLoad()
        {
#if TMP_ENABLE
            TMPro_EventManager.TEXT_CHANGED_EVENT.Add(obj =>
            {
                if (!(obj is TextMeshProUGUI textMeshProUGUI)) return;
                if (!textMeshProUGUI.TryGetComponent<CompositeCanvasSource>(out var source)) return;
                if (!source || !source.isActiveAndEnabled) return;
                if (!source.renderer || !source.renderer.isActiveAndEnabled) return;

                textMeshProUGUI.mesh.CopyTo(source.mesh);

                var subMeshes = ListPool<TMP_SubMeshUI>.Rent();
                textMeshProUGUI.GetComponentsInChildren(subMeshes);
                foreach (var subMesh in subMeshes)
                {
                    if (!subMesh.TryGetComponent<CompositeCanvasSource>(out var subSource)) continue;
                    subMesh.mesh.CopyTo(subSource.mesh);
                }

                ListPool<TMP_SubMeshUI>.Return(ref subMeshes);
            });
#endif
        }
...
}
@vizgl vizgl added the bug Something isn't working label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants