Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

SIGSEGV in garbage collection

Discussion in 'Android' started by andrew-fray, Apr 1, 2015.

  1. andrew-fray

    andrew-fray

    Joined:
    Jul 19, 2012
    Posts:
    149
    We've got a title in soft launch now. We're seeing an ocassional crash with the callstack below - a few a day with a DAU of over 150. The crash doesn't seem common to any particular android version or device. There are lots of samsungs affected, but that could just be demographics.

    Since this is GC, I guess it could be out-of-memory. But the callstack mentions cleanup, not allocating. We're currently shipping only standard texture format, rather that multiple APKs; I have no idea if that's related.

    Has anyone seen this before? Can you decypher the runes?

    Code (csharp):
    1. Error: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 6d299ff0 Build fingerprint: 'htc/v01_htc_telus/htc_v01_u:4.4.2/KOT49H/1.02.661.6:user/release-keys' Revision: '0' pid: 12019, tid: 12043, name: main >>> com.spryfox.alphabear <<< r0 6d299ff0 r1 6d29a000 r2 fffffe5c r3 6d29a000 r4 6d299ff0 r5 00000001 r6 6d299ffc r7 7340b774 r8 609e15e0 r9 61f60f60 sl 62061688 fp 6205e8fc ip 61216ed0 sp 6205e8d0 lr 6113201c pc 61131f8c cpsr 48393454
    2.  libmono.002c8f8c:-2
    3.  libmono.GC_push_all_stack in GC_push_all_stack:72
    4.  libmono.002d4618:-2
    5.  libmono.002d46e8:-2
    6.  libmono.002ce770:-2
    7.  libmono.002cad8c:-2
    8.  libmono.002c7364:-2
    9.  libmono.002bd2f4:-2
    10.  libmono.002bcd38:-2
    11.  libmono.002bdb9c:-2
    12.  libmono.002bdc3c:-2
    13.  libmono.mono_gc_collect in mono_gc_collect:40
    14.  libmono.mono_domain_finalize in mono_domain_finalize:96
    15.  libmono.00026ad8:-2
    16.  libmono.mono_jit_cleanup in mono_jit_cleanup:20
    17.  libunity.0020c16c:-2
    18.  libunity.002a2338:-2
    19.  libunity.003d1f2c:-2
    20.  libunity.003daad0:-2
    21.  libdvm.dvmPlatformInvoke in dvmPlatformInvoke:112
    22.  libdvm.dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*) in dvmCallJNIMethod:484
    23.  libdvm.00027c68:-2
    24.  libdvm.dvmMterpStd(Thread*) in dvmMterpStd:76
    25.  libdvm.dvmInterpret(Thread*, Method const*, JValue*) in dvmInterpret:188
    26.  libdvm.dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list) in dvmCallMethodV:340
    27.  libdvm.dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...) in dvmCallMethod:20
    28.  libdvm.00057b01:-2
    29.  libc.__thread_entry in __thread_entry:72
    30.  
     
  2. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    Not sure if it helps but I think mono_jit_cleanup should only get called during shutdown.
     
  3. andrew-fray

    andrew-fray

    Joined:
    Jul 19, 2012
    Posts:
    149
    going to do one little cheeky bump. any anyone seen this before? or got a reference that it's only an issue when shutting down?
     
  4. arzi

    arzi

    Joined:
    Apr 6, 2009
    Posts:
    154
    We just had a very similar looking crash. Did you solve this? We had some trouble with texture compression earlier, so it might be related, but it's hard to know for sure.
     
  5. florianpenzkofer

    florianpenzkofer

    Unity Technologies

    Joined:
    Sep 2, 2014
    Posts:
    479
    We back-ported a fix for a GC shutdown crash to Unity 4.6 but that didn't fix Andrew's issue.
    We did not have a repro project for the bug, so it is not fixed.
     
  6. mmitang

    mmitang

    Joined:
    May 27, 2013
    Posts:
    11
    i also have this issue!!!!