cancel
Showing results for 
Search instead for 
Did you mean: 

GearVR Demo project with Avatar SDK 1.1.3 crashed, on Unity 5.6.0f3

jerrytian
Protege
This is just the demo project described on this tutorial:

https://developer3.oculus.com/documentation/avatarsdk/latest/concepts/avatars-gsg-unity-gearvr/

After playing around, I found that disable "Combine Meshes" option on avatar object will avoid the crash.

Here is the repo of the demo project:

https://github.com/jerryrt/oc_avata_test

Using the debug build, this is the stacktrace dumped from logcat:
I Unity   : Unity v5.6.0f3, Oculus Utilities v1.13.0, OVRPlugin v1.12.0, SDK v1.0.4.5.
......
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xfaf9596c in tid 31943 (UnityMain)
F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F DEBUG : Build fingerprint: 'samsung/hero2qlteuc/hero2qlteatt:6.0.1/MMB29M/G935AUCS2APE1:user/release-keys'
F DEBUG : Revision: '15'
F DEBUG : ABI: 'arm'
F DEBUG : pid: 31929, tid: 31943, name: UnityMain >>> team.apollo.avatar_demo <<<
F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfaf9596c
F DEBUG : r0 daf95970 r1 07ffffff r2 0000001f r3 ee8d6930
F DEBUG : r4 00000001 r5 ee639410 r6 cfa3bb90 r7 d8c47ed8
F DEBUG : r8 00000001 r9 d8c47ed8 sl e128b448 fp ee8d5090
F DEBUG : ip 00000001 sp ee8d5068 lr dfef3490 pc dfef3518 cpsr 600d0010
F DEBUG :
F DEBUG : backtrace:
F DEBUG : #00 pc 0047f518 /data/app/team.apollo.avatar_demo-1/lib/arm/libunity.so (_ZN26SkinnedMeshRendererManager31HandleUpdateWhenOffscreenChangeER19SkinnedMeshRendererb+120)
F DEBUG : #01 pc 0047f48c /data/app/team.apollo.avatar_demo-1/lib/arm/libunity.so (_ZN19SkinnedMeshRenderer22SetUpdateWhenOffscreenEb+36)
F DEBUG : #02 pc 000074f0 <unknown>
E NativeCrashListener: Exception dealing with report
E NativeCrashListener: android.system.ErrnoException: read failed: EAGAIN (Try again)
E NativeCrashListener: at libcore.io.Posix.readBytes(Native Method)
E NativeCrashListener: at libcore.io.Posix.read(Posix.java:169)
E NativeCrashListener: at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)
E NativeCrashListener: at android.system.Os.read(Os.java:367)
E NativeCrashListener: at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)
E NativeCrashListener: at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
F DEBUG :
F DEBUG : Tombstone written to: /data/tombstones/tombstone_06
E DEBUG : AM write failed: Broken pipe
E : ro.product_ship = true
E : ro.debug_level = 0x4f4c
E : sys.mobilecare.preload = false
1 REPLY 1

jerrytian
Protege
Hi, 

Sorry for the late reply, the crash is solved.

But we are facing another occlusion related issue with avatar SDK, my teammate @sycx have brought the issue in this thread.

https://forums.oculus.com/developer/discussion/54924/how-to-integrate-ovroverlay-and-avatar-sdk-corr...

Please advice.