Log in or register to post comments

Vuforia::init takes long time on restricted network

October 2, 2020 - 6:27am #1

Hi, I have an application that init and deinit a lot when switching views and I encountered a problem if the network that the device connects has restricted (outgoing/incoming traffic blocked) or no internet access. 

From what I was able to establish Vuforia::init takes ~10 seconds to return 100 result with blocked ethernet connection while with unblocked or no connection it takes ~1 second.

I assume that the license key check or some other process is trying to communicate over the network and since in this case the device has network access there is a long response timeout or the request is resent over a period of time.

My code for the initialization:

Quote:

Vuforia::setInitParameters(licenseKey)

int progressValue = 0;

do {

progressValue = Vuforia::init();

} while (progressValue >= 0 && progressValue < 100)

Pleas advise on how to address the problem.

Best regards,

Albert

Vuforia::init takes long time on restricted network

October 15, 2020 - 8:10am #7

Hi,

That helps, thanks, although I have a couple follow up questions:

1. The documentation says: "Skipping the blocking attempt to get the latest profile can cause the SDK to run in a non-optimized mode on the first run", so I know that if there is no access to the device calibration profile in the cloud this won't change anything, but what could be noticeable side effects of running non-optimized mode?

2. On a device with an internet connection enabled the SDK will run in non-optimized mode if the hint is set? Run in optimized mode once the profile is loaded, or are there other factors?

3. I would have to consult on this, but is it possible to get some details on the profile acquisition so I could offer clients an option to unblock some IP addresses for enabling the optimization or ping to check if the hint should be set?

Best regards,

Albert

Vuforia::init takes long time on restricted network

October 15, 2020 - 2:12am #6

Hi,

Actually :) I spoke to soon. We believe the issue might be related to the device profiles.

Could you please try and set this hint to 1, HINT_ASYNC_FETCH_OF_LATEST_CALIBRATION? more info here: https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1VuforiaUnity.html#afee7b990fb51510da24e68fb838ef758

Thank you.

Vuforia Engine Support

Vuforia::init takes long time on restricted network

October 14, 2020 - 1:30am #5

Hi,

Unfortuantely I don't believe there is a workaround available, besides not deinit Vuforia at all when switching scenes.

I raised a bug with the dev team.

Thank you.

Vuforia Engine Support

Vuforia::init takes long time on restricted network

October 8, 2020 - 3:28am #4

I've also tested with Vuforia Native Sample  app with the same result.

 

Is there a way to handle/workaround this? We have clients with company network rules preventing outside network communication.

Vuforia::init takes long time on restricted network

October 6, 2020 - 7:56am #3

Hi mcotora, 

Sorry, I think I wasn't clear in my description - I'm using Vuforia with a native app on mobile devices. The problem occurs when I connect the device to a local network that has no outside connections (router not plugged in to internet) or if I disable outgoing/incoming packet traffic on the router. Airplane mode is not affected - I suspect the initialization proceeds as in case where there is no network connection at all and skips on license validation on some calibration steps.

1. Vuforia SDK 9.4.6

2. Surface pro 6 - Windows 10 Build 18363, Samsung Galaxy Tab S4 - Android 10,  iPhone 6s - iOS 13.5.1

Thanks for a quick response,

Albert

Vuforia::init takes long time on restricted network

October 6, 2020 - 5:48am #2

Hi,

I tested the behaviour on iOS with the phone in airplane mode and did not observe any loadtimes differences.

Could you please confirm the following:

1. Vuforia SDK version

2. Device and os:

In addition could you please try reproducing the issue with our CoreSamples available through the Unity store?

Thank you.

Vuforia Engine Support

Log in or register to post comments