googlevr / gvr-android-sdk

Google VR SDK for Android
http://developers.google.com/vr/android/
Other
3.28k stars 1.28k forks source link

Crash in Java_com_google_vr_sdk_audio_GvrAudioEngine_nativeInitialize #585

Closed MortimerGoro closed 6 years ago

MortimerGoro commented 6 years ago

We get this crash randomly when the activity starts

2018-09-27 13:16:37.462 1633-1633/? I/ShellJNI: ANativeWindow_release( 0xa413e008 )
2018-09-27 13:16:37.468 25389-27908/org.mozilla.vrbrowser I/SystemUtils: ShellSystemUtilsAnytimeUICapability: 2
2018-09-27 13:16:37.468 25389-27908/org.mozilla.vrbrowser I/VrRuntimeClient: not using RuntimeService on Go
2018-09-27 13:16:37.468 25389-27908/org.mozilla.vrbrowser I/VrRuntimeClient: VrRuntimeClient: Init
2018-09-27 13:16:37.469 25389-27908/org.mozilla.vrbrowser D/ScreenCaptureReceiver: startReceiver
2018-09-27 13:16:37.475 25389-27908/org.mozilla.vrbrowser D/VrApi: hasVrPermissions
2018-09-27 13:16:37.477 25389-27908/org.mozilla.vrbrowser I/AudioCapture: Initializing audio capture using direct OS Callbacks
2018-09-27 13:16:37.477 25389-27908/org.mozilla.vrbrowser I/VrManagerNative: accessing calibration data for DISTORTION_MESH
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/VrApi: found distortion mesh (52344 bytes)
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: Loaded distortion file from VRSVC
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::magic = 0x56347807
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::deviceModel = 0x40
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::headsetModel = 0x40
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeBlocksWide = 32
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeBlocksHigh = 32
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::lensSeparationMeters = 0.063500
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::horizontalOffsetMeters = 0.000000
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayWidthMeters = 0.120960
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayHeightMeters = 0.068040
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayWidthPixels = 2560
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayHeightPixels = 1440
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeTextureWidthPixels = 1024
2018-09-27 13:16:37.480 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeTextureHeightPixels = 1024
2018-09-27 13:16:37.481 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::leftEye = up 45.000000 / down 45.000000 / left 45.000000 / right 45.000000
2018-09-27 13:16:37.481 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::rightEye = up 45.000000 / down 45.000000 / left 45.000000 / right 45.000000
2018-09-27 13:16:37.481 25389-27908/org.mozilla.vrbrowser I/VrManagerNative: accessing calibration data for DISTORTION_MESH
2018-09-27 13:16:37.482 25389-27908/org.mozilla.vrbrowser I/VrApi: found distortion mesh (52344 bytes)
2018-09-27 13:16:37.482 25389-27908/org.mozilla.vrbrowser I/Distortion: Loaded distortion file from VRSVC
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::magic = 0x56347807
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::deviceModel = 0x40
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::headsetModel = 0x40
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeBlocksWide = 32
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeBlocksHigh = 32
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::lensSeparationMeters = 0.063500
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::horizontalOffsetMeters = 0.000000
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayWidthMeters = 0.120960
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayHeightMeters = 0.068040
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayWidthPixels = 2560
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::displayHeightPixels = 1440
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeTextureWidthPixels = 1024
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::eyeTextureHeightPixels = 1024
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::leftEye = up 45.000000 / down 45.000000 / left 45.000000 / right 45.000000
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/Distortion: ovrDistortionMeshHeader::rightEye = up 45.000000 / down 45.000000 / left 45.000000 / right 45.000000
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser I/TrackingServiceClient: initialize
2018-09-27 13:16:37.483 25389-27908/org.mozilla.vrbrowser D/TrackingServiceClient: onInitialize
2018-09-27 13:16:37.485 25389-27908/org.mozilla.vrbrowser I/InputHooks: SetReorientHMDOnControllerRecenter = true
2018-09-27 13:16:37.485 25389-27908/org.mozilla.vrbrowser I/InputHooks: SetBlockRemoteButtonsWhenNotEmulatingHMT = true
2018-09-27 13:16:37.485 25389-27908/org.mozilla.vrbrowser I/InputHooks: SetLatchBackButtonEntireFrame = true
2018-09-27 13:16:37.485 25389-27908/org.mozilla.vrbrowser I/InputHooks: SetBlockRemoteButtonsWhenNotEmulatingHMT = false
2018-09-27 13:16:37.485 25389-27908/org.mozilla.vrbrowser I/InputHooks: SetReorientHMDOnControllerRecenter = true
2018-09-27 13:16:37.486 25389-27908/org.mozilla.vrbrowser I/VRB: BrowserWorld::InitializeJava
2018-09-27 13:16:37.610 27909-27909/? W/debuggerd: type=1400 audit(0.0:158): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.670 27909-27909/? W/debuggerd: type=1400 audit(0.0:159): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.673 27909-27909/? W/debuggerd: type=1400 audit(0.0:160): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.717 27909-27909/? W/debuggerd: type=1400 audit(0.0:161): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.750 27909-27909/? W/debuggerd: type=1400 audit(0.0:162): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.777 27909-27909/? W/debuggerd: type=1400 audit(0.0:163): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.777 27909-27909/? W/debuggerd: type=1400 audit(0.0:164): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.780 27909-27909/? W/debuggerd: type=1400 audit(0.0:165): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.780 27909-27909/? W/debuggerd: type=1400 audit(0.0:166): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.793 27909-27909/? W/debuggerd: type=1400 audit(0.0:167): avc: denied { search } for name="org.mozilla.vrbrowser" dev="sda8" ino=98324 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0
2018-09-27 13:16:37.883 27909-27909/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: Build fingerprint: 'oculus/vr_pacific/pacific:7.1.2/N2G48H/113640.2120.0:user/release-keys'
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: Revision: '0'
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: ABI: 'arm'
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: pid: 25389, tid: 25389, name: zilla.vrbrowser >>> org.mozilla.vrbrowser <<<
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: r0 00000000 r1 c69a6eda r2 c69a6eda r3 00000003
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: r4 aeb6c780 r5 edcad269 r6 00000100 r7 00000002
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: r8 0000bb80 r9 00000100 sl 00000002 fp 00000000
2018-09-27 13:16:37.884 27909-27909/? A/DEBUG: ip ffa77870 sp ffa77d90 lr edca8b49 pc cce5ae96 cpsr 600f0030
2018-09-27 13:16:37.895 27909-27909/? A/DEBUG: backtrace:
2018-09-27 13:16:37.896 27909-27909/? A/DEBUG: #00 pc 0003de96 /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #1 pc 0003dde9 /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #2 pc 0003c059 /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #3 pc 0003bebb /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #4 pc 0000fefd /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #5 pc 0000fea7 /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #6 pc 0000fe7f /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #7 pc 0000adcb /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so
2018-09-27 13:16:37.897 27909-27909/? A/DEBUG: #8 pc 0000cd7d /data/app/org.mozilla.vrbrowser-1/lib/arm/libgvr_audio.so (Java_com_google_vr_sdk_audio_GvrAudioEngine_nativeInitialize+48)
2018-09-27 13:16:37.898 27909-27909/? A/DEBUG: #9 pc 00aa380b /data/app/org.mozilla.vrbrowser-1/oat/arm/base.odex (offset 0xa69000)
2018-09-27 13:16:38.664 1668-1910/? E/LibraryDBCacheManager: content://com.oculus.horizon.cache/library_cache
2018-09-27 13:16:38.669 2026-2178/? I/RCTVR: [info]: 'Library', [ 'global library update received' ]
2018-09-27 13:16:40.462 982-1076/? E/NativeCrashListener: Unable to read from debuggerd
2018-09-27 13:16:40.496 982-999/? I/BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
2018-09-27 13:16:40.533 982-1289/? E/SettingsProxyService: Failed to get crash reports setting
sigmaxipi commented 6 years ago

Can you provide more information? This looks like you were running the org.mozilla.vrbrowser app on an Oculus Go. This looks like a bug in the Mozilla app. It should avoid calling any GVR functions when running on Oculus VR devices. Can you file a bug on the Mozilla tracker?

sigmaxipi commented 6 years ago

Tracked at https://github.com/MozillaReality/FirefoxReality/issues/586