Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Help Wanted Crash java.lang.Error

Discussion in 'Android' started by tungdv_unity, May 9, 2021.

  1. tungdv_unity

    tungdv_unity

    Joined:
    May 31, 2020
    Posts:
    23
    Hi,i have released an app on the play store and i get many time the same error, lot of user can't play my game and i really don't know what to do, many thanks for any help.
    I am using unity version 2020. 3. 2f1.
    Code (CSharp):
    1. java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    2. Version '2020.3.2f1 (8fd9074bf66c)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
    3. Build fingerprint: 'samsung/j4corelteub/j4corelte:8.1.0/M1AJB/J410GUBS1ATL1:user/release-keys'
    4. Revision: '6'
    5. ABI: 'arm'
    6. Timestamp: 2021-05-09 14:02:22-0300
    7. pid: 14713, tid: 15021, name: UnityGfxDeviceW  >>> com.os.space.force.galaxy.alien <<<
    8. uid: 10117
    9. signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7c
    10. Cause: null pointer dereference
    11.     r0  00000084  r1  0000007c  r2  00d00000  r3  00000000
    12.     r4  00000000  r5  00d00000  r6  896ad000  r7  00000002
    13.     r8  000c7930  r9  0077c2c8  r10 77a00040  r11 00000000
    14.     ip  952ba2ed  sp  777bf680  lr  952b9fb7  pc  952fb4da
    15.  
    16. backtrace:
    17.       #00 pc 000f74da  /vendor/lib/egl/libRBGLESv2_adreno.so (rb_vbo_getptr+38)
    18.       #01 pc 000b5fb3  /vendor/lib/egl/libRBGLESv2_adreno.so (stream_buffer_object+46)
    19.       #02 pc 000b64f3  /vendor/lib/egl/libRBGLESv2_adreno.so (core_glFlushMappedBufferRange+518)
    20.       #03 pc 00305ed0  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    21.       #04 pc 003143b4  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    22.       #05 pc 0031430c  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    23.       #06 pc 004864dc  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    24.       #07 pc 0048668c  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    25.       #08 pc 004ab2a8  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    26.       #09 pc 008bf9d1  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    27.       #10 pc 008c02b3  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    28.       #11 pc 008b9ccb  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    29.       #12 pc 0024337f  /mnt/asec/com.os.space.force.galaxy.alien-1/lib/arm/libunity.so (BuildId: fb3cb14e6bfbdb17c374e3d16efad4ca3679f9bb)
    30.       #13 pc 000479df  /system/lib/libc.so (__pthread_start(void*)+22) (BuildId: 479be3f158d10cab6008353bc753cedc)
    31.       #14 pc 0001b2dd  /system/lib/libc.so (__start_thread+32) (BuildId: 479be3f158d10cab6008353bc753cedc)
    32.  
    33.         at libRBGLESv2_adreno.rb_vbo_getptr(rb_vbo_getptr:38)
    34.         at libRBGLESv2_adreno.stream_buffer_object(stream_buffer_object:46)
    35.         at libRBGLESv2_adreno.core_glFlushMappedBufferRange(core_glFlushMappedBufferRange:518)
    36.         at libunity.0x305ed0(Unknown:-2)
    37.         at libunity.0x3143b4(Unknown:-2)
    38.         at libunity.0x31430c(Unknown:-2)
    39.         at libunity.0x4864dc(Unknown:-2)
    40.         at libunity.0x48668c(Unknown:-2)
    41.         at libunity.0x4ab2a8(Unknown:-2)
    42.         at libunity.0x8bf9d1(Unknown:-2)
    43.         at libunity.0x8c02b3(Unknown:-2)
    44.         at libunity.0x8b9ccb(Unknown:-2)
    45.         at libunity.0x24337f(Unknown:-2)
    46.         at libc.__pthread_start(void*)(__pthread_start:22)
    47.         at libc.__start_thread(__start_thread:32)
     
    Last edited: May 11, 2021
  2. tungdv_unity

    tungdv_unity

    Joined:
    May 31, 2020
    Posts:
    23
    I use the Stacktrace Utility, and here are the results. any one help me
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      157.4 KB
      Views:
      16
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,673
  4. tungdv_unity

    tungdv_unity

    Joined:
    May 31, 2020
    Posts:
    23
    Thank for your reply. I've checked out your link and follow its instruction.
    The "Strip Engine Code" in my project has been enabled. Before I build the apk, I enabled the "Create symbols.zip" in the Build Setting. After that, I unzipped that file.
    In "Stacktrace Utility", I configure symbol paths, then pick custom location, and finally link it to the unzip folder from before. Resolver stacktrace, here is the result. Is it correct?
     

    Attached Files:

    • 2.PNG
      2.PNG
      File size:
      24.1 KB
      Views:
      22
    • 3.JPG
      3.JPG
      File size:
      149.3 KB
      Views:
      18
    Last edited: May 11, 2021
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,673
    Since your app is ARMv7, I wouldn't select ARM64 symbols. I think that may be the reason why your stacktrace still looks wrong.
     
  6. tungdv_unity

    tungdv_unity

    Joined:
    May 31, 2020
    Posts:
    23
    I deselected "ARM64 symbols", and here is the result, is it done correctly? If it is correct, please give me some advice to resolve this error.
     

    Attached Files:

    • 4.JPG
      4.JPG
      File size:
      115.3 KB
      Views:
      12
  7. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,673
    Still looks wrong, could you attach full logcat from your app?
     
  8. tungdv_unity

    tungdv_unity

    Joined:
    May 31, 2020
    Posts:
    23
    I can't give you full logcat because I don't know the steps which cause the errors. I have configured symbol paths again and here's the result (with pictures attached below). If it's not correct, then how to Configure Symbol Paths right. I use the Strip Engine Code.
     

    Attached Files:

    • 5.JPG
      5.JPG
      File size:
      34.1 KB
      Views:
      19
    • 6.JPG
      6.JPG
      File size:
      128 KB
      Views:
      12
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,673
    The logcat contains info about what kind of configuration was used for your app. The stacktrace looks incorrect again, you selected ARM64, but your stacktrace is from ARMv7 app. Also you select libunity.so symbol from Unity installation, but if Strip Engine Code is On, the symbols should be picked from symbol zip package next to your app.

    If you want to use libunity.so symbols from installation, set Strip Engine Code to Off.
     
    tungdv_unity likes this.
  10. tungdv_unity

    tungdv_unity

    Joined:
    May 31, 2020
    Posts:
    23
    I'm sorry, my fault. I have configured symbol paths again and here's the result. May be it's correct
     

    Attached Files:

    • 1.JPG
      1.JPG
      File size:
      34.2 KB
      Views:
      11
    • 2.JPG
      2.JPG
      File size:
      122.5 KB
      Views:
      9
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,673
    Still looks incorrect...
     
    tungdv_unity likes this.
  12. tungdv_unity

    tungdv_unity

    Joined:
    May 31, 2020
    Posts:
    23
    Dear Tomas1856, thanks for your reply! But one more question, how can I upload my symbols.zip which size is 2GB when the limit of Google is only 300mb? I followed this guide "https://docs.unity3d.com/2021.1/Documentation/Manual/android-symbols.html" but it didn't help at all. Please give me some advice. Thank you!
     
  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    2,673
unityunity