Log in or register to post comments

Dataset not loading first load of application

August 1, 2018 - 11:26am #1

Hey all,

 

Im choosing a Dataset to use at runtime. The issue I'm seeing is that the first time I deploy to an ipad through xcode my dataset fails to load. If I close the application and run it again it works every time as expected, no issues. Has anyone run into this issue, if so what fixed it?

 

Unity 2018.1.1

Vuforia 7.1, 7.2.23 - Tried both, no difference 

if(DataSet.Exists(name))
        {
            //i've tried both of these approaches, same results
            //dataSet.Load(name);
            if (dataSet.Load(Application.dataPath + "/Raw/" + name + ".xml", VuforiaUnity.StorageType.STORAGE_ABSOLUTE))
            {

            }

            else

              {
                    //fail - This happens on first launch

              }

}

Dataset not loading first load of application

August 8, 2018 - 8:09am #7

Pilot license looks to have fixed the issue.

Dataset not loading first load of application

August 3, 2018 - 12:44pm #6

Hello,

My best recommendation is to request (and use) a Pilot License via your VIP portal account: https://developer.vuforia.com/vip

Use the request type "Request New Pilot License". This will both guarantee support for the Model Targets feature, and remove the Vuforia watermark.

Thanks,

Vuforia Engine Support

 

Dataset not loading first load of application

August 3, 2018 - 8:33am #5

Yea, I'm doing dynamic Model Target loading at runtime. Should I investigate into using a different license? I think right now our key is created through just through a dev account but we do have a vip license. Should I try and create a license using that account, if so do I need to do anything specific?

Dataset not loading first load of application

August 2, 2018 - 3:02pm #4

Hello,

I wouldn't worry about the error message "Cannot setMode to AR before Camera is initialized". This is likely just a result of the SDK trying to update camera parameters before the camera is fully initialized.

What type of dataset are you trying to load? I'm more concerned about the following error messages:

2018-08-02 11:17:23.830444-0400 Test[1046:462828] ERROR/AR(1046) 2018-08-03 11:17:23: Dataset Vuforia/s_DF.dat not valid with the used Vuforia license. Please check your license.

2018-08-02 11:17:23.830510-0400 Test[1046:462828] ERROR/AR(1046) 2018-08-03 11:17:23: Dataset Vuforia/s_DF.dat not loaded successfully.

These tell me that the license you are using is not correct for the type of dataset you're trying to load. I've seen this mostly when trying to load Model Targets using a Classic license.

Thanks,

Vuforia Engine Support

Dataset not loading first

August 2, 2018 - 8:39am #3

Yea i have this executing OnVuforiaStartedCallback. Only thing I'm seeing in the output log refers to my license(which doesn't make sense because the 2nd time I run the application, its fine). So is it possible that there is a license check being done by vuforia that hasnt passed? I've attempted to load one of my datasets at any point during my first launch and it fails every time, even if I try over and over.

 

Heres my log. The highlighted line is alarming but I can't find anything online about an answer to that issue.

 

2018-08-02 11:17:23.709571-0400 Test[1046:462828] ERROR/AR(1046) 2018-08-03 11:17:23: Cannot setMode to AR before Camera is initialized

StartVuforia

Vuforia.VuforiaARController:StartVuforia(Boolean)

Vuforia.VuforiaARController:StartAfterInitializationCompleted()

System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)

System.Delegate:DynamicInvokeImpl(Object[])

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

 

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)



cameraDeviceStartCamera

2018-08-02 11:17:23.729053-0400 Test[1046:462828] INFO/AR(1046) 2018-08-03 11:17:23: Starting camera with profile for iPad6,11, 720.1

2018-08-02 11:17:23.730107-0400 Test[1046:462828] INFO/AR(1046) 2018-08-03 11:17:23: ObjectTracker: Successfully created dataset

Successfully created data set.

2018-08-02 11:17:23.830444-0400 Test[1046:462828] ERROR/AR(1046) 2018-08-03 11:17:23: Dataset Vuforia/s_DF.dat not valid with the used Vuforia license. Please check your license.

2018-08-02 11:17:23.830510-0400 Test[1046:462828] ERROR/AR(1046) 2018-08-03 11:17:23: Dataset Vuforia/s_DF.dat not loaded successfully.

2018-08-02 11:17:23.831433-0400 Test[1046:462828] ERROR/AR(1046) 2018-08-03 11:17:23: VideoBackgroundConfig with screen size of zero received, skipping config step

StopVuforia

Vuforia.VuforiaARController:StopVuforia()

Vuforia.VuforiaARController:OnDisable()

System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)

System.Delegate:DynamicInvokeImpl(Object[])

Vuforia.DelegateHelper:InvokeDelegate(Delegate, Object[])

Dataset not loading first

August 2, 2018 - 4:41am #2

Where is this code located?  Is it in a callback like RegisterVuforiaStartedCallback?  The idea being that you are letting Vuforia fully initialize first.  Are you getting any related errors in the xcode console?

 

Log in or register to post comments