MobileMobile | Continue
       
Nibiru VR Development Nibiru Studio 使用nibiru VR SDK 偶发性闪退.

使用nibiru VR SDK 偶发性闪退.

gerrie Post time 2019-6-6 12:27 | Show all posts [Copy URL]
7 259
在部分VR9机器上, 不接电源的时候, 偶发性闪退.

日志里有Nibiru System Activate Status : -1.


05-31 15:27:03.509 15295 15295 V NibiruVR-SDK: [] === init Context===
05-31 15:27:03.515 15295 15295 V NibiruVR-SDK: NVR Loader Ver: 2
05-31 15:27:03.530 15295 15295 I nvr-sdk-info: registerNatives: jar_svn_-1, jar_ver_222, jar_rel_20170911
05-31 15:27:03.520 15295 15295 I .vr.video.debug: type=1400 audit(0.0:375): avc: denied { write } for name="property_service" dev="tmpfs" ino=4323 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:property_socket:s0 tclass=sock_file permissive=1
05-31 15:27:03.520 15295 15295 I .vr.video.debug: type=1400 audit(0.0:376): avc: denied { connectto } for path="/dev/socket/property_service" scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
05-31 15:27:03.533 15295 15295 I nvr-sdk-info: setSysProp.nxr.sdk.enter.status=0
05-31 15:27:03.535 15295 15295 E nvr-sdk-info:  Not find NibiruKeyStoreClass from jar code!
05-31 15:27:03.536 15295 15295 E nvr-sdk-info:  Not find NVRInteractionManager from jar code!
05-31 15:27:03.542 15295 15295 I nvr-sdk-info: setSysProp.nxr.sdk.ready=0
05-31 15:27:03.542 15295 15295 I nvr-sdk-info: setSysProp.nxr.sdk.enter.status=1
05-31 15:27:03.542 15295 15295 I nvr-sdk-info: pkg is [com.inlife.wjz.vr.video.debug].0
05-31 15:27:03.544 15295 15295 W nvr-sdk-info: loadSDKConfig failed, check the file path !!! [/persist/qvr/Oyx.txt]
05-31 15:27:03.544 15295 15295 W nvr-sdk-info: loadSDKConfig failed, check the file path !!! [system/etc/NibiruSDKConfig.txt]
05-31 15:27:03.544 15295 15295 W nvr-sdk-info: loadSDKConfig failed, check the file path !!! [system/etc/NibiruProjectionConfig.txt]
05-31 15:27:03.546 15295 15295 I nvr-sdk-info: >>> Disable Interaction SDK, Because JarVersion is old.222 < 251<<<
05-31 15:27:03.546 15295 15295 I nvr-sdk-info: [NibiruSDK-ENG0] SVer[281], JVer[222], Dual[0], Date[20190419], Sv[17204], DFBR[0],
05-31 15:27:03.546 15295 15295 I nvr-sdk-info: Sst[1], Ft[14285714], Tw[0], Xr[1], P[neptune], CS[0],
05-31 15:27:03.546 15295 15295 I nvr-sdk-info: Ant[0], 9Trk[1], Spy[0.500000], Oax[0], OaxRot[-2.000000],
05-31 15:27:03.546 15295 15295 I nvr-sdk-info: Reticle[0], ET[0], Mtid[15295],Mr[], Channel[],
05-31 15:27:03.546 15295 15295 I nvr-sdk-info: TwFifo[0], SyncFrame[0], Tps[1.000000], Inact[0], LinePtr[0], Sdh[0.000000]
05-31 15:27:03.547 15295 15295 I nvr-platform: client version: 281
05-31 15:27:03.548 15295 15295 I nvr-sdk-info: isDualScreen=0, isDualTopBottomRefresh=-1
05-31 15:27:03.548 15295 15295 I nvr-sdk-info: NVR PLATFORM Ver.23 SUPPORT DTR: 0 ,PLATFORM ID: 11 ,UNREAL DTR: 0 ,OS API: 25_7.1.2 ,CHANNEL VR1083, DualTB 1, LRRefresh 1, UnityDTR 0
05-31 15:27:03.549 15295 15295 I nvr-sdk-info: render_order 1, isLRRefresh 0
05-31 15:27:03.549 15295 15295 I nvr-sdk-info: Nibiru OS: 1, ABI: armeabi-v7a, Support DTR: 0, Engine Type: 0, OS Env Ver 1, FrameTime 14285714ms, REL V2.8.1, Apr 22 2019 - 09:31:52
05-31 15:27:03.549 15295 15295 I nvr-sdk-info: isEnableInteractionSDK: 0
05-31 15:27:03.540  1788  1788 I Binder:1639_1: type=1400 audit(0.0:377): avc: denied { use } for path="/dev/ashmem" dev="tmpfs" ino=6284 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:noloservice:s0 tclass=fd permissive=1
05-31 15:27:03.553 15295 15295 I nvr-sdk-info: Load NoloClient success: connected 0, version is 134 !
05-31 15:27:03.553 15295 15295 I nvr-sdk-info: TrackerVR9 Init Succ
05-31 15:27:03.553 15295 15295 I nvr-sdk-info: >>>>>> Tracker.init TrackerVR9
05-31 15:27:03.554 15295 15295 E nvr-sdk-info: Open liblive555_client.so failed ! dlopen failed: library "liblive555_client.so" not found . Change to load libnvr_live555.so
05-31 15:27:03.555 15295 15295 E nvr-sdk-info: Open libnvr_live555.so failed ! dlopen failed: library "libnvr_live555.so" not found
05-31 15:27:03.555 15295 15295 E nvr-sdk-info: open os service lib failed: dlopen failed: library "libinvrservice.so" not found
05-31 15:27:03.555 15295 15295 I nvr-sdk-info: Nibiru System Activate Status : -1.
Reply

Use magic Report

Post time 2019-5-31 17:24 | Show all posts
日志还有:

05-31 15:27:03.555 15295 15295 D PortalApi: call int awInitPortalSdk(int)
05-31 15:27:03.555 15295 15295 D libEGL  : call EGLBoolean android::eglCustomEnablePortal(int). time=30093.955671
05-31 15:27:03.555 15295 15295 E libEGL  : call int android:ortalDevice::SetPortalEnabled(int) mode 1:dynamic reprojection
05-31 15:27:03.555 15295 15295 D libEGL  : PortalDevice: load portal driver
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalInit=0xec35bce5 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalDestroy=0xec35bda1 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalSwap=0xec35bdd5 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalSetFrameNumber=0xec35be1d from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalReproj=0xec35be55 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalSetTracker=0xec35bd61 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalEnableDevice=0xec35be91 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalDisableDevice=0xec35bec9 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalGetOrientation=0xec35bf05 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalResetHeadTracker=0xec35bf4d from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Get PortalSetWarpStatus=0xec35bf89 from /libatw.so
05-31 15:27:03.560 15295 15295 D libEGL  : Portal MSAA:0 IsUnityApp:0
05-31 15:27:03.560 15295 15295 D libEGL  : set PortalStatus 1
05-31 15:27:03.560 15295 15295 D PortalApi: init portal sdk success
05-31 15:27:03.561 15295 15295 I nvr-sdk-info: Service->initialize[0], Service.init nvr for VR9CoreService, isDTRSupport false
05-31 15:27:03.563 15295 15295 D ccc     : ExtAndroid Sensor Init
05-31 15:27:03.573 15295 15295 I nvr-sdk-info: jar 222 < 226, pass verify !
05-31 15:27:03.573 15295 15295 I nvr-platform: client version: 281
05-31 15:27:03.573 15295 15295 V test    : platform length: 25
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Welcome to Nibiru VR World
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Hardware Platform: Unsupported
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Nibiru Platform Version: 23
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Frame Time: 16666666
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> VSYNC Support: false
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> VSync Drift: 0
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Screen Mode: SINGLE
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> DTR Opt Mode: false
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> DTR Support: S->false U->false UE->false
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> DTR Impl: FEN
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> DTR Support Render: SYNC MODE
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> MultiView Support: NO SUPPORT
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Refresh Order: R -> L
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Distortion: true
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Tracking Mode: Raw Data Fusion [N]
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Tracking Source: APP
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Performance Level: 2
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> Version: SDK->281 JAR->222.DATE->20170911 Lib->2 Ser->5
05-31 15:27:03.582 15295 15295 I NVR     : >>>>>>>>>>>>>>>>>>> APP Package: com.inlife.wjz.vr.video.debug
05-31 15:27:03.603 15295 15295 V NibiruVR-SDK: [com.inlife.wjz.vr.video.NibiruActivity] === init vr service ===
05-31 15:27:03.604 15295 15295 D NibiruVR-SDK: NO SUPPORT DIRECT RENDER
05-31 15:27:03.608 15295 15295 W nvr-sdk-info: update TrackerMode failed, because verify failed !!!
05-31 15:27:03.608 15295 15295 I nvr-sdk-info: svrSetTrackingMode gNvrCommon->trackerMode=1
05-31 15:27:03.609 15295 15295 I test    : isSupport6Dof
05-31 15:27:03.888 15295 15295 D NibiruActivity: Build.MODEL = VR9
05-31 15:27:03.888 15295 15295 D NibiruActivity: keyEventEnabled = true
05-31 15:27:03.892 15295 15295 V test    : Support DTR: false         multi view false
05-31 15:27:03.893 15295 15295 D test    : Support Normal
05-31 15:27:03.899 15295 15295 D ccc     : >>>>>> has initCardboardInfo , just pass it !
05-31 15:27:03.900 15295 15295 D ccc     : use dtr sdk mode
05-31 15:27:03.900 15295 15295 D ccc     : allow nvr tracker working
05-31 15:27:03.901 15295 15295 D ccc     : App Ver [1.0 Base 1]com.inlife.wjz.vr.video.debug
05-31 15:27:03.902 15295 15295 V NibiruVR-SDK: [com.inlife.wjz.vr.video.NibiruActivity] ========set_view_false,false,0
05-31 15:27:03.930 15295 15295 D ccc     : onResume
05-31 15:27:03.930 15295 15295 V NibiruVR-SDK: [com.inlife.wjz.vr.video.NibiruActivity] === on resume  ===
05-31 15:27:03.930 15295 15295 I nvr-sdk-info: on resume
05-31 15:27:03.930 15295 15295 D nvr-sdk-info: [NWFD] has not connected (0), abandon init
05-31 15:27:03.932 15295 15295 V NibiruVR-SDK: === log level: 0 distortion: 1,fps:false
05-31 15:27:03.934 15295 15295 I nvr-sdk-info: >>>>>>>>>olicy:0, Log:0, Fps:0, Dist:1
05-31 15:27:03.934 15295 15295 I nvr-sdk-info: config init width, height: 2560.000000, 1440.000000, mesh: 16, 16,  viewport[0,0,-1,30], chromatic: 0,1,0,0,1,0,0. oad: 60,60,10,170 , var:-9999
05-31 15:27:03.935 15295 15295 I nvr-sdk-info: JNI_updateEyeFrustum failed, because Jar not update, can not find api !!!!
05-31 15:27:03.935 15295 15295 I nvr-sdk-info: JNI_updateEyeFrustum failed, because Jar not update, can not find api !!!!
05-31 15:27:03.935 15295 15295 D PortalApi: call int awStartHeadTracker(PTRFUN_HeadTracker)
05-31 15:27:03.935 15295 15295 D libEGL  : call EGLBoolean android::eglCustomStartHeadTracker(PTRFUN_HeadTracker). time=30094.335474
05-31 15:27:03.935 15295 15295 D libEGL  : PortalDevice: create tracker
05-31 15:27:03.935 15295 15295 I AtwClient: Construct AtwClient. version=1.00. pid=15295, mClientID=15295
05-31 15:27:03.935 15295 15295 V AtwClient: enter virtual status_t android::BpAtwService::createAtwConnection(
Post time 2019-5-31 17:24 | Show all posts

//    implementation files('libs/nibiruvrlib_2_2_2.jar')
    implementation files('libs/nibiru_vr_pro_sdk_2_3_9.jar')
这两个包都尝试过.
Post time 2019-5-31 17:42 | Show all posts
我用Android studio 导入 最新的NibiruVRDemo2 工程.
在这台机器(3.60.001)上, 该工程在Android studio 上点run 运行正常.
但是退出app后再进入, 也出现 Nibiru System Activate Status : -1.
虽然能渲染, 但是按键无响应. 应该是nibiru 库还是初始化失败了!

注意. 在3.50.003 版本的机器上一切正常.
Post time 2019-5-31 17:48 | Show all posts
gerrie replied at 2019-5-31 17:42
我用Android studio 导入 最新的NibiruVRDemo2 工程.
在这台机器(3.60.001)上, 该工程在Android studio 上 ...

请提供下闪退时完整的运行LOG。上面的LOG片段并未看到明显的异常信息。
Nibiru System Activate Status : -1. 并没有问题。跟闪退无关,闪退肯定是出现了致命异常,导致程序
运行失败。
Post time 2019-6-3 10:15 | Show all posts
oahcfly 发表于 2019-5-31 17:48
请提供下闪退时完整的运行LOG。上面的LOG片段并未看到明显的异常信息。
Nibiru System Activate Status : ...

官方demo 复现. 使用NibiruVRDemo2
1. 用adb 卸载所有demo相关app, 用pm命令确认卸载成功
pm list package |grep demo
2. onCreate  加Log.i("MY_BUGDE", "onCreate: 1234");,  OnKeyUp加og.i("MY_BUGDE", "pre key down" + event);
3. android studio运行demo, 按back键退出应用;
4. 从launcher启动应用,

log如下:
第一次启动:
2019-06-03 10:06:06.269 11958-11958/com.nibiru.vr.demo I/MY_BUGDE: onCreate: 1234
2019-06-03 10:06:21.085 11958-11958/com.nibiru.vr.demo I/MY_BUGDE: pre key downKeyEvent { action=ACTION_UP, keyCode=KEYCODE_DPAD_DOWN, scanCode=108, metaState=0, flags=0x8, repeatCount=0, eventTime=81737214, downTime=81737091, deviceId=1, source=0x301 }
2019-06-03 10:06:23.869 11958-11958/com.nibiru.vr.demo I/MY_BUGDE: pre key downKeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x228, repeatCount=0, eventTime=81739997, downTime=81739862, deviceId=1, source=0x301 }

从launcher启动:
2019-06-03 10:06:29.195 11958-11958/com.nibiru.vr.demo I/MY_BUGDE: onCreate: 1234
2019-06-03 10:06:29.261 11958-11958/com.nibiru.vr.demo I/MY_BUGDE: pre key downKeyEvent { action=ACTION_UP, keyCode=KEYCODE_DPAD_CENTER, scanCode=172, metaState=0, flags=0x80000028, repeatCount=0, eventTime=81745259, downTime=81745148, deviceId=1, source=0x301 }
Post time 2019-6-3 10:16 | Show all posts
从launcher启动 不响应key事件了. 而且自动触发KEYCODE_DPAD_CENTER
Post time 2019-6-6 12:27 | Show all posts
gerrie replied at 2019-6-3 10:16
从launcher启动 不响应key事件了. 而且自动触发KEYCODE_DPAD_CENTER

收到,我们会按照你提供的信息,进行复测验证。
You have to log in before you can reply Login | Register

Points Rules

!fastreply! Top !return_list!