03-21-2018 07:36 PM
using UnityEngine;
using Oculus.Platform;
public class AppEntitlementCheck: MonoBehaviour {
void Awake ()
{
try
{
Core.AsyncInitialize();
Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback);
}
catch(UnityException e)
{
Debug.LogError("Platform failed to initialize due to exception.");
Debug.LogException(e);
// Immediately quit the application.
UnityEngine.Application.Quit();
}
}
void GetEntitlementCallback (Message msg)
{
if (msg.IsError)
{
Debug.LogError("You are NOT entitled to use this app.");
UnityEngine.Application.Quit();
}
else
{
Debug.Log("You are entitled to use this app.");
}
}
}
Could you explain to me why these error still appearing and if there's a solution?
I'll give thanks to everyone who support me in this topic.
:smile:
03-24-2018 05:27 AM
03-24-2018 05:52 AM
03-24 08:58:28.270: D/MdnieScenarioControlService(3702): packageName : com.TestProject.TestUnity className : com.unity3d.player.UnityPlayerActivity03-24 08:58:28.383: E/ExternalPlatformLocal(2026): isAudioHookingEnabledForApplication: com.TestProject.TestUnity03-24 08:58:28.387: A/libc(3503): Fatal signal 6 (SIGABRT), code -6 in tid 3520 (UnityMain)03-24 08:58:28.460: A/DEBUG(3577): pid: 3503, tid: 3520, name: UnityMain >>> com.TestProject.TestUnity <<<03-24 08:58:28.465: A/DEBUG(3577): #10 pc 00002774 /data/app/com.TestProject.TestUnity-1/lib/arm/libvrapi.so (vrapi_Initialize+5240)03-24 08:58:28.465: A/DEBUG(3577): #11 pc 000205f4 /data/app/com.TestProject.TestUnity-1/lib/arm/libOVRPlugin.so (_ZN3OVR4Util15CompositorVRAPI10InitializeEv+160)03-24 08:58:28.465: A/DEBUG(3577): #12 pc 000230e8 /data/app/com.TestProject.TestUnity-1/lib/arm/libOVRPlugin.so (_ZN3OVR4Util15CompositorVRAPI6CreateE17ovrpRenderAPITypePFv12ovrpLogLevelPKcEPviRK11ovrpVersionPPNS0_10CompositorE+96)03-24 08:58:28.465: A/DEBUG(3577): #13 pc 000134b0 /data/app/com.TestProject.TestUnity-1/lib/arm/libOVRPlugin.so (ovrp_Initialize4+84)03-24 08:58:28.465: A/DEBUG(3577): #14 pc 00978404 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #15 pc 009780c4 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #16 pc 0076c3dc /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #17 pc 0076bce0 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #18 pc 0014be70 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #19 pc 002d8a5c /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #20 pc 004e42b8 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #21 pc 004e773c /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #22 pc 00019939 /data/app/com.TestProject.TestUnity-1/oat/arm/base.odex (offset 0x19000)03-24 08:58:29.142: W/ActivityManager(3702): Force finishing activity com.TestProject.TestUnity/com.unity3d.player.UnityPlayerActivity
03-24-2018 03:46 PM
I only was able to send the scene in a zip, the whole project it's a quite of big even compressed in a zip, but if you need the complete project you can download it with the next link to my project's folder in dropbox:
imperativity said:
Hi,
From a quick look at your scene, you don't have any components added that would need to call your APP ID. I also could not reproduce this issue with an exact scene mirroring yours, adding the OVRPlayerController prefab as you did---which allows basic movement and our OVRManager script to function as expected.
Would you be willing to provide a copy of your project for me to analyze?
Also, you are certain that you have "oculus" added to your virtual reality SDKs in your XR Settings in your player settings menu in Unity?
03-24-2018 04:08 PM
markhansaven said:
Okay so I think VR is just broken in Unity now? When I start an empty project Google Cardboard does not work. I'm trying Oculus soon, that's very strange though. It's always worked on my computer...
Here's the error I get after building for android when trying to run VR Oculus:03-24 08:58:28.270: D/MdnieScenarioControlService(3702): packageName : com.TestProject.TestUnity className : com.unity3d.player.UnityPlayerActivity03-24 08:58:28.383: E/ExternalPlatformLocal(2026): isAudioHookingEnabledForApplication: com.TestProject.TestUnity03-24 08:58:28.387: A/libc(3503): Fatal signal 6 (SIGABRT), code -6 in tid 3520 (UnityMain)03-24 08:58:28.460: A/DEBUG(3577): pid: 3503, tid: 3520, name: UnityMain >>> com.TestProject.TestUnity <<<03-24 08:58:28.465: A/DEBUG(3577): #10 pc 00002774 /data/app/com.TestProject.TestUnity-1/lib/arm/libvrapi.so (vrapi_Initialize+5240)03-24 08:58:28.465: A/DEBUG(3577): #11 pc 000205f4 /data/app/com.TestProject.TestUnity-1/lib/arm/libOVRPlugin.so (_ZN3OVR4Util15CompositorVRAPI10InitializeEv+160)03-24 08:58:28.465: A/DEBUG(3577): #12 pc 000230e8 /data/app/com.TestProject.TestUnity-1/lib/arm/libOVRPlugin.so (_ZN3OVR4Util15CompositorVRAPI6CreateE17ovrpRenderAPITypePFv12ovrpLogLevelPKcEPviRK11ovrpVersionPPNS0_10CompositorE+96)03-24 08:58:28.465: A/DEBUG(3577): #13 pc 000134b0 /data/app/com.TestProject.TestUnity-1/lib/arm/libOVRPlugin.so (ovrp_Initialize4+84)03-24 08:58:28.465: A/DEBUG(3577): #14 pc 00978404 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #15 pc 009780c4 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #16 pc 0076c3dc /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #17 pc 0076bce0 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #18 pc 0014be70 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #19 pc 002d8a5c /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #20 pc 004e42b8 /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #21 pc 004e773c /data/app/com.TestProject.TestUnity-1/lib/arm/libunity.so03-24 08:58:28.465: A/DEBUG(3577): #22 pc 00019939 /data/app/com.TestProject.TestUnity-1/oat/arm/base.odex (offset 0x19000)03-24 08:58:29.142: W/ActivityManager(3702): Force finishing activity com.TestProject.TestUnity/com.unity3d.player.UnityPlayerActivity
I also try to use Google Cardboard, before using Oculus, in the newest verson of Unity (Unity 2017.3.1f1) and I wasn't able to build it, when I open my project these kind of warning messages also appear:I agree with you, maybe with the Unity updates the Oculus assets's scrips use some "old code" in the view of this newest version, Thanks for the support in this problem.
- Assets/OvrAvatar/Samples/SocialStarter/Assets/Scripts/RoomManager.cs(31,15): warning CS0618: `Oculus.Platform.Rooms.SetRoomInviteNotificationCallback(Oculus.Platform.Message<string>.Callback)' is obsolete: `Deprecated in favor of SetRoomInviteAcceptedNotificationCallback'
- Assets/OvrAvatar/Samples/SocialStarter/Assets/Scripts/RoomManager.cs(93,22): warning CS0618: `Oculus.Platform.Models.Room.Owner' is obsolete: `Deprecated in favor of OwnerOptional'
03-26-2018 12:15 PM
03-28-2018 01:13 PM
imperativity said:
@marko_rkm
@markhansaven
Hi, we were unable to reproduce this behavior in both your sample project provided above, our internal project mirroring your own, and a new project using Unity 2017.4.0f1.
However, we were finally able to reproduce this behavior by stopping all services associated with the oculus runtime. Do you have the runtime installed on either of your machines you are building on? If so, are the services actively running in the background? The Oculus runtime is required for testing your build on PC, and is the reason why the SDK is not initializing.
Please download and install it here: https://www.oculus.com/setup/
03-30-2018 12:02 PM
03-30-2018 12:12 PM
03-30-2018 12:46 PM