Search Unity

HELP | GRPC on android

Discussion in 'Android' started by mamaorha, May 28, 2021.

  1. mamaorha

    mamaorha

    Joined:
    Jun 16, 2015
    Posts:
    44
    Hi, im trying to launch my game on android and it seems that it doesnt go well with GRPC but i cant figure out why.
    in logcat i see something like:

    Code (CSharp):
    1. 05-28 10:53:22.344  7821  7840 I Unity   : LobbyGrpcClient created singleton (DontDestroyOnLoad)
    2. 05-28 10:53:22.344  7821  7840 I Unity   : UnityEngine.Logger:Log(LogType, Object)
    3. 05-28 10:53:22.344  7821  7840 I Unity   : LobbyGrpcClient:InitializeSingleton()
    4. 05-28 10:53:22.344  7821  7840 I Unity   :
    5. 05-28 10:53:22.355  7821  7840 E CRASH   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    6. 05-28 10:53:22.355  7821  7840 E CRASH   : Version '2020.3.3f1 (76626098c1c4)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
    7. 05-28 10:53:22.356  7821  7840 E CRASH   : Build fingerprint: 'samsung/dream2qltezh/dream2qltechn:7.1/N2G48H/G9550ZHU1AQEE:user/release-keys'
    8. 05-28 10:53:22.356  7821  7840 E CRASH   : Revision: '12'
    9. 05-28 10:53:22.356  7821  7840 E CRASH   : ABI: 'arm'
    10. 05-28 10:53:22.357  7821  7840 E CRASH   : Timestamp: 2021-05-28 10:53:22+0300
    11. 05-28 10:53:22.357  7821  7840 E CRASH   : pid: 7821, tid: 7840, name: UnityMain  >>> com.nmh.UltimateTowerDefense <<<
    12. 05-28 10:53:22.357  7821  7840 E CRASH   : uid: 10045
    13. 05-28 10:53:22.357  7821  7840 E CRASH   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    14. 05-28 10:53:22.357  7821  7840 E CRASH   :     r0  00000001  r1  00000017  r2  00000001  r3  c47a7650
    15. 05-28 10:53:22.357  7821  7840 E CRASH   :     r4  00000001  r5  a44454d0  r6  a5faa738  r7  00000013
    16. 05-28 10:53:22.358  7821  7840 E CRASH   :     r8  a5faa7a8  r9  a5faa7a0  r10 00000003  r11 a5faa700
    17. 05-28 10:53:22.358  7821  7840 E CRASH   :     ip  0706d66c  sp  a5faa700  lr  06263f60  pc  0c4175b4
    18. 05-28 10:53:22.358  7821  7840 E CRASH   :
    19. 05-28 10:53:22.358  7821  7840 E CRASH   : backtrace:
    20. 05-28 10:53:22.359  7821  7840 E CRASH   :       #00 pc 000175b4  /system/lib/arm/nb/libc.so
    21. 05-28 10:53:22.360  7821  7840 E CRASH   :       #01 pc 00245a9c  /data/app/com.nmh.UltimateTowerDefense-2/lib/arm/libil2cpp.so (BuildId: 7e034123d7ee607a1532e028dfc730a664276be3)
    22. 05-28 10:53:22.513  7821  7840 E CRASH   : Tombstone written to: /storage/emulated/0/Android/data/com.nmh.UltimateTowerDefense/files/tombstone_01
    23. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: FATAL EXCEPTION: UnityMain
    24. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Process: com.nmh.UltimateTowerDefense, PID: 7821
    25. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: java.lang.Error: FATAL EXCEPTION [UnityMain]
    26. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Unity version     : 2020.3.3f1
    27. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Device model      : samsung SM-G973N
    28. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Device fingerprint: samsung/beyond1qlteue/beyond1q:7.1.2/PPR1.190810.011/700201208:user/release-keys
    29. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Build Type        : Release
    30. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Scripting Backend : IL2CPP
    31. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: ABI               : armeabi-v7a
    32. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Strip Engine Code : true
    33. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:
    34. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    35. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Version '2020.3.3f1 (76626098c1c4)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
    36. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Build fingerprint: 'samsung/dream2qltezh/dream2qltechn:7.1/N2G48H/G9550ZHU1AQEE:user/release-keys'
    37. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Revision: '12'
    38. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: ABI: 'arm'
    39. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: Timestamp: 2021-05-28 10:53:22+0300
    40. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: pid: 7821, tid: 7840, name: UnityMain  >>> com.nmh.UltimateTowerDefense <<<
    41. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: uid: 10045
    42. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    43. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:     r0  00000001  r1  00000017  r2  00000001  r3  c47a7650
    44. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:     r4  00000001  r5  a44454d0  r6  a5faa738  r7  00000013
    45. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:     r8  a5faa7a8  r9  a5faa7a0  r10 00000003  r11 a5faa700
    46. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:     ip  0706d66c  sp  a5faa700  lr  06263f60  pc  0c4175b4
    47. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:
    48. 05-28 10:53:22.514  7821  7840 E AndroidRuntime: backtrace:
    49. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:       #00 pc 000175b4  /system/lib/arm/nb/libc.so
    50. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:       #01 pc 00245a9c  /data/app/com.nmh.UltimateTowerDefense-2/lib/arm/libil2cpp.so (BuildId: 7e034123d7ee607a1532e028dfc730a664276be3)
    51. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:
    52. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:        at libc.0x175b4(Native Method)
    53. 05-28 10:53:22.514  7821  7840 E AndroidRuntime:        at libil2cpp.0x245a9c(Native Method)
    54. 05-28 10:53:22.514  2171  2285 W ActivityManager:   Force finishing activity com.nmh.UltimateTowerDefense/com.unity3d.player.UnityPlayerActivity
    why the error is masked as "***"?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    Try resolving this stacktrace
    1. 05-28 10:53:22.360 7821 7840 E CRASH : #01 pc 00245a9c /data/app/com.nmh.UltimateTowerDefense-2/lib/arm/libil2cpp.so (BuildId: 7e034123d7ee607a1532e028dfc730a664276be3)

    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** is not a masked error, this was probably a splitter printed incorrectly
     
  3. mamaorha

    mamaorha

    Joined:
    Jun 16, 2015
    Posts:
    44
    How? I have no knowlwdge how unity compile the libil2cpp.so file
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
  5. mamaorha

    mamaorha

    Joined:
    Jun 16, 2015
    Posts:
    44
    thanks! i assume that package will be really helpful for me :).
    i think that in the current case (since i use a dll of GRPC) the "Resolve" isn't informative (need their symbols?) i get something like

    Code (CSharp):
    1. 05-28 10:53:22.360 7821 7840 E CRASH : #01 pc 00245a9c (il2cpp::os::LibraryLoader::LoadDynamicLibraryImpl(il2cpp::utils::StringView<char> const&, int) at E:\Program Files\Unity\2020.3.3f1\Editor\Data\il2cpp\libil2cpp\os\Posix/LibraryLoader.cpp:179) /data/app/com.nmh.UltimateTowerDefense-2/lib/arm/libil2cpp.so (BuildId: 7e034123d7ee607a1532e028dfc730a664276be3)
    2.  
     
  6. mamaorha

    mamaorha

    Joined:
    Jun 16, 2015
    Posts:
    44
    upgraded to latest version of grpc + regenerated files with latest tools - it works! thanks
     
    Tomas1856 likes this.
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    I think it should still help you, since if it's a managed dll, it's still possible to resolve function names.