Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Unity 2019 Android build crashes on devices using Adreno 506 GPU

Discussion in 'Android' started by wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg, Jul 18, 2019.

  1. wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg

    wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg

    Joined:
    Nov 1, 2018
    Posts:
    3
    After we upgraded our game from Unity 2018.2.21 to Unity 2019.1.*, we found a lot of crashes on Firebase Crashlytics.

    upload_2019-7-18_14-3-52.png

    upload_2019-7-18_14-4-7.png


    Caused by java.lang.Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 83f5ff90
    Build fingerprint: 'motorola/potter_amx_n/potter_n:8.1.0/OPSS28.85-13-5/2f72:user/release-keys'
    Revision: 'p3b0'
    pid: 2589, tid: 2681, name: UnityMain >>> com.casualjoygames.cooking.kitchen <<<
    r0 48e1b285 r1 48e09801 r2 40e24083 r3 00000000
    r4 00000002 r5 83f5ff90 r6 84060000 r7 00020040
    r8 00000000 r9 84069000 sl 00000000 fp 0001ffff
    ip 10020002 sp 9597f2b0 lr 63720600 pc a189f56c cpsr b07c2d10

    at libGLESv2_adreno.A5xContext::HwPatchForDirectRendering(EsxRenderBucket*, EsxLinkedList*, unsigned int) + 4263(HwPatchForDirectRendering:4263)
    at libGLESv2_adreno.EsxContext::processAndSubmitRendering(EsxFlushReason) + 6206(ProcessAndSubmitRendering:6206)
    at libGLESv2_adreno.EsxCmdMgr::Flush(EsxFlushReason) + 312(Flush:312)
    at libGLESv2_adreno.EsxMemPoolGeneral::GetMemory(unsigned long long, EsxMemType, unsigned int, EsxMemPoolGeneralAllocation*) + 530(GetMemory:530)
    at libGLESv2_adreno.EsxGfxMem::Init(EsxGfxMemCreateData*) + 830(Init:830)
    at libGLESv2_adreno.EsxResource::AllocGfxMemForRange(EsxContext*, EsxSubResourceRange const*) + 1010(AllocGfxMemForRange:1010)
    at libGLESv2_adreno.EsxResource::preparePackedGpuAccess(EsxContext*, EsxSubResourceRange const*) + 658(PreparePackedGpuAccess:658)
    at libGLESv2_adreno.EsxTextureObject::preRenderProcessing(EsxContext*) + 100(PreRenderProcessing:100)
    at libGLESv2_adreno.EsxContext::ValidateProgramTexUnitBoundObjs(EsxProgram*, int) + 2240(ValidateProgramTexUnitBoundObjs:2240)
    at libGLESv2_adreno.EsxContext::ValidateTexUnitBoundObjs() + 44(ValidateTexUnitBoundObjs:44)
    at libGLESv2_adreno.EsxContext::ValidateGfxState(EsxDrawDescriptor const*) + 1442(ValidateGfxState:1442)
    at libGLESv2_adreno.EsxContext::DrawElementsInstanced(EsxPrimType, unsigned int, EsxPixType, void const*, unsigned int, int) + 652(DrawElementsInstanced:652)
    at libGLESv2_adreno.EsxGlApiParamValidate::GlDrawElements(EsxDispatch*, unsigned int, int, unsigned int, void const*) + 180(GlDrawElements:180)
    at libGLESv2_adreno.glDrawElements + 40(glDrawElements:40)
    at libunity.0075daf0()
    at libunity.0075dca4()
    at libunity.00246228()
    at libunity.00762c38()
    at libunity.0020683c()
    at libunity.005b5c34()
    at libunity.00246b9c()
    at libunity.0024b19c()
    at libunity.00206688()
    at libunity.00249c60()
    at libunity.0024b600()
    at libunity.0024c7a8()
    at libunity.002616b0()
    at libunity.0029e58c()
    at libunity.0029fa48()
    at libunity.002a8c40()
    at libunity.003f2fb8()
    at libunity.003fb52c()


    We found that all devices reporting this issue is made with adreno 506 and Android 8.

    Anyone knows how to prevent this kind of crash?
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    851
    Yes, please submit a bug report.
     
  3. jsmits062

    jsmits062

    Joined:
    Jul 16, 2014
    Posts:
    5
    We have the exact same issue running 2018.4.2f1:

    libESXGLESv2_adreno.A5xContext::HwPatchForDirectRendering(EsxRenderBucket*, EsxLinkedList*, unsigned int) + 4155 (HwPatchForDirectRendering:4155)

    libESXGLESv2_adreno.EsxContext::processAndSubmitRendering(EsxFlushReason) + 6140 (ProcessAndSubmitRendering:6140)

    libESXGLESv2_adreno.EsxCmdMgr::Flush(EsxFlushReason) + 312 (Flush:312)

    libESXGLESv2_adreno.EsxMemPoolGeneral::GetMemory(unsigned long long, EsxMemType, unsigned int, EsxMemPoolGeneralAllocation*) + 530 (GetMemory:530)

    libESXGLESv2_adreno.EsxGfxMem::Init(EsxGfxMemCreateData*) + 830 (Init:830)

    libESXGLESv2_adreno.EsxResource::AllocGfxMemForRange(EsxContext*, EsxSubResourceRange const*) + 1012 (AllocGfxMemForRange:1012)

    libESXGLESv2_adreno.EsxResource::preparePackedGpuAccess(EsxContext*, EsxSubResourceRange const*) + 662 (PreparePackedGpuAccess:662)

    libESXGLESv2_adreno.EsxTextureObject::preRenderProcessing(EsxContext*) + 100 (PreRenderProcessing:100)

    libESXGLESv2_adreno.EsxContext::ValidateProgramTexUnitBoundObjs(EsxProgram*, int) + 2240 (ValidateProgramTexUnitBoundObjs:2240)

    libESXGLESv2_adreno.EsxContext::ValidateTexUnitBoundObjs() + 44 (ValidateTexUnitBoundObjs:44)

    libESXGLESv2_adreno.EsxContext::ValidateGfxState(EsxDrawDescriptor const*) + 1422 (ValidateGfxState:1422)

    libESXGLESv2_adreno.EsxContext::DrawElementsInstanced(EsxPrimType, unsigned int, EsxPixType, void const*, unsigned int, int) + 648 (DrawElementsInstanced:648)

    libESXGLESv2_adreno.EsxGlApiParamValidate::GlDrawElements(EsxDispatch*, unsigned int, int, unsigned int, void const*) + 180 (GlDrawElements:180)

    libESXGLESv2_adreno.glDrawElements + 40 (glDrawElements:40)

    libunity.006e85e4 0

    libunity.006e8798 0

    libunity.0020317c 0

    libunity.006ed394 0

    libunity.0079b8e0 0

    libunity.0079c1f8 0

    libunity.007943f0 0

    libunity.0036ea9c 0

    libc.__pthread_start(void*) + 22 (__pthread_start:22)

    libc.__start_thread + 32 (__start_thread:32)
     
  4. wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg

    wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg

    Joined:
    Nov 1, 2018
    Posts:
    3

    I have submitted a bug report. https://fogbugz.unity3d.com/default.asp?1170442_97fgis6elcqo1arm

    I cannot reproduce this crash often, but got thousands of crashes report from Crashlytics.
     
  5. wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg

    wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg

    Joined:
    Nov 1, 2018
    Posts:
    3
    the bug report id is 1170442
     
  6. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    851
    Thank you!
     
  7. gbyh

    gbyh

    Joined:
    Apr 19, 2014
    Posts:
    5
    @wechat_os_Qy0_ucgtZZGwzEg8o45wVEmEg
    Can I have your test demo that you had submitted to the bug report?
    We have been experiencing the same crashes a long time but it's very hard to reproduce from our project.