Search Unity

App crash after relaunch from the icon.

Discussion in 'Android' started by geniusz, Jan 16, 2017.

  1. geniusz

    geniusz

    Joined:
    Nov 21, 2014
    Posts:
    38
    Steps:
    1. Build and install the project in the attachment.
    2. Tap "Open" in the installation view to launch the app and wait it enter the default scene.
    3. Press the home buttom.
    4. Then press the app icon again, it will crash.

    This is a very simple project. I don't know what's wrong with it.
     

    Attached Files:

    Last edited: Jan 17, 2017
  2. geniusz

    geniusz

    Joined:
    Nov 21, 2014
    Posts:
    38
    The backtraces

    01-17 11:08:10.102: I/DEBUG(284): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    01-17 11:08:10.103: I/DEBUG(284): Build fingerprint: 'Sony/C6603/C6603:5.0.2/10.6.A.0.454/266452109:user/release-keys'
    01-17 11:08:10.103: I/DEBUG(284): Revision: '0'
    01-17 11:08:10.103: I/DEBUG(284): ABI: 'arm'
    01-17 11:08:10.103: I/DEBUG(284): pid: 26967, tid: 27986, name: UnityMain >>> com.xyz.test <<<
    01-17 11:08:10.103: I/DEBUG(284): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x50
    01-17 11:08:10.146: I/DEBUG(284): r0 00000000 r1 b74441f8 r2 00000001 r3 00000000
    01-17 11:08:10.146: I/DEBUG(284): r4 00000001 r5 00000000 r6 00000000 r7 00184adc
    01-17 11:08:10.146: I/DEBUG(284): r8 32cc3be0 r9 b7265740 sl 32cc3b90 fp a18148ec
    01-17 11:08:10.146: I/DEBUG(284): ip afc79c30 sp a18148c8 lr afadd9a8 pc afad6a14 cpsr a0010010
    01-17 11:08:10.148: I/DEBUG(284): backtrace:
    01-17 11:08:10.150: I/DEBUG(284): #00 pc 001efa14 /data/app/com.xyz.test-2/lib/arm/libmono.so
    01-17 11:08:10.151: I/DEBUG(284): #01 pc 001f69a4 /data/app/com.xyz.test-2/lib/arm/libmono.so (mono_array_new+116)
    01-17 11:08:10.152: I/DEBUG(284): #02 pc 006ab1dc /data/app/com.xyz.test-2/lib/arm/libunity.so (AndroidDisplayManager::Update()+184)
    01-17 11:08:10.153: I/DEBUG(284): #03 pc 006b00c0 /data/app/com.xyz.test-2/lib/arm/libunity.so (UnityPlayerLoop()+96)
    01-17 11:08:10.153: I/DEBUG(284): #04 pc 006b3700 /data/app/com.xyz.test-2/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+264)
    01-17 11:08:10.154: I/DEBUG(284): #05 pc 0000843f /data/dalvik-cache/arm/data@app@com.xyz.test-2@base.apk@classes.dex
     
  3. geniusz

    geniusz

    Joined:
    Nov 21, 2014
    Posts:
    38
    I notice that the problem only occurs at the first time I launch the app after the installation.
    If I terminate the app and launch it again, the problem disappers.
    I don't know how to add this to the issue tracker.
     
  4. RebBananana

    RebBananana

    Joined:
    Oct 18, 2017
    Posts:
    1
    VR0IMLWB9G6%9WGX6HX6A$5.png
    Do not ommented out this line
     
  5. Richie9527

    Richie9527

    Joined:
    Jan 18, 2018
    Posts:
    1
    Try to add 'singleTask' launchMode for your entrance activity