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

Google Cardboard signal 11 (SIGSEGV) error

Discussion in 'AR/VR (XR) Discussion' started by Dosukkoi, Jan 24, 2016.

  1. Dosukkoi

    Dosukkoi

    Joined:
    Jan 24, 2016
    Posts:
    6
    Hello, I use Google Cardboard SDK (0.6) in my Android application.
    But when I resume the Cardboard app, sometimes it crash.

    This is a Android Home Applcation.
    My app include
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.HOME"/>
    in AndroidManifest.xml

    So, when I click the home button, it crash.

    Here is my crash log.

    01-24 11:37:44.984 907 907 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    01-24 11:37:44.984 907 907 F DEBUG : Build fingerprint: '/16022211800f6:userdebug/test-keys'
    01-24 11:37:44.984 907 907 F DEBUG : Revision: '6'
    01-24 11:37:44.984 907 907 F DEBUG : ABI: 'arm'
    01-24 11:37:44.985 907 907 F DEBUG : pid: 8976, tid: 9472, name: UnityMain >>> com.company.app <<<
    01-24 11:37:44.985 907 907 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xdc
    01-24 11:37:45.127 907 907 F DEBUG : r0 00000000 r1 00000001 r2 db218a30 r3 00000000
    01-24 11:37:45.128 907 907 F DEBUG : r4 ef26ec1c r5 d70c30e8 r6 db2183c8 r7 db218510
    01-24 11:37:45.128 907 907 F DEBUG : r8 f3978401 r9 db218510 sl 00000001 fp db21832c
    01-24 11:37:45.128 907 907 F DEBUG : ip db218a90 sp db2181b8 lr ef162c38 pc eeeff050 cpsr a00e0010
    01-24 11:37:45.156 907 907 F DEBUG :
    01-24 11:37:45.156 907 907 F DEBUG : backtrace:
    01-24 11:37:45.156 907 907 F DEBUG : #00 pc 00021050 /data/app/com.company.app-2/lib/arm/libmono.so
    01-24 11:37:45.156 907 907 F DEBUG : #01 pc 001f2644 /data/app/com.company.app-2/lib/arm/libmono.so (mono_runtime_invoke+136)
    01-24 11:37:45.156 907 907 F DEBUG : #02 pc 002b1aec /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.156 907 907 F DEBUG : #03 pc 0035bf18 /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.157 907 907 F DEBUG : #04 pc 0035beec /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.157 907 907 F DEBUG : #05 pc 0029cf54 /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.157 907 907 F DEBUG : #06 pc 000bd228 /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.157 907 907 F DEBUG : #07 pc 002f32dc /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.157 907 907 F DEBUG : #08 pc 002f9a50 /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.158 907 907 F DEBUG : #09 pc 00492328 /data/app/com.company.app-2/lib/arm/libunity.so
    01-24 11:37:45.158 907 907 F DEBUG : #10 pc 0043aafb /data/app/com.company.app-2/oat/arm/base.odex (offset 0x41a000)
    01-24 11:37:45.158 907 907 F DEBUG : oat stack:
    01-24 11:37:45.203 907 907 F DEBUG : #10 pc = 0xdc5d6afb JNI Stub method
    01-24 11:37:45.203 907 907 F DEBUG : CODE OFFSET = 00439aad, CODE SIZE = 120, FRAME SIZE = 112, METHOD_START = 0xdc5d6aad, c=0, add_stack=0
    01-24 11:37:45.220 907 907 F DEBUG : #11 pc = 0xdc5d4d1d void com.unity3d.player.UnityPlayer.a(com.unity3d.player.UnityPlayer, boolean)
    01-24 11:37:45.220 907 907 F DEBUG : CODE OFFSET = 00437ce5, CODE SIZE = 78, FRAME SIZE = 32, METHOD_START = 0xdc5d4ce5, c=0, add_stack=0
    01-24 11:37:45.229 907 907 F DEBUG : #12 pc = 0xdc5d24f7 void com.unity3d.player.UnityPlayer$17.run()
    01-24 11:37:45.229 907 907 F DEBUG : CODE OFFSET = 004354bd, CODE SIZE = 76, FRAME SIZE = 32, METHOD_START = 0xdc5d24bd, c=0, add_stack=0
    01-24 11:37:45.237 2932 3587 W PowerHint: [Perf] boostCancelIfNeededInternal [start] : topPackageName = com.company.app / lastPackageName = com.company.appother
    01-24 11:37:45.238 2932 3587 W PowerHint: [Perf] boostCancelIfNeededInternal : isTopPakcageGame = false/ isLastPakcageGame = false
    01-24 11:37:45.238 2932 3587 D PowerHint: [Perf] boostCancelIfNeededInternal >> Normal App Boost Cancel (From non-Home)
    01-24 11:37:45.238 2932 3587 D PowerHint: [Perf] boostCancel(13)
    01-24 11:37:45.238 2932 3587 D PowerHint: [Perf] boostCancelIfNeededInternal [finish] : set lastPackageName = com.company.app
     
  2. dolims

    dolims

    Joined:
    Sep 13, 2014
    Posts:
    61
    A couple of quick questions: What version of Unity are you using? What Cardboard viewer?
     
  3. Dosukkoi

    Dosukkoi

    Joined:
    Jan 24, 2016
    Posts:
    6
    Hi, I use Google Cardboard for Unity3D 0.6v, and I use Unity 5.1.2f.
    I updated Unity 5.3.1, but the issue is still occurs..
    I think this intent flag is cause when call Home app.
    Intent.FLAG_ACTIVITY_NEW_TASK