googlevr / gvr-unity-sdk Goto Github PK
View Code? Open in Web Editor NEWGoogle VR SDK for Unity
Home Page: http://developers.google.com/vr/unity/
License: Other
Google VR SDK for Unity
Home Page: http://developers.google.com/vr/unity/
License: Other
Is the source code available for libRenderingPlugin.so ? If not, any plans to open source this?
i'm using unity 4.3.
I Just import package to unity and got 23 error:
Assets/Cardboard/Scripts/StereoController.cs(74,4): error CS0246: The type or namespace name `TooltipAttribute' could not be found. Are you missing a using directive or an assembly reference?
Assets/Cardboard/Scripts/StereoController.cs(83,4): error CS0246: The type or namespace name `Tooltip' could not be found. Are you missing a using directive or an assembly reference?
how can i fix it
I"m getting a bunch of errors when trying to import into unity 5, probably API changes?:
Examples:
Assets/Cardboard/Editor/CardboardEditor.cs(40,9): error CS0117: GUI' does not contain a definition for
changed'
Assets/Cardboard/Editor/CardboardEditor.cs(71,13): error CS0117: GUI' does not contain a definition for
changed'
Hi,
First of all i AM aware of the fact that it was stated explicitly that there is no drift compensation present in the SDK.
However, I still find it unreasonable that the SDK lacks it. A Sensor Fusion implementation would be a way to go. Currently there is no way to handle the drift (which is sometimes very serious, i've seen as much as ~+20 deg on y axis per second on some devices), except for to compensate the rotation value after grabbing it from Cardboard.SDK.* which is a bit too late. The drift should be handled internally.
For example this is an iOS library with sensor fusion perfectly in place: https://github.com/orbotix/Sphero-AR-SDK/tree/master/Unity%20Sample
Also, Occulus insight on this: https://www.oculus.com/blog/sensor-fusion-keeping-it-simple/
Unity occulus SDK also has it.
I just find it too awkard that Google authored SDK is lacking such basic functionality, especially when this is potentially one of the bleeding edge technologies.
I convert my app from unity and arduino to cardboard using arduino with bluetooth as joystick controller.
In my first app without cardboard, bluetooth connection latency form arduino to mobile very fast, but when i use CardboardMain prefab as MainCamera and publish app the bluetooth connection latency too slow. i don't know why and how to fix it. I think gyro sensor and accelerometter sensor slow down the bluetooth connection.
The new CardboardGUI is great for VR, but I'd like to add a traditional button to toggle Cardboard mode on/off. However, all OnGUI rendering seems to be overwritten.
Is there any way to still render a GUI.Button or GUI.Texture?
thanks!
Phone: Samsung S4(GT-i9502)
Android: 4.2.2
Unity: 4.6.5
App: DemoScene in cardboard-unity(on master branch)
Logcat:
07-14 21:12:39.536 1477-1558/com.oscar.FirstVR D/Unity﹕ Platform assembly: /mnt/asec/com.oscar.FirstVR-2/pkg.apk/assets/bin/Data/Managed/System.Core.dll (this message is harmless)
07-14 21:12:39.616 1477-1558/com.oscar.FirstVR D/Unity﹕ Platform assembly: /mnt/asec/com.oscar.FirstVR-2/pkg.apk/assets/bin/Data/Managed/System.dll (this message is harmless)
07-14 21:12:40.301 1477-1502/com.oscar.FirstVR D/dalvikvm﹕ Trying to load lib /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so 0x42ba58a0
07-14 21:12:40.446 1477-1502/com.oscar.FirstVR D/dalvikvm﹕ Added shared lib /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so 0x42ba58a0
07-14 21:12:40.446 1477-1502/com.oscar.FirstVR D/dalvikvm﹕ Trying to load lib /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so 0x42ba58a0
07-14 21:12:40.446 1477-1502/com.oscar.FirstVR D/dalvikvm﹕ Shared lib '/mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so' already loaded in same CL 0x42ba58a0
07-14 21:12:40.461 1477-1502/com.oscar.FirstVR A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 1502 (UnityMain)
07-14 21:12:40.516 2434-2434/? I/DEBUG﹕ pid: 1477, tid: 1502, name: UnityMain >>> com.oscar.FirstVR <<<
07-14 21:12:41.261 2434-2434/? I/DEBUG﹕ #1 pc 00173983 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so (gvr::PlatformInfo::PlatformInfo()+626)
07-14 21:12:41.261 2434-2434/? I/DEBUG﹕ #2 pc 0004bd6b /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so (Start+102)
07-14 21:12:41.261 2434-2434/? I/DEBUG﹕ 753912bc 79728368 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.261 2434-2434/? I/DEBUG﹕ 753912c4 797866a0 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.261 2434-2434/? I/DEBUG﹕ 75391304 796d8985 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so (gvr::PlatformInfo::PlatformInfo()+628)
07-14 21:12:41.261 2434-2434/? I/DEBUG﹕ 7539130c 7407a3b8 /mnt/asec/com.oscar.FirstVR-2/lib/libmono.so (lookup_generic_method+32)
07-14 21:12:41.261 2434-2434/? I/DEBUG﹕ 75391320 79784b30 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.266 2434-2434/? I/DEBUG﹕ 75391324 7977fd50 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.266 2434-2434/? I/DEBUG﹕ 75391328 79780038 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.266 2434-2434/? I/DEBUG﹕ 7539132c 79784ab0 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.266 2434-2434/? I/DEBUG﹕ 75391330 7977ffc8 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.266 2434-2434/? I/DEBUG﹕ 75391334 7977ffb4 /mnt/asec/com.oscar.FirstVR-2/lib/libvrunity.so
07-14 21:12:41.266 2434-2434/? I/DEBUG﹕ 7539133c 7407a574 /mnt/asec/com.oscar.FirstVR-2/lib/libmono.so (lookup_method+292)
07-14 21:12:51.291 2934-2945/? I/ActivityManager﹕ Process com.oscar.FirstVR (pid 1477) (adj 0) has died.
07-14 21:12:51.301 2934-2945/? W/ActivityManager﹕ Force removing ActivityRecord{42d94818 u0 com.oscar.FirstVR/com.google.unity.GoogleUnityActivity}: app died, no saved state
07-14 21:12:51.481 2934-3014/? V/SmartFaceService - 3rd party pause﹕ onReceive [android.intent.action.ACTIVITY_STATE/com.oscar.FirstVR/pause]
Hi,
When targeting Android, Unity now builds apps for both armv7 and x86 targets.
However the cardboard plugin embeds only the armv7 version of libRenderingPlugin.so, which breaks the ability to build for x86 targets.
Would it be possible to update the plugin in order to integrate the x86 version of this native library as well ?
i.e. moving Plugins/Android/libs/libRenderingPlugin.so to Plugins/Android/libs/armeabi-v7a/
And adding its x86 version into Plugins/Android/libs/x86/ ?
Thanks.
The white square appears to be affected by head movement, but unless I am looking in a specific direction, the square is usually offscreen. The button and the white square only appear in the left eye.
The scene will appear what I presume is normally if I disable the camera component attached to Main Camera
object (child of head
object) and enable the camera components attached to the Main Camera Left
and Main Camera Right
objects (children of Main Camera
object).
I recall reading in the docs that the camera components on the Main Camera Left
and Main Camera Right
objects were supposed to be disabled, and would enable at runtime. This doesn't appear to be the case for the demo scene.
Deleting the CardBoardMain
object in the scene and adding it again from the prefabs seems to work.
Unity 4.6
The screen stay dark after the splash screen.
Test conditions,
Unity 5.0.0.0f4 Pro
Android device: HTC one M9 stock 5.0.2
Cardboard unity SDK version v0.4.9
Same project works on Nexus 5(Android version 5.1) but not the HTC one M9
It works on both devices if build in Unity 4.6 Pro.
The logcat logged this error message when starting
E/libEGL(10920): call to OpenGL ES API with no current context (logged once per thread)
Hi,
I'm importing the package programmatically using AssetDatabase.ImportPackage (http://docs.unity3d.com/ScriptReference/AssetDatabase.ImportPackage.html) and it throws the following error:
"Error while importing package: Package has unknown format"
However, if I import the package manually using Assets->Import Package or double clicking it works fine. Also, if I export it myself and then import it through my script then all works fine too. It's quite strange. Not sure if this is a unity problem or version incompatibility, but it's the first time it has happened to me and I've worked with quite a lot of packages.
Thank you
On AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
Is there any reason for the internet permission line in the Android manifest? May be like the app can load the viewer spec from the internet?
I'd like to remove that permission from my manifest (since it would be weird to have an app that features no online functionality whatsoever to request internet connection), but I'm afraid it could cripple some random feature I don't know.
Since around May 30, the number errors reported by analytics has increase by over 100x. Around this time the volume buttons also stopped working and many users began experiences blank screen or crashes in their reviews. I have created a new empty project with Unity 4.6.6f2 and a fresh download of the official Cardboard Unity plugin and built the Demo scene to my Nexus 5(happens on N6 too) and have seen that the volume buttons do not work.
Logcat of that attempt:
https://www.dropbox.com/s/zltc7k8enounmyg/CardboardDcemoScene.txt?dl=0
There is also another odd behavior where any touch input code that was working fine before now requires one additional finger to correctly achieve a "held down" state and not just a "tap". I am not sure if that is related to this Cardboard issue.
This has happened in any app using the Cardboard plugin for unity since around May 30. Here is the released app I am referring to when it comes to user errors:
https://play.google.com/store/apps/details?id=com.frag.vrrollercoaster&hl=en
These are the 3 errors that I have received allot from users since the update. I may have done a Cardboard plugin update since May 30 but still get these errors allot:
Exception calling method injectKeypress: UnityEngine.AndroidJavaException: java.lang.NoSuchMethodError: no non-static method 'Lcom/google/vr/platform/unity/UnityVrActivityListener;.injectKeypress(I)V' at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0 at UnityEngine.AndroidJNISafe.GetMethodID (IntPtr obj, System.String name, System.String sig) [0x00000] in :0 at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in :0 at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr javaClass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in :0 at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in :0 at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in :0 at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in :0 at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.Object[] args) [0x00000] in :0 at AndroidBaseVRDevice.CallObjectMethod (UnityEngine.AndroidJavaObject jo, System.String name, System.Object[] args) [0x00000] in :0
Exception calling method injectKeypress: UnityEngine.AndroidJavaException: java.lang.NoSuchMethodError: no method with name='injectKeypress' signature='(I)V' in class Lcom/google/vr/platform/unity/UnityVrActivityListener; at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0 at UnityEngine.AndroidJNISafe.GetMethodID (IntPtr obj, System.String name, System.String sig) [0x00000] in :0 at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in :0 at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr javaClass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in :0 at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in :0 at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in :0 at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in :0 at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.Object[] args) [0x00000] in :0 at AndroidBaseVRDevice.CallObjectMethod (UnityEngine.AndroidJavaObject jo, System.String name, System.Object[] args) [0x00000] in :0
Object is null when calling method injectSingleTap
Hello,
I ran into an issue with the Cardboard SDK. The device is running on Android 4.1.2 (it's also a very old Samsung device). I don't know precisely if the origin of the problem is coming from the Cardboard SDK (the RuntimeException occurred in the Cardboard SDK) or Unity3D itself (an OpenGL ES problem ?). When in doubt, I post the stacktrace of the error.
java.lang.NoClassDefFoundError: com/unity3d/player/UnityPlayer$2
at com.unity3d.player.UnityPlayer.setScreenSize(Unknown Source)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.a(Unknown Source)
at com.unity3d.player.UnityPlayer$a.run(Unknown Source)
Caused by: java.lang.RuntimeException: glAttachShader: glError 1280
at com.google.vrtoolkit.cardboard.DistortionRenderer.checkGlError(DistortionRenderer.java:782)
at com.google.vrtoolkit.cardboard.DistortionRenderer.createProgram(DistortionRenderer.java:682)
at com.google.vrtoolkit.cardboard.DistortionRenderer.createProgramHolder(DistortionRenderer.java:717)
at com.google.vrtoolkit.cardboard.DistortionRenderer.createProgramHolder(DistortionRenderer.java:699)
at com.google.vrtoolkit.cardboard.DistortionRenderer.updateTextureAndDistortionMesh(DistortionRenderer.java:414)
at com.google.vrtoolkit.cardboard.DistortionRenderer.undistortTexture(DistortionRenderer.java:235)
at com.google.vrtoolkit.cardboard.CardboardView$RendererHelper$11.run(CardboardView.java:938)
at com.google.vrtoolkit.cardboard.CardboardView.queueEvent(CardboardView.java:708)
at com.google.vrtoolkit.cardboard.CardboardView$RendererHelper.undistortTexture(CardboardView.java:935)
at com.google.vrtoolkit.cardboard.CardboardView.undistortTexture(CardboardView.java:630)
at com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity.renderUndistortedTextureInternal(UnityCardboardActivity.java:148)
at com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity.renderUndistortedTexture(UnityCardboardActivity.java:143)
... 3 more
Thank you for your help !
I noticed that when i disable direct render to get bloom working on the main camera, i cannot swap from 2D to VR mode while running in the editor as Unity will crash immediately. It also crashes if direct render is enabled and it's running in VR mode, and then direct render is disabled.
I'm pretty sure i had it working with direct render off before, I've been using the bloom script for a while now, although i only updated to v5.0 this morning.
Works either way on the phone, this appears to be an editor-only issue.
I tried re-importing the entire plugin (delete cardboard and plugins folder, import again) still crashes.
Hello,
I've experienced a problem with the cardboard surface on HTC devices. The stereo views on the HTC phone has a very small dimension compared with the other phones like Sony devices. I've tried various HTC One X devices with different android version (4.4.4 and 4.2) and the result is the same, the view on the HTC seems to not be in "full screen" mode.
This is the "normal" view size on my phone (Sony) in my app :
This is the "small" view size on the HTC phone in my app :
Any idea to fix this problem ? Thank you.
Unity: 4.6.5
Android
logcat:
07-22 17:18:23.283 10871-10905/com.oscar.FirstVR E/Unity﹕ Exception calling method setTouchCoordinates: UnityEngine.AndroidJavaException: java.lang.NoSuchMethodError: setTouchCoordinates
at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0
at UnityEngine.AndroidJNISafe.GetMethodID (IntPtr obj, System.String name, System.String sig) [0x00000] in :0
at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in :0
at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr javaClass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in :0
at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in :0
at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in :0
at UnityEngin
Any idea's why I would be getting this when trying to build?
Temp\StagingArea\libs\armeabi-v7a\libRenderingPlugin.so already exists
Unable to find unity activity in manifest. You need to make sure orientation attribute is set to fullSensor manually.
UnityEditor.PostprocessBuildPlayer:Postprocess(BuildTarget, String, String, String, Int32, Int32, String, String, BuildOptions, RuntimeClassRegistry)
It seems that SDK 0.5 is pushing screen luminosity to the maximum which is, I find, a bit exaggerated: whites are blinding and dark tones are bleeding...
Will you fix it (from my experience 50% lum is the best) or give control over it or leave it as is (and I'll rework my lightmaps)?
My preference would be having control. Door scenes may require blinding whites.
Thanks!
Just updated my project to 0.4.9 and now getting this error when running my project:
Tiled GPU perf. warning: RenderTexture color surface (0x0) was not cleared/discarded, doing
UnityEngine.Graphics:Blit(Texture, RenderTexture)
RadialUndistortionEffect:OnRenderImage(RenderTexture, RenderTexture) (at Assets/Cardboard/Scripts/RadialUndistortionEffect.cs:58)
UnityEngine.Camera:Render()
CardboardEye:Render() (at Assets/Cardboard/Scripts/CardboardEye.cs:200)
StereoController:OnPreCull() (at Assets/Cardboard/Scripts/StereoController.cs:281)
Hi, I want to know if the device (Android phone) screen is been touched or not, so I used Input.touchCount. If Input.touchCount>0, then screen is touched. This works in a brand new project, but not after I imported the Cardboard SDK and used CardboardMain.
When I activated CardboardMain GameObject, Input.touchCount = 0 when no finger touched, = 0 when one finger touched, = 1 when two finger touched, ... etc, which is not the correct finger number count, thus I can't tell if the screen is touched or not.
I guessed it's something to do with Cardboard.Triggered, but I couldn't find a way to change it in Cardboard.cs. Please advise or point the direction about what should I do, thanks!
The docs at https://developers.google.com/cardboard/unity/reference list StereoController.cs:
The Unity plugin package contains the following:
...
StereoController.cs - Controls mono vs stereo rendering.
But it's not on the page! The description for StereoControllerEditor.cs even mentions it
The usage of the these actions is described in the StereoController.cs section above.
But the info is not 'above'...
Just try demo. Get it crash error. Anyone know it?
01-24 15:24:12.468 7271-7271/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 4.6.0b20
Device model : Xiaomi HM 1SW
Device fingerprint: Xiaomi/armani/armani:4.3/JLS36C/JHCMIBH45.0:user/release-keys
Caused by: java.lang.VerifyError: com/google/vrtoolkit/cardboard/CardboardDeviceParams
at com.google.vrtoolkit.cardboard.HeadMountedDisplayManager.createCardboardDeviceParams(HeadMountedDisplayManager.java:214)
at com.google.vrtoolkit.cardboard.HeadMountedDisplayManager.(HeadMountedDisplayManager.java:54)
at com.google.vrtoolkit.cardboard.CardboardView.init(CardboardView.java:768)
at com.google.vrtoolkit.cardboard.CardboardView.(CardboardView.java:263)
at com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity.onCreate(UnityCardboardActivity.java:184)
at android.app.Activity.performCreate(Activity.java:5135)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2182)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2268)
at android.app.ActivityThread.access$600(ActivityThread.java:148)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1263)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5162)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:756)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:572)
at miui.dexspy.DexspyInstaller.main(DexspyInstaller.java:171)
at dalvik.system.NativeStart.main(Native Method)
Making a unity app with the cardboard sdk produces and ANR after approximately 2.5 minutes.
Even if the unity project is just an empty scene, as long as the cardboard plugin (unitycardboardactivity.jar) is included in the project it will produce the error after 2-3 minutes. (works fine until then). I have tested with both 0.4.9 and 0.4.5
Happens on my Verizon HTC M8 (android 5.0.1).
Seems to work fine on Galaxy S5 without producing error.
error: "Reason: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events"
Adb log bellow...
W/ActivityManager( 864): mDVFSHelper.acquire()
E/dalvikvm( 9084): >>>>> Normal User
E/dalvikvm( 9084): >>>>> com.nvisions.cardboardvr [ userId:0 | appId:10237 ]
D/dalvikvm( 9084): Late-enabling CheckJNI
I/ActivityManager( 864): Config changes=480 {0 1.0 530mcc24mnc en_NZ ldltr sw360dp w640dp h335dp 480dpi nrml long land finger -keyb/v/h -nav/h s.23}
D/dalvikvm( 9084): Trying to load lib /mnt/asec/com.nvisions.cardboardvr-2/lib/libRenderingPlugin.so 0x42d24388
D/dalvikvm( 9084): Added shared lib /mnt/asec/com.nvisions.cardboardvr-2/lib/libRenderingPlugin.so 0x42d24388
D/dalvikvm( 9084): Trying to load lib /mnt/asec/com.nvisions.cardboardvr-2/lib/libmain.so 0x42d24388
D/dalvikvm( 9084): Added shared lib /mnt/asec/com.nvisions.cardboardvr-2/lib/libmain.so 0x42d24388
I/Unity ( 9084): gles_mode = 0 (integer)
I/Unity ( 9084): splash_mode = 0 (integer)
I/Unity ( 9084): hide_status_bar = True (bool)
I/Unity ( 9084): useObb = False (bool)
I/Unity ( 9084): development_player = True (bool)
D/Unity ( 9084): surfaces: attach glview
W/dalvikvm( 9084): Unable to resolve superclass of Lcom/google/vrtoolkit/cardboard/proto/Phone$PhoneParams; (1646)
W/dalvikvm( 9084): Link of class 'Lcom/google/vrtoolkit/cardboard/proto/Phone$PhoneParams;' failed
E/dalvikvm( 9084): Could not find class 'com.google.vrtoolkit.cardboard.proto.Phone$PhoneParams', referenced from method com.google.vrtoolkit.cardboard.ScreenParams.createFromInputStream
W/dalvikvm( 9084): VFY: unable to resolve new-instance 1710 (Lcom/google/vrtoolkit/cardboard/proto/Phone$PhoneParams;) in Lcom/google/vrtoolkit/cardboard/ScreenParams;
D/dalvikvm( 9084): VFY: replacing opcode 0x22 at 0x004e
W/dalvikvm( 9084): VFY: unable to resolve exception class 1645 (Lcom/google/protobuf/nano/InvalidProtocolBufferNanoException;)
W/dalvikvm( 9084): VFY: unable to find exception handler at addr 0x5e
W/dalvikvm( 9084): VFY: rejected Lcom/google/vrtoolkit/cardboard/ScreenParams;.createFromInputStream (Landroid/view/Display;Ljava/io/InputStream;)Lcom/google/vrtoolkit/cardboard/ScreenParams;
W/dalvikvm( 9084): VFY: rejecting opcode 0x0d at 0x005e
W/dalvikvm( 9084): VFY: rejected Lcom/google/vrtoolkit/cardboard/ScreenParams;.createFromInputStream (Landroid/view/Display;Ljava/io/InputStream;)Lcom/google/vrtoolkit/cardboard/ScreenParams;
W/dalvikvm( 9084): Verifier rejected class Lcom/google/vrtoolkit/cardboard/ScreenParams;
W/dalvikvm( 9084): threadid=1: thread exiting with uncaught exception (group=0x4201ada0)
W/ActivityManager( 864): Force finishing activity com.nvisions.cardboardvr/com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity
I/ActivityManager( 864): Config changes=480 {0 1.0 530mcc24mnc en_NZ ldltr sw360dp w360dp h615dp 480dpi nrml long port finger -keyb/v/h -nav/h s.24}
W/ActivityManager( 864): mDVFSHelper.release()
D/dalvikvm( 8621): GC_CONCURRENT freed 2060K, 45% free 12036K/21520K, paused 2ms+1ms, total 12ms
D/dalvikvm( 8621): WAIT_FOR_CONCURRENT_GC blocked 6ms
I/ActivityManager( 864): Process com.nvisions.cardboardvr (pid 9084) (adj 9) has died.
Hi
I have the following screen problem:
https://www.dropbox.com/s/bwkgzeg0v23aszh/boxeovr.png?dl=0
With:
thks in advance!
I have a HUD or UI in front of the MainCamera that is one texture covering the center of the screen, however using the GazeInput module, the GazePointer always moves right to the canvas, no matter the layer I have selected, Ignore raycasting, seperate UI layer, etc...
And a similar issue when I place non interactable ui elements on the screen, such as title text, I can't get the Gazepoint not to activate on those elements.
Using Unity 5.0.1 and sdk 5. Thx
I am running Unity 5.0.0f4 and the cardboard-unity 0.4.5.
I have tried creating a basic scene with a plane, and pull in the CardboardMain prefab from the Cardboard/Prefabs folder, I can run fine in the editor, but when I try running it on my device (Nexus 5 running Android 5.1) I get the initial splash screen, followed by a completely white screen.
I have also tried running the DemoScene after removing references to CardboardGUI, but then I only get the Unity splash screen, which never updates.
Any help is greatly appreciated!
I've tried building DemoScene from v0.5 package and run it on my Galaxy Note but it crashed. It works on my Galaxy Note 2 (n7100) but not on my older phones. Then I reverted to v0.4 and it worked fine there.
Looks like v0.5 libvrunity.so crashes.
Logcat:
D/dalvikvm(17148): Trying to load lib /data/data/com.Company.StereoMobile/lib/libmain.so 0x425461a0
D/dalvikvm(17148): Added shared lib /data/data/com.Company.StereoMobile/lib/libmain.so 0x425461a0
I/Unity (17148): splash_mode = 0 (integer)
I/Unity (17148): hide_status_bar = True (bool)
I/Unity (17148): useObb = False (bool)
D/Unity (17148): surfaces: attach glview
I/Unity (17148): Choreographer available: Enabling VSYNC timing
I/Unity (17148): onResume
D/Unity (17148): [EGL] Attaching window :0x5b088728
D/Unity (17148): [EGL] Attaching window :0x5b088728
I/Unity (17148): windowFocusChanged: true
W/ActivityManager( 2015): mDVFSLock.release()
D/Unity (17148): SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 2, Memory = 862mb
D/Unity (17148): [SHA1] ed9813132770b56693932176ff28c299faaf71d0 20904397 bytes ~ lib/armeabi-v7a/libunity.so
D/Unity (17148): Mono path[0] = '/data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed'
D/Unity (17148): Mono config path = 'assets/bin/Data/Managed'
D/Unity (17148): PlayerConnection initialized from /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data (debug = 0)
D/Unity (17148): PlayerConnection initialized network socket : 0.0.0.0 55064
D/Unity (17148): PlayerConnection initialized unix socket : Unity-com.Company.StereoMobile
D/Unity (17148): Multi-casting "[IP] 192.168.1.105 [Port] 55064 [Flags] 3 [Guid] 648366485 [EditorId] 3384970603 [Version] 1048832 [Id] AndroidPlayer([email protected]) [Debug] 1" to [225.0.0.222:54997]...
D/Unity (17148): Waiting for connection from host on [192.168.1.105:55064]...
D/dalvikvm( 2708): GC_CONCURRENT freed 671K, 13% free 14593K/16583K, paused 16ms+7ms, total 53ms
D/Unity (17148): PlayerConnection accepted from [192.168.1.100] handle:0x32
D/Unity (17148): Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56485
I/ActivityManager( 2015): Config changed: {Rect(0, 624 - 800, 656) 1 0 1.0 0mcc0mnc ru_RU sw400dp w640dp h375dp nrml land finger -keyb/v/h -nav/h s.49}
I/Unity (17148): onConfigurationChanged
D/Unity (17148): [EGL] Attaching window :0x5b088728
D/Unity (17148): InitializeMonoFromMain OK (5efbaee0)
D/Unity (17148): PlayerConnection already initialized - listening to [192.168.1.105:55064]
D/Unity (17148): PlayerInitEngineNoGraphics OK
D/Unity (17148): [EGL] Request: ES 2.0 RGBA32 8888 0/0
D/Unity (17148): [EGL] Selected: ID[30] ES 2.0 RGBA32 8888 0/0
D/Unity (17148): ANativeWindow: (1280/800) RequestedResolution: (0/0) EGLSurface: (1280/800)
D/Unity (17148): Renderer: Mali-400 MP
D/Unity (17148): Vendor: ARM
D/Unity (17148): Version: OpenGL ES 2.0
D/Unity (17148): GLES: 2
D/Unity (17148): GL_EXT_debug_marker GL_OES_texture_npot GL_OES_compressed_ETC1_RGB8_texture GL_OES_standard_derivatives GL_OES_EGL_image GL_OES_depth24 GL_ARM_rgba8 GL_ARM_mali_shader_binary GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_EXT_blend_minmax GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_rgb8_rgba8 GL_EXT_multisampled_render_to_texture GL_EXT_discard_framebuffer
D/Unity (17148): OPENGL LOG: Creating OpenGL ES 2.0 graphics device
D/Unity (17148): InitializeGfxDevice OK
D/Unity (17148): Initialize engine version: 5.1.1f1 (2046fc06d4d8)
D/Unity (17148): Begin MonoManager ReloadAssembly
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.dll (this message is harmless)
D/Unity (17148): Loading /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.dll into Unity Child Domain
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll (this message is harmless)
D/Unity (17148): Loading /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll into Unity Child Domain
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dll (this message is harmless)
D/Unity (17148): Loading /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dll into Unity Child Domain
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/Assembly-UnityScript.dll (this message is harmless)
D/Unity (17148): Loading /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/Assembly-UnityScript.dll into Unity Child Domain
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll (this message is harmless)
D/Unity (17148): Loading /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll into Unity Child Domain
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.Networking.dll (this message is harmless)
D/Unity (17148): Loading /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.Networking.dll into Unity Child Domain
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.Analytics.dll (this message is harmless)
D/Unity (17148): Loading /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/UnityEngine.Analytics.dll into Unity Child Domain
D/Unity (17148): - Completed reload, in 0.198 seconds
D/Unity (17148): PlayerInitEngineGraphics OK
D/Unity (17148): Found 11 native sensors
D/Unity (17148): Sensor : Accelerometer ( 1) ; 0.004788 / 0.00s ; K3DH Acceleration Sensor / STMicroelectronics
D/Unity (17148): Sensor : Accelerometer ( 1) ; 0.004788 / 0.00s ; K3DH Acceleration Sensor / STMicroelectronics
D/Unity (17148): Requested framebuffer: resolution[1280x800], rgba[8/8/8/8], depth+stencil[on], samples[1]
D/Unity (17148): Created framebuffer: resolution[1280x800], rgba[8/8/8/8], depth+stencil[24/8], samples[0]
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/System.Core.dll (this message is harmless)
D/Unity (17148): Platform assembly: /data/app/com.Company.StereoMobile-2.apk/assets/bin/Data/Managed/System.dll (this message is harmless)
D/dalvikvm( 2015): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 2015): GC_EXPLICIT freed 5827K, 50% free 33181K/66119K, paused 4ms+12ms, total 112ms
W/Unity (17148): The referenced script on this Behaviour is missing!
W/Unity (17148):
W/Unity (17148): (Filename: ./Runtime/Mono/MonoBehaviour.cpp Line: 1715)
W/Unity (17148):
W/Unity (17148): The referenced script on this Behaviour is missing!
W/Unity (17148):
W/Unity (17148): (Filename: ./Runtime/Mono/MonoBehaviour.cpp Line: 1715)
W/Unity (17148):
W/Unity (17148): The referenced script on this Behaviour is missing!
W/Unity (17148):
W/Unity (17148): (Filename: ./Runtime/Mono/MonoBehaviour.cpp Line: 1715)
W/Unity (17148):
W/Unity (17148): The referenced script on this Behaviour is missing!
W/Unity (17148):
W/Unity (17148): (Filename: ./Runtime/Mono/MonoBehaviour.cpp Line: 1715)
W/Unity (17148):
I/Unity (17148): Default clip could not be found in attached animations list.
I/Unity (17148):
I/Unity (17148): (Filename: ./Runtime/Animation/Animation.cpp Line: 400)
I/Unity (17148):
D/dalvikvm(17148): Trying to load lib /data/data/com.Company.StereoMobile/lib/libvrunity.so 0x425461a0
D/dalvikvm(17148): Added shared lib /data/data/com.Company.StereoMobile/lib/libvrunity.so 0x425461a0
I/DEBUG ( 1715): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1715): Build fingerprint: 'samsung/GT-N7000/GT-N7000:4.1.2/JZO54K/N7000XXLSZ:user/release-keys'
I/DEBUG ( 1715): pid: 17148, tid: 17169, name: UnityMain >>> com.Company.StereoMobile <<<
I/DEBUG ( 1715): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/ActivityManager( 2015): Process com.google.android.talk (pid 16209) (adj 11) has died.
I/ActivityManager( 2015): Process com.sec.chaton (pid 15906) (adj 12) has died.
I/ActivityManager( 2015): Process com.google.android.music:main (pid 16506) (adj 11) has died.
I/DEBUG ( 1715): r0 41644970 r1 00000000 r2 41644120 r3 00000000
I/DEBUG ( 1715): r4 00000000 r5 5e7f22e4 r6 00000000 r7 670eb20c
I/DEBUG ( 1715): r8 00000000 r9 670deb1c sl 5e7f2310 fp 5e7f22e0
I/DEBUG ( 1715): ip 41644990 sp 5e7f2298 lr 4086cafb pc 4086cafe cpsr 60000030
I/DEBUG ( 1715): d0 00000140439c0de3 d1 3f80000042700000
I/DEBUG ( 1715): d2 407381bc60000000 d3 407381bc60000000
I/DEBUG ( 1715): d4 0000000000000000 d5 000001f600000000
I/DEBUG ( 1715): d6 439c0de300000000 d7 38aaab9b38aaab9b
I/DEBUG ( 1715): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 1715): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 1715): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 1715): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 1715): d16 0000000300000000 d17 0000050000000001
I/DEBUG ( 1715): d18 0000050000000320 d19 439c0de300000320
I/DEBUG ( 1715): d20 61c1aa0042640106 d21 3f80000000000000
I/DEBUG ( 1715): d22 0000000000000000 d23 3f80000000000000
I/DEBUG ( 1715): d24 3f7fec7cbc8da925 d25 000000003c8d07a1
I/DEBUG ( 1715): d26 bc8b3080bf7fec7c d27 00000000bc8f7800
I/DEBUG ( 1715): d28 bc8f7800bc8d0790 d29 000000003f7fec3c
I/DEBUG ( 1715): d30 3f238c40bbed0000 d31 3f8000003b990000
I/DEBUG ( 1715): scr 8000001a
I/DEBUG ( 1715):
I/DEBUG ( 1715): backtrace:
I/DEBUG ( 1715): #00 pc 0004cafe /system/lib/libdvm.so
I/DEBUG ( 1715): #01 pc 00173983 /data/data/com.Company.StereoMobile/lib/libvrunity.so (gvr::PlatformInfo::PlatformInfo()+626)
I/DEBUG ( 1715):
I/DEBUG ( 1715): stack:
I/DEBUG ( 1715): 5e7f2258 00000000
I/DEBUG ( 1715): 5e7f225c 67082368 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f2260 41a1f800 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 1715): 5e7f2264 670e06a0 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f2268 40869d07 /system/lib/libdvm.so
I/DEBUG ( 1715): 5e7f226c 00000000
I/DEBUG ( 1715): 5e7f2270 5e7f229c
I/DEBUG ( 1715): 5e7f2274 5e7f22e4
I/DEBUG ( 1715): 5e7f2278 00000000
I/DEBUG ( 1715): 5e7f227c 40868f8d /system/lib/libdvm.so
I/DEBUG ( 1715): 5e7f2280 5e7f229c
I/DEBUG ( 1715): 5e7f2284 41644120
I/DEBUG ( 1715): 5e7f2288 00000000
I/DEBUG ( 1715): 5e7f228c 5e7f22e4
I/DEBUG ( 1715): 5e7f2290 df0027ad
I/DEBUG ( 1715): 5e7f2294 00000000
I/DEBUG ( 1715): #00 5e7f2298 41644120
I/DEBUG ( 1715): 5e7f229c 41644970
I/DEBUG ( 1715): 5e7f22a0 41644120
I/DEBUG ( 1715): 5e7f22a4 67032985 /data/data/com.Company.StereoMobile/lib/libvrunity.so (gvr::PlatformInfo::PlatformInfo()+628)
I/DEBUG ( 1715): #01 5e7f22a8 6681c510
I/DEBUG ( 1715): 5e7f22ac 5d4b8c1c /data/data/com.Company.StereoMobile/lib/libmono.so
I/DEBUG ( 1715): 5e7f22b0 00000004
I/DEBUG ( 1715): 5e7f22b4 5e7f2304
I/DEBUG ( 1715): 5e7f22b8 5e7f23c8
I/DEBUG ( 1715): 5e7f22bc 00000010
I/DEBUG ( 1715): 5e7f22c0 670deb30 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f22c4 670d9d50 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f22c8 670da038 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f22cc 670deab0 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f22d0 670d9fc8 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f22d4 670d9fb4 /data/data/com.Company.StereoMobile/lib/libvrunity.so
I/DEBUG ( 1715): 5e7f22d8 6681c510
I/DEBUG ( 1715): 5e7f22dc 00000000
I/DEBUG ( 1715): 5e7f22e0 670eb218
I/DEBUG ( 1715): 5e7f22e4 670eb218
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near r0:
I/DEBUG ( 1715): 41644950 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 1715): 41644960 00000000 00000000 72745374 00000453 ........tStrS...
I/DEBUG ( 1715): 41644970 5d0fb7a0 5a665fac 573f2028 5b08f000 ...]._fZ( ?W...[
I/DEBUG ( 1715): 41644980 00000000 00000000 5e7f2da8 00000000 .........-.^....
I/DEBUG ( 1715): 41644990 5e7f2ddc 0000000c 00000000 4083e0c0 .-.^...........@
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near r2:
I/DEBUG ( 1715): 41644100 65726f68 6172676f 72656870 6c614324 horeographer$Cal
I/DEBUG ( 1715): 41644110 6361626c 6575516b 003b6575 00000023 lbackQueue;.#...
I/DEBUG ( 1715): 41644120 408c3dd4 00000000 0000000c 41644970 [email protected]
I/DEBUG ( 1715): 41644130 00000000 5b08b440 4163bb90 00000023 ....@..[..cA#...
I/DEBUG ( 1715): 41644140 425461a0 4007e544 2e643379 79616c70 [email protected]
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near r5:
I/DEBUG ( 1715): 5e7f22c4 670d9d50 670da038 670deab0 670d9fc8 P..g8..g...g...g
I/DEBUG ( 1715): 5e7f22d4 670d9fb4 6681c510 00000000 670eb218 ...g...f.......g
I/DEBUG ( 1715): 5e7f22e4 670eb218 670da040 6681f8a5 6681f8a5 [email protected]
I/DEBUG ( 1715): 5e7f22f4 6681f8a5 6681f8a4 6681f8a6 6681faa4 ...f...f...f...f
I/DEBUG ( 1715): 5e7f2304 670eaa30 00000010 6681f8a4 670de760 0..g.......f`..g
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near r7:
I/DEBUG ( 1715): 670eb1ec 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 1715): 670eb1fc 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 1715): 670eb20c 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 1715): 670eb21c 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 1715): 670eb22c 00000000 00000000 00000002 00000010 ................
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near r9:
I/DEBUG ( 1715): 670deafc ffffffd0 ffffffd0 670de788 00000000 ...........g....
I/DEBUG ( 1715): 670deb0c 00000000 0000002c 00000000 670dea78 ....,.......x..g
I/DEBUG ( 1715): 670deb1c 00000000 00000000 ffffffd4 ffffffd4 ................
I/DEBUG ( 1715): 670deb2c 670dea78 00000000 00000000 0000002c x..g........,...
I/DEBUG ( 1715): 670deb3c 00000000 670dea78 00000000 00000000 ....x..g........
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near sl:
I/DEBUG ( 1715): 5e7f22f0 6681f8a5 6681f8a5 6681f8a4 6681f8a6 ...f...f...f...f
I/DEBUG ( 1715): 5e7f2300 6681faa4 670eaa30 00000010 6681f8a4 ...f0..g.......f
I/DEBUG ( 1715): 5e7f2310 670de760 00000006 00000000 00001002 `..g............
I/DEBUG ( 1715): 5e7f2320 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 1715): 5e7f2330 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near fp:
I/DEBUG ( 1715): 5e7f22c0 670deb30 670d9d50 670da038 670deab0 0..gP..g8..g...g
I/DEBUG ( 1715): 5e7f22d0 670d9fc8 670d9fb4 6681c510 00000000 ...g...g...f....
I/DEBUG ( 1715): 5e7f22e0 670eb218 670eb218 670da040 6681f8a5 [email protected]
I/DEBUG ( 1715): 5e7f22f0 6681f8a5 6681f8a5 6681f8a4 6681f8a6 ...f...f...f...f
I/DEBUG ( 1715): 5e7f2300 6681faa4 670eaa30 00000010 6681f8a4 ...f0..g.......f
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near ip:
I/DEBUG ( 1715): 41644970 5d0fb7a0 5a665fac 573f2028 5b08f000 ...]._fZ( ?W...[
I/DEBUG ( 1715): 41644980 00000000 00000000 5e7f2da8 00000000 .........-.^....
I/DEBUG ( 1715): 41644990 5e7f2ddc 0000000c 00000000 4083e0c0 .-.^...........@
I/DEBUG ( 1715): 416449a0 00000000 00000000 5667e170 5a662300 ........p.gV.#fZ
I/DEBUG ( 1715): 416449b0 00000000 00000000 00000001 00004000 .............@..
I/DEBUG ( 1715):
I/DEBUG ( 1715): memory near sp:
I/DEBUG ( 1715): 5e7f2278 00000000 40868f8d 5e7f229c 41644120 .......@.".^ AdA
I/DEBUG ( 1715): 5e7f2288 00000000 5e7f22e4 df0027ad 00000000 .....".^.'......
I/DEBUG ( 1715): 5e7f2298 41644120 41644970 41644120 67032985 AdApIdA AdA.).g
I/DEBUG ( 1715): 5e7f22a8 6681c510 5d4b8c1c 00000004 5e7f2304 ...f..K].....#.^
I/DEBUG ( 1715): 5e7f22b8 5e7f23c8 00000010 670deb30 670d9d50 .#.^....0..gP..g
I/DEBUG ( 1715):
I/DEBUG ( 1715): code around pc:
I/DEBUG ( 1715): 4086cadc fa5ef7fc bd3e4620 b5134602 a801460c ..^. F>..F...F..
I/DEBUG ( 1715): 4086caec f7fc4611 4621fa31 f7fd9801 4603fa29 .F..1.!F....)..F
I/DEBUG ( 1715): 4086cafc 68199801 fff2f7fb a8014604 fa48f7fc ...h.....F....H.
I/DEBUG ( 1715): 4086cb0c bd1c4620 4606b5f0 460cb087 4631a803 F.....F...F..1F
I/DEBUG ( 1715): 4086cb1c 461f4615 fa18f7fc 98034621 fa10f7fd .F.F....!F......
I/DEBUG ( 1715):
I/DEBUG ( 1715): code around lr:
I/DEBUG ( 1715): 4086cad8 a8012401 fa5ef7fc bd3e4620 b5134602 .$....^. F>..F..
I/DEBUG ( 1715): 4086cae8 a801460c f7fc4611 4621fa31 f7fd9801 .F...F..1.!F....
I/DEBUG ( 1715): 4086caf8 4603fa29 68199801 fff2f7fb a8014604 )..F...h.....F..
I/DEBUG ( 1715): 4086cb08 fa48f7fc bd1c4620 4606b5f0 460cb087 ..H. F.....F...F
I/DEBUG ( 1715): 4086cb18 4631a803 461f4615 fa18f7fc 98034621 ..1F.F.F....!F..
I/DEBUG ( 1715): !@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 17148
I/ActivityManager( 2015): Process com.Company.StereoMobile (pid 17148) (adj 0) has died.
I/ActivityManager( 2015): Config changed: {Rect(624, 0 - 656, 800) 1 0 1.0 0mcc0mnc ru_RU sw400dp w400dp h615dp nrml port finger -keyb/v/h -nav/h s.50}
D/dalvikvm( 2165): GC_CONCURRENT freed 1882K, 14% free 23271K/26951K, paused 21ms+45ms, total 266ms
D/dalvikvm( 2337): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm(17014): GC_CONCURRENT freed 339K, 10% free 12231K/13511K, paused 10ms+2ms, total 99ms
D/dalvikvm( 2337): GC_EXPLICIT freed 3293K, 12% free 39400K/44679K, paused 35ms+16ms, total 193ms
D/dalvikvm( 2015): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 2015): GC_EXPLICIT freed 2222K, 51% free 32815K/66119K, paused 187ms+10ms, total 416ms
I've had 2 reports from 15,000 installs that they can not get past the setup screen on their iOS devices with the cardboard app.
One was just a bad review, but the other tweeted and let me know that it he was on iOS 7.1.1 and and iPhone 5s.
P.S
Outside of this problem, this is amazing. Thanks for uniting mobile VR.
Running an Android app that's built using plugin v0.4.10 on Unity 4 (I tried on both Unity 4.5 and 4.6.4f1 free edition) made the camera go upside down. Here's a screenshot from the demo scene, notice the tiled floor is on the top side of the screen.
The camera renders fine on the Editor, but on a mobile device (I tried it with a Nexus 5) it's upside down. When it's built with plugin v0.4.9 instead of v0.4.10, the camera renders normally on a mobile device.
Have a problem with Optimus G. previous version had a no problem.
HW : optumus G (L-01E)
Andoid : 4.1.2
Unity3d : 5.0.2f1 personal
Cardboard sdk : 0.5
05-29 16:44:01.445 12471-12471/com.example.CardboardUnityDemo I/Unity﹕ windowFocusChanged: true
05-29 16:44:01.455 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 4, Memory = 1816mb
05-29 16:44:02.265 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ [SHA1] 05f0c014c16a8a06257948c018f6792bb3a90b94 21489687 bytes ~ lib/armeabi-v7a/libunity.so
05-29 16:44:03.036 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ [SHA1] 24b169a7ce40726755333dfb3696ef059df04cba 24936126 bytes ~ lib/x86/libunity.so
05-29 16:44:03.036 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Mono path[0] = '/data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed'
05-29 16:44:03.036 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Mono config path = 'assets/bin/Data/Managed'
05-29 16:44:03.036 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ PlayerConnection initialized from /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data (debug = 0)
05-29 16:44:03.036 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ PlayerConnection initialized network socket : 0.0.0.0 55320
05-29 16:44:03.036 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ PlayerConnection initialized unix socket : Unity-com.example.CardboardUnityDemo
05-29 16:44:03.036 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Multi-casting "[IP] 0.0.0.0 [Port] 55320 [Flags] 2 [Guid] 3299062717 [EditorId] 4245193351 [Version] 1048832 [Id] AndroidPlayer([email protected]) [Debug] 0" to [225.0.0.222:54997]...
05-29 16:44:03.186 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ InitializeMonoFromMain OK (5cb48ee0)
05-29 16:44:03.186 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ PlayerConnection already initialized - listening to [0.0.0.0:55320]
05-29 16:44:03.216 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ PlayerInitEngineNoGraphics OK
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo I/Adreno200-EGL﹕ <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: (CL3243160)
Build Date: 02/06/13 Wed
Local Branch: GK_LGE_JB_2.2_RB2_AU130
Remote Branch:
Local Patches:
Reconstruct Branch:
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ [EGL] Request: ES2 RGB0 000 0/0
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo W/Adreno200-EGL﹕ <qeglDrvAPI_eglGetConfigAttrib:481>: EGL_BAD_ATTRIBUTE
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo W/Adreno200-EGL﹕ <qeglDrvAPI_eglGetConfigAttrib:481>: EGL_BAD_ATTRIBUTE
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo W/Adreno200-EGL﹕ <qeglDrvAPI_eglGetConfigAttrib:481>: EGL_BAD_ATTRIBUTE
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ [EGL] Selected: ID[1] ES2 RGB16 565 0/0
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ [EGL] Request: ES2 RGBA32 8888 0/0
05-29 16:44:03.236 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ [EGL] Selected: ID[4] ES2 RGBA32 8888 0/0
05-29 16:44:03.286 12471-12486/com.example.CardboardUnityDemo I/Adreno200-C2D﹕ <c2d_wrapper_init:132>: C2D2 initializing a3xx version: libc2d2_a3xx.so
05-29 16:44:03.286 12471-12486/com.example.CardboardUnityDemo I/Adreno200-C2D﹕ <c2d_wrapper_init:196>: C2D2 wrapper initialized successfully
05-29 16:44:03.286 12471-12486/com.example.CardboardUnityDemo I/Adreno200-C2D﹕ <c2d_cmd_res_init:104>: Allocate CMD Buffer Address 0x5cfdf000 0x1009a000
05-29 16:44:03.326 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ ANativeWindow: (1280/720) RequestedResolution: (0/0) EGLSurface: (1280/720)
05-29 16:44:03.336 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Renderer: Adreno (TM) 320
05-29 16:44:03.336 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Vendor: Qualcomm
05-29 16:44:03.336 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Version: OpenGL ES 2.0 [email protected] AU@ (CL@3243160)
05-29 16:44:03.336 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ GLES: 2
05-29 16:44:03.336 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ GL_EXT_debug_marker GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_robustness GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_EXT_sRGB
05-29 16:44:03.346 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Creating OpenGLES2.0 graphics device
05-29 16:44:03.346 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ InitializeGfxDevice OK
05-29 16:44:03.346 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Initialize engine version: 5.0.2f1 (0b02744d4013)
05-29 16:44:03.427 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Begin MonoManager ReloadAssembly
05-29 16:44:03.447 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Platform assembly: /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/UnityEngine.dll (this message is harmless)
05-29 16:44:03.447 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Loading /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/UnityEngine.dll into Unity Child Domain
05-29 16:44:03.517 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Platform assembly: /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll (this message is harmless)
05-29 16:44:03.527 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Loading /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll into Unity Child Domain
05-29 16:44:03.527 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Platform assembly: /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dll (this message is harmless)
05-29 16:44:03.527 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Loading /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dll into Unity Child Domain
05-29 16:44:03.537 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Platform assembly: /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll (this message is harmless)
05-29 16:44:03.537 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Loading /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll into Unity Child Domain
05-29 16:44:03.547 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Platform assembly: /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll (this message is harmless)
05-29 16:44:03.547 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Loading /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll into Unity Child Domain
05-29 16:44:03.597 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ - Completed reload, in 0.173 seconds
05-29 16:44:03.607 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ PlayerInitEngineGraphics OK
05-29 16:44:03.607 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Found 13 native sensors
05-29 16:44:03.617 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Sensor : Accelerometer ( 1) ; 0.001190 / 0.01s ; LGE Accelerometer Sensor / InvenSense
05-29 16:44:03.617 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Sensor : Accelerometer ( 1) ; 0.001190 / 0.01s ; LGE Accelerometer Sensor / InvenSense
05-29 16:44:03.647 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Requested framebuffer: resolution[1280x720], rgba[8/8/8/8], depth+stencil[on], samples[0]
05-29 16:44:03.647 12471-12486/com.example.CardboardUnityDemo D/Unity﹕ Created framebuffer: resolution[1280x720], rgba[8/8/8/8], depth+stencil[24/8], samples[0]
05-29 16:44:03.987 12471-12559/com.example.CardboardUnityDemo D/Unity﹕ Platform assembly: /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/System.Core.dll (this message is harmless)
05-29 16:44:04.047 12471-12559/com.example.CardboardUnityDemo D/Unity﹕ Platform assembly: /data/app/com.example.CardboardUnityDemo-2.apk/assets/bin/Data/Managed/System.dll (this message is harmless)
05-29 16:44:04.588 12471-12486/com.example.CardboardUnityDemo A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 12486 (UnityMain)
With native distortion correction enabled, when running on a galaxy S5, i only see a black screen and logCat outputs hundreds of lines of 'In Native: could not get env' with the RenderingPlugin tag.
I'm running Unity 4.6.6f2 Pro with the v0.4.10 plugin. I only just noticed this issue, i had never previously used native distortion correction until now.
When i open a fresh project, and load the demo scene in, the distortion correction works as expected.
So clearly I have done something to stop it from functioning, but since I've been using this plugin for about 2 months in this app, i'm rather stumped as to what may be causing this.
If anyone knows what might cause the rendering plugin to fail to get the environment, please do tell!
never mine. i fixed it.
SOLVED
TL;DR: If you are having compilation errors with XCode saying that one library "is not 8-byte aligned for architecture arm64" just upgrade your XCode to the latest version (as of this date it is v6.4)
Hi, I've been trying to compile my App for iOS, since a few weeks now iOS is forcing everyone to upload the new apps and updates with 64bit support, so, Unity has a new way to compile for iOS called IL2CPP. If you want support for both 32 and 64 bits, you must check "Universal".
The thing is that I am Using Unity 4.6.6f1 (pro) with the latest cardboard plugin. If I compile with Mono 2.x it works like a charm, everything work perfectly, even on iPad 2, it renders smaller to fit the cardboard. I can even run the app with iOS 7.1. I tried to upload to the appstore and apple rejected immediately the submission because it didn't have 64bits support.
Then I just went to the player settings, compiled with IL2CPP Universal, disabled the striping level (just in case) and went to Xcode to test. The result: 1 error and I can't find ANYTHING about it ANYWHERE. Google shows 0 results. I don't really know if this is related to Unity only (something they have done wrong) if I'm missing something (maybe some Xcode stuff I didn't do correctly) or related to the plugin... anyways, if anyone here can help me solve this I'll gladly appreciate it.
More info:
ld: 64-bit LDR/STR not 8-byte aligned: from l005 (0x100D1D540) to l036@0x00001304 (0x100ED4774) in 'l005' from /Users/nosmirck/Desktop/build/Libraries/libplatform.a(RotateToLandscapeViewController.o) for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks in advance guys!
Best Regards,
Luis.
Can the DemoScene be consolidated into one folder so it can easily be removed from my project? Now I have to remove DemoScene and Legacy/DemoScene.
Using 16:10 preview and Unity Remote, I see this when I run DemoScene with the editor:
This first image is correct, and looks fine on the device.
but after build and running on the device natively, it looks like this:
Device is 16:10 aspect ratio. These are both screenshots taken on the device.
This second image is incorrect, and produces double vision.
Nexus 7 2013, Unity4.6
When i try swapping between screen sizes and device types in the cardboard.cs editor options, i get:
NullReferenceException: Object reference not set to an instance of an object
Cardboard.set_DeviceType (DeviceTypes value) (at Assets/Cardboard/Scripts/Cardboard.cs:179)
CardboardEditor.OnInspectorGUI () (at Assets/Cardboard/Editor/CardboardEditor.cs:101)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1094)
It doesn't appear to prevent anything from functioning correctly, just rather alarming!
Hello,
I don't know if it is really a bug but in doubt, I post it. I have two scenes in my project, both are using the CardboardMain game object with a CardboardGUI attached to this object.
In my CardboardGUI script on each scene, I've registered the OnGUI callback to the CardboardGUI class. When the player is loading the second scene, the GUI rendered on the first scene is not cleaned. If I want to remove the first scene GUI, I have to manually remove the OnGUI callback from the CardboardGUI class before the Application.LoadLevel call. Is it normal ?
Once this line has been called, unity UI events are (almost) not triggered anymore when loading a new scene without cardboard.SDK instanciated
activityListener = Create("com.google.vr.platform.unity.UnityVrActivityListener");
in
AndroidVRDevice.cs
I noticed a 25% drop in performance since 0.5 against 0.4.10.
I noticed native distortion correction is forced off for unity 5 builds but disabling correction does not restore FPS.
Do you notice the same?
Any suggestion?
Cheers.
MiCk.
Hi guys,
I have problem with google cardboard i have phone Element P470 with android version 4.3 I dont know what can i do ??? Please help ?? Can i install some app on fix this problem ?
Thanks
I am using phone device Xiaomi Mi Note (5.7") to run cardboard demo for unity. Not sure if I'm doing something wrong but the image through the lenses is split and doesn't merge (overlapping image).
Try it in another 5.5" device and get the same result
Settings Button and Alignment Marker in CardBoardMain
prefab are checked in the editor, but the settings button and alignment marker elements do not appear in build or preview.
Nexus 7, Unity 4.6
Support for the new unity gui system and an overlay canvas would be nice. Currently my work around is to place the canvas in my game and to position it in front of the cardboard. My solution does not work very well and I end up with two version of my UI.
line 283 in CardboardProfile.cs:
float screenBottom = device.distortion.distort((centerY - halfWidth) / centerZ);
-------shouldn't "halfWidth" be "helfHeight" here?------------------------------
same as line 308.
Using the CardBoardMain
prefab, the FOV settings on the camera component of Main Camera
object (child of Head
object) will populate after hitting 'Update Stereo Cameras' button, but when playing in editor, FOV of Main Camera Left
and Main Camera Right
lock themselves to 77.
Unity 4.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.