Open rahul27 opened 7 years ago
I ran this yesterday and it worked OK for me. What did you do with the app to cause the crash? Is it just Oculus SDK 1.5?
This looks like a build-related issue. Have you tried completely cleaning the trees before building?
I just ran the app with 1.5.0 and it worked fine for me.
The app works fine for me as well. The crashes happen occasionally on some runs that causes the app to shutdown.
Do you want to hold up the 1.5.0 pull request for this or can we look at it separately?
Have you tried master? What's the behavior there?
Don't think it is necessarily an 1.5.0 issue. Haven't tried master as yet. Its just that I have been using this app and 1.5.0 to test the gear controller support.
Interesting.. I saw a crash too though not exactly the same (on master). Was throwing the balls as quickly as possible continuously.
03-21 10:04:26.832 20665 20691 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc2640028 in tid 20691 (GLThread 671)
03-21 10:04:26.912 3152 3152 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-21 10:04:26.912 3152 3152 F DEBUG : Build fingerprint: 'samsung/noblelteuc/noblelteatt:6.0.1/MMB29K/N920AUCS4CQB2:user/release-keys'
03-21 10:04:26.912 3152 3152 F DEBUG : Revision: '9'
03-21 10:04:26.912 3152 3152 F DEBUG : ABI: 'arm'
03-21 10:04:26.912 3152 3152 F DEBUG : pid: 20665, tid: 20691, name: GLThread 671 >>> org.gearvrf.gvrsimlephysics <<<
03-21 10:04:26.912 3152 3152 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xc2640028
03-21 10:04:26.942 3152 3152 F DEBUG : r0 eec8df44 r1 de15cc90 r2 de753298 r3 d8b0d0d0
03-21 10:04:26.942 3152 3152 F DEBUG : r4 d84f4ab0 r5 eec8df44 r6 c2640000 r7 eec8df44
03-21 10:04:26.942 3152 3152 F DEBUG : r8 de15cc90 r9 eec8df44 sl de15cc90 fp 00000000
03-21 10:04:26.942 3152 3152 F DEBUG : ip d52234d1 sp de753240 lr d520284d pc d52023f6 cpsr 200e0030
03-21 10:04:26.962 3152 3152 F DEBUG :
03-21 10:04:26.962 3152 3152 F DEBUG : backtrace:
03-21 10:04:26.962 3152 3152 F DEBUG : #00 pc 0005b3f6 /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so
03-21 10:04:26.962 3152 3152 F DEBUG : #01 pc 0005b849 /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so (_ZN6btDbvt6updateEP10btDbvtNodeR12btDbvtAabbMm+10)
03-21 10:04:26.962 3152 3152 F DEBUG : #02 pc 0005c983 /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so (_ZN16btDbvtBroadphase7setAabbEP17btBroadphaseProxyRK9btVector3S4_P12btDispatcher+286)
03-21 10:04:26.962 3152 3152 F DEBUG : #03 pc 00065c9b /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so (_ZN16btCollisionWorld16updateSingleAabbEP17btCollisionObject+130)
03-21 10:04:26.962 3152 3152 F DEBUG : #04 pc 00065dd3 /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so (_ZN16btCollisionWorld11updateAabbsEv+58)
03-21 10:04:26.962 3152 3152 F DEBUG : #05 pc 000648ef /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so (_ZN16btCollisionWorld33performDiscreteCollisionDetectionEv+22)
03-21 10:04:26.962 3152 3152 F DEBUG : #06 pc 00096c7f /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so (_ZN23btDiscreteDynamicsWorld28internalSingleStepSimulationEf+66)
03-21 10:04:26.962 3152 3152 F DEBUG : #07 pc 000964ef /data/app/org.gearvrf.gvrsimlephysics-1/lib/arm/libBullet.so (_ZN23btDiscreteDynamicsWorld14stepSimulationEfif+250)
03-21 10:04:26.962 3152 3152 F DEBUG : #08 pc 006be477 /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (void org.gearvrf.physics.NativePhysics3DWorld.step(long, float)+98)
03-21 10:04:26.962 3152 3152 F DEBUG : #09 pc 00c0418d /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (void org.gearvrf.physics.GVRWorld.onDrawFrame(float)+120)
03-21 10:04:26.962 3152 3152 F DEBUG : #10 pc 00ba62d9 /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (long org.gearvrf.GVRViewManager.doMemoryManagementAndPerFrameCallbacks()+956)
03-21 10:04:26.962 3152 3152 F DEBUG : #11 pc 00ba5bad /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (long org.gearvrf.GVRViewManager.access$600(org.gearvrf.GVRViewManager)+56)
03-21 10:04:26.962 3152 3152 F DEBUG : #12 pc 00a63fc5 /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (void org.gearvrf.GVRViewManager$3.beforeDrawEyes()+136)
03-21 10:04:26.962 3152 3152 F DEBUG : #13 pc 00ba6c5f /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (void org.gearvrf.GVRViewManager.beforeDrawEyes()+114)
03-21 10:04:26.962 3152 3152 F DEBUG : #14 pc 00bfeff9 /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (void org.gearvrf.OvrViewManager.beforeDrawEyes()+252)
03-21 10:04:26.962 3152 3152 F DEBUG : #15 pc 00bff94d /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (void org.gearvrf.OvrViewManager.onDrawFrame()+48)
03-21 10:04:26.962 3152 3152 F DEBUG : #16 pc 0066b6ad /data/app/org.gearvrf.gvrsimlephysics-1/oat/arm/base.odex (offset 0x51a000) (void org.gearvrf.OvrVrapiActivityHandler$7.onDrawFrame(javax.microedition.khronos.opengles.GL10)+120)
03-21 10:04:26.962 3152 3152 F DEBUG : #17 pc 03f1e387 /system/framework/arm/boot.oat (offset 0x3004000)
03-21 10:04:27.882 3152 3152 F DEBUG :
03-21 10:04:27.882 3152 3152 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00
03-21 10:04:27.882 3152 3152 E DEBUG : AM write failed: Broken pipe
One crash launch time:
03-21 10:21:06.972 3152 3152 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-21 10:21:06.972 3152 3152 F DEBUG : Build fingerprint: 'samsung/noblelteuc/noblelteatt:6.0.1/MMB29K/N920AUCS4CQB2:user/release-keys'
03-21 10:21:06.972 3152 3152 F DEBUG : Revision: '9'
03-21 10:21:06.972 3152 3152 F DEBUG : ABI: 'arm'
03-21 10:21:06.972 3152 3152 F DEBUG : pid: 29035, tid: 29110, name: gvrf-8 >>> org.gearvrf.gvrsimlephysics <<<
03-21 10:21:06.972 3152 3152 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-21 10:21:07.002 3152 3152 F DEBUG : Abort message: 'Pure virtual function called!'
03-21 10:21:07.002 3152 3152 F DEBUG : r0 00000000 r1 000071b6 r2 00000006 r3 d24e4978
03-21 10:21:07.002 3152 3152 F DEBUG : r4 d24e4980 r5 d24e4930 r6 00000016 r7 0000010c
03-21 10:21:07.002 3152 3152 F DEBUG : r8 d5953544 r9 eec8dbdf sl 49444154 fp 00000000
03-21 10:21:07.002 3152 3152 F DEBUG : ip 00000006 sp d24e3488 lr f734f37d pc f735176c cpsr 40000010
03-21 10:21:07.032 3152 3152 F DEBUG :
03-21 10:21:07.032 3152 3152 F DEBUG : backtrace:
03-21 10:21:07.032 3152 3152 F DEBUG : #00 pc 0004276c /system/lib/libc.so (tgkill+12)
03-21 10:21:07.032 3152 3152 F DEBUG : #01 pc 00040379 /system/lib/libc.so (pthread_kill+32)
03-21 10:21:07.032 3152 3152 F DEBUG : #02 pc 0001ca9b /system/lib/libc.so (raise+10)
03-21 10:21:07.032 3152 3152 F DEBUG : #03 pc 00019d19 /system/lib/libc.so (__libc_android_abort+34)
03-21 10:21:07.032 3152 3152 F DEBUG : #04 pc 0001755c /system/lib/libc.so (abort+4)
03-21 10:21:07.032 3152 3152 F DEBUG : #05 pc 00032a91 /system/lib/libc++.so
03-21 10:21:07.032 3152 3152 F DEBUG : #06 pc 000494cd /system/lib/libc++.so (__cxa_pure_virtual+12)
03-21 10:21:07.032 3152 3152 F DEBUG : #07 pc 0009ddc9 /system/lib/libandroid_runtime.so (_ZN7android18AssetStreamAdaptor4readEPvj+104)
03-21 10:21:07.032 3152 3152 F DEBUG : #08 pc 00185af5 /system/lib/libskia.so
03-21 10:21:07.032 3152 3152 F DEBUG : #09 pc 00010bbb /system/lib/libpng.so (png_read_data+18)
03-21 10:21:07.032 3152 3152 F DEBUG : #10 pc 00014a77 /system/lib/libpng.so (png_crc_read+18)
03-21 10:21:07.032 3152 3152 F DEBUG : #11 pc 00017af7 /system/lib/libpng.so (png_read_IDAT_data+154)
03-21 10:21:07.032 3152 3152 F DEBUG : #12 pc 0000d725 /system/lib/libpng.so (png_read_row+312)
03-21 10:21:07.032 3152 3152 F DEBUG : #13 pc 0000d93f /system/lib/libpng.so (png_read_rows+54)
03-21 10:21:07.032 3152 3152 F DEBUG : #14 pc 0018686f /system/lib/libskia.so (_ZN17SkPNGImageDecoder8onDecodeEP8SkStreamP8SkBitmapN14SkImageDecoder4ModeE+650)
03-21 10:21:07.032 3152 3152 F DEBUG : #15 pc 001829a7 /system/lib/libskia.so (_ZN14SkImageDecoder6decodeEP8SkStreamP8SkBitmap11SkColorTypeNS_4ModeE+38)
03-21 10:21:07.032 3152 3152 F DEBUG : #16 pc 00094793 /system/lib/libandroid_runtime.so
03-21 10:21:07.032 3152 3152 F DEBUG : #17 pc 00094cc7 /system/lib/libandroid_runtime.so
03-21 10:21:07.032 3152 3152 F DEBUG : #18 pc 0342f61b /system/framework/arm/boot.oat (offset 0x3004000)
It is all very random though. We might have to get everybody to hammer on this app to make it more robust for the demo.
@rahul27 Do you have a branch we can test?
Think @NolaDonato is already looking at this. In any case here is the branch:
https://github.com/rahul27/GearVRf-Demos/tree/modified-physics
Are you seeing the crashes with the controller or they happen with the trackpad too?
I've only tried with the controller. Not sure about the trackpad.
@NolaDonato was saying last night that it seemed like it had something to do with shadows. If she disabled shadows, everything worked fine. but, it could be that it just changed the timing so it was less likely to occur.
I guess a workaround for the demo would be to put MainScript.onSwipe on the GL thread (currently on the main android thread); based on my experience with crashes related to fast swiping.
@rahul27 's version requires a controller a presume. If we have spare ones we can test it but for now only the one from master can be tested.
I can consistently get the crash in NativePhysics3DWorld.step by launching 10 balls on a swipe; each as a separate task submitted to the thread pool. Diff attached. diff.txt
@rahul27 's crashes though are something else.
The crash on startup in Light::render is definitely due to shadows. I cannot reproduce it without shadows and I have a potential fix. I will try the 10 balls version without shadows and see what happens.
Here are the two stacktraces. Note that I am using Oculus SDK 1.5.0