Unity上的GoogleVR错误无法加载libaudioplugingvrunity

时间:2016-05-22 00:25:37

标签: google-vr

我在Unity 5.3.3p3上,我已经将GoogleVR包添加到了我的项目中。我想用Android 4.4.4在Moto X上运行应用程序。但是,它在启动时崩溃,消息无法找到2个库。至少,我认为这是崩溃错误 - 在它之后打印回溯。它还说它无法找到OVRPlugin,但我不认为我想要那个,因为Moto X不是受支持的设备而且不会给我一个oculussig文件。

以下是日志:

09-21 20:04:06.815 D/Unity   ( 2506): PlayerConnection already initialized - listening to [192.168.56.101:55144]

09-21 20:04:06.887 D/dalvikvm( 2506): Trying to load lib /data/app-lib/com.sample.GVR-2/libaudioplugingvrunity.so 0xa5051820

09-21 20:04:06.903 D/dalvikvm( 2506): Added shared lib /data/app-lib/com.sample.GVR-2/libaudioplugingvrunity.so 0xa5051820

09-21 20:04:06.903 D/Unity   ( 2506): Unable to lookup library path for 'libaudioplugingvrunity', native render plugin support disabled.

09-21 20:04:06.903 E/Unity   ( 2506): Unable to find libaudioplugingvrunity

09-21 20:04:06.903 D/Unity   ( 2506): PlayerInitEngineNoGraphics OK

09-21 20:04:06.907 D/Unity   ( 2506): Unable to lookup library path for 'OVRPlugin', native render plugin support disabled.

09-21 20:04:06.907 E/Unity   ( 2506): Unable to find OVRPlugin

09-21 20:04:06.907 F/libc    ( 2506): Fatal signal 11 (SIGSEGV) at 0x827781bd (code=1), thread 2521 (UnityMain)

09-21 20:04:07.011 I/DEBUG   (  135): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

09-21 20:04:07.011 I/DEBUG   (  135): Build fingerprint: 'generic/vbox86p/vbox86p:4.4.4/KTU84P/eng.buildbot.20151118.000452:userdebug/test-keys'

09-21 20:04:07.011 I/DEBUG   (  135): Revision: '0'

09-21 20:04:07.011 I/DEBUG   (  135): pid: 2506, tid: 2521, name: UnityMain  >>> com.sample.GVR <<<

09-21 20:04:07.011 I/DEBUG   (  135): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 827781bd

09-21 20:04:07.231 D/dalvikvm(  518): GC_EXPLICIT freed 723K, 24% free 10905K/14252K, paused 6ms+1ms, total 27ms

09-21 20:04:08.835 I/DEBUG   (  135):     eax 74206e69  ebx b77dcfe4  ecx 000000d0  edx 0395c4d5

09-21 20:04:08.839 I/DEBUG   (  135):     esi 0395c4d5  edi 94be833b

09-21 20:04:08.839 I/DEBUG   (  135):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b

09-21 20:04:08.839 I/DEBUG   (  135):     eip b77c38bf  ebp 6874206d  esp 939ee530  flags 00210246

09-21 20:04:08.863 I/DEBUG   (  135): 

09-21 20:04:08.863 I/DEBUG   (  135): backtrace:

09-21 20:04:08.867 I/DEBUG   (  135):     #00  pc 000068bf  /system/bin/linker (__dl__Z19dlsym_handle_lookupP6soinfoPKc+207)

09-21 20:04:08.867 I/DEBUG   (  135):     #01  pc 0000118e  /system/bin/linker (__dl_dlsym+110)

09-21 20:04:08.867 I/DEBUG   (  135):     #02  pc 002161db  /data/app-lib/com.sample.GVR-2/libunity.so (LookupSymbol(void*, std::string const&)+43)

09-21 20:04:08.867 I/DEBUG   (  135):     #03  pc 00905b96  /data/app-lib/com.sample.GVR-2/libunity.so (LoadOVRPlugin(OVRPlugin*, char const*)+822)

09-21 20:04:08.867 I/DEBUG   (  135):     #04  pc 009057f6  /data/app-lib/com.sample.GVR-2/libunity.so (VRDeviceOculus::Initialize()+70)

09-21 20:04:08.867 I/DEBUG   (  135):     #05  pc 00904351  /data/app-lib/com.sample.GVR-2/libunity.so (CreateVRModule(VRDeviceType)+97)

09-21 20:04:08.867 I/DEBUG   (  135):     #06  pc 009007a1  /data/app-lib/com.sample.GVR-2/libunity.so (InitializeVRModule()::beforeInitializeEngineGraphics::Forward()+33)

09-21 20:04:08.867 I/DEBUG   (  135):     #07  pc 003a6df6  /data/app-lib/com.sample.GVR-2/libunity.so (InitializeGfxDevice(unsigned int)+54)

09-21 20:04:08.867 I/DEBUG   (  135):     #08  pc 005a3336  /data/app-lib/com.sample.GVR-2/libunity.so (UnityInitApplication()+1350)

09-21 20:04:08.867 I/DEBUG   (  135):     #09  pc 005a4f92  /data/app-lib/com.sample.GVR-2/libunity.so (UnityPlayerLoop()+450)

09-21 20:04:08.867 I/DEBUG   (  135):     #10  pc 005a9902  /data/app-lib/com.sample.GVR-2/libunity.so (nativeRender(_JNIEnv*, _jobject*)+274)

09-21 20:04:08.867 I/DEBUG   (  135):     #11  pc 0002a4ab  /system/lib/libdvm.so (dvmPlatformInvoke+79)

如果有人知道或可以指出我正确的方向,非常感谢你提前!!

1 个答案:

答案 0 :(得分:1)

如果您仍然遇到此问题,它实际上似乎与Google VR SDK无关。

  

09-21 20:04:06.903 E / Unity(2506):无法找到libaudioplugingvrunity

以上这一行仅被视为警告,奇怪的是,它并不意味着该库是否在最后成功加载。为了给你更多的上下文,它就是Unity处理项目中第三方插件的方式。在搜索这些库时,如果在其中一个预期路径中找不到插件库,它可能会记录此警告,即使此搜索最终找到了正确的插件。

仅供参考,正如您可能已经注意到的那样,崩溃的实际原因是由OVR库引起的。一个可能的原因可能是不在项目中禁用与Oculus SDK相关的选项,例如:在项目音频设置中播放器设置和/或Oculus音频空间化器插件选择中的虚拟现实支持。

干杯