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. Dismiss Notice

iOS app crash at certain point

Discussion in 'iOS and tvOS' started by marvpaul, Apr 12, 2018.

  1. marvpaul

    marvpaul

    Joined:
    May 9, 2016
    Posts:
    26
    I’m developing an iOS game with several plugins / services: unity iap, unity social (Game Center), Everyplay, Google Admob

    The beta running without problems while my iPhone is connected with a stable WiFi connection / fast mobile network.

    Now I tried to play with 64kb/s mobile network and after some time (5 - 80 seconds) the game crash. Same with unstable WiFi connection.

    I don’t use any other internet related stuff, just the plugins mentioned above should communicate over internet. So I guess one of these causes the crash.

    What can I do to prevent this crashes?

    How to debug?

    Here's an example of a log file:

    OS Version: iPhone OS 11.2.6 (15D100)
    Baseband Version: 2.02.04
    Report Version: 104

    Exception Type: EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000001, 0x0000000100e7be14
    Triggered by Thread: 0

    Filtered syslog:
    None found

    Thread 0 name: Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:
    0 speedup 0x0000000100e7be14 0x100e64000 + 97812
    1 speedup 0x000000010138d414 0x100e64000 + 5411860
    2 speedup 0x0000000101dd1cb0 0x100e64000 + 16178352
    3 speedup 0x0000000101dd1c30 0x100e64000 + 16178224
    4 speedup 0x00000001017bd044 0x100e64000 + 9801796
    5 speedup 0x00000001017c1e7c 0x100e64000 + 9821820
    6 speedup 0x00000001016464c4 0x100e64000 + 8266948
    7 speedup 0x00000001016fb204 0x100e64000 + 9007620
    8 speedup 0x0000000101547d54 0x100e64000 + 7224660
    9 speedup 0x0000000100e71ac4 0x100e64000 + 56004
    10 speedup 0x0000000100e719b0 0x100e64000 + 55728
    11 QuartzCore 0x0000000185a8564c CA::Display::DisplayLink::dispatch_items+ 50764 (unsigned long long, unsigned long long, unsigned long long) + 672
    12 IOKit 0x0000000181dc2098 IODispatchCalloutFromCFMessage + 392
    13 CoreFoundation 0x0000000181ae5090 __CFMachPortPerform + 188
    14 CoreFoundation 0x0000000181affe00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
    15 CoreFoundation 0x0000000181aff504 __CFRunLoopDoSource1 + 440
    16 CoreFoundation 0x0000000181afcfd8 __CFRunLoopRun + 2196
    17 CoreFoundation 0x0000000181a1cc58 CFRunLoopRunSpecific + 436
    18 GraphicsServices 0x00000001838c8f84 GSEventRunModal + 100
    19 UIKit 0x000000018b1755c4 UIApplicationMain + 236
    20 speedup 0x0000000100e6a4e0 0x100e64000 + 25824
    21 libdyld.dylib 0x000000018153c56c start + 4



    Another one:

    OS Version: iPhone OS 11.2.6 (15D100)
    Baseband Version: 2.02.04
    Report Version: 104

    Exception Type: EXC_BAD_ACCESS (SIGBUS)
    Exception Subtype: EXC_ARM_DA_ALIGN at 0x0000000000000041
    VM Region Info: 0x41 is not in any region. Bytes before following region: 4340776895
    REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
    UNUSED SPACE AT START
    --->
    __TEXT 0000000102bb0000-00000001040b4000 [ 21.0M] r-x/r-x SM=COW ....app/speedup]

    Triggered by Thread: 16

    Filtered syslog:
    None found

    Thread 0 name: Dispatch queue: com.apple.main-thread
    Thread 0:
    0 libsystem_kernel.dylib 0x000000018164b5a4 semaphore_wait_trap + 8
    1 libdispatch.dylib 0x00000001814d8f04 _dispatch_sema4_wait$VARIANT$mp + 24
    2 libdispatch.dylib 0x00000001814d9e58 _dispatch_group_wait_slow + 196
    3 GameCenterFoundation 0x000000019b970c18 -[GKDispatchGroup _waitWithDispatchTimeout:] + 452
    4 GameCenterFoundation 0x000000019b9327a4 -[GKDaemonProxy authenticatedLocalPlayersWithStatus:] + 136
    5 GameCenterFoundation 0x000000019b8d9e3c -[GKLocalPlayerAuthenticator _handleAuthResponse:error:handler:] + 1428
    6 GameCenterFoundation 0x000000019b8d8de8 __133-[GKLocalPlayerAuthenticator _authenticateUsingAuthUI:authenticationResults:usernameEditable:authUIDismissHandler:completionHandler:]_block_invoke.170 + 1132
    7 CoreFoundation 0x0000000181b5ead0 __invoking___ + 144
    8 CoreFoundation 0x0000000181a3d36c -[NSInvocation invoke] + 292
    9 GameCenterFoundation 0x000000019b94720c -[NSInvocation+ 602636 (GKProxyHelpers) _gkInvokeOnce] + 28
    10 GameCenterFoundation 0x000000019b935564 __53-[GKDaemonProxy connection:handleInvocation:isReply:]_block_invoke + 32
    11 libdispatch.dylib 0x00000001814d6a54 _dispatch_call_block_and_release + 24
    12 libdispatch.dylib 0x00000001814d6a14 _dispatch_client_callout + 16
    13 libdispatch.dylib 0x00000001814e3698 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1016
    14 CoreFoundation 0x0000000181aff344 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
    15 CoreFoundation 0x0000000181afcf20 __CFRunLoopRun + 2012
    16 CoreFoundation 0x0000000181a1cc58 CFRunLoopRunSpecific + 436
    17 GraphicsServices 0x00000001838c8f84 GSEventRunModal + 100
    18 UIKit 0x000000018b1755c4 UIApplicationMain + 236
    19 speedup 0x0000000102bb64e0 0x102bb0000 + 25824
    20 libdyld.dylib 0x000000018153c56c start + 4



    Thanks a lot for any replies!
     
  2. totsboy

    totsboy

    Joined:
    Jul 12, 2013
    Posts:
    253
    I have a very similar log, it's affecting 5% of my user base. So far no luck finding the culprit.

    Using Unity 2017.2.1f. Added crashlog
     

    Attached Files:

    Last edited: Apr 13, 2018
  3. marvpaul

    marvpaul

    Joined:
    May 9, 2016
    Posts:
    26
    What services / plugins do you use?
     
  4. totsboy

    totsboy

    Joined:
    Jul 12, 2013
    Posts:
    253
    I use an internal library for ad mediator and a bunch of libraries like admob, adcolony, amazonAds, Vungle, Unity Ads, Firebase, MobFox, MoPub, Appsflyer, Facebook, AppSee, Fabric, NewRelic