Start a new topic

Pause AR tracking (to save battery) ?

Pause AR tracking (to save battery) ?


Hi Amaury,
Sorry that I again forgot that you need a Cordova plugin. Thankfully our build system also builds all extensions, so here is the link to the Cordova Plugin.

Best regards,

Andreas

Hi Andreas !

Thanks a lot for this really quick update :-) 

I am developing with the cordova plugin and I didn't manage to update it from the iOS native SDK files last time. If the procedure is simple and you can describe it here, I can try.

Have a good day,

Amaury.

 

Hi Amaury,
I could reproduce it and here are some download links for new builds: Android SDK and iOS SDK.

Please let me know if they work for you.

Best regards,

Andreas

Hi Andreas,

I tested this new 5.3.1 version on an iPad Air 2 (on iOS 9) and the bugs I mentionned previously are not here anymore. 

But again new bugs seam to appear. I quickly found this one : 

- when the camera is disabled, and then the screen is rotated, the app crashes.

I did some extended tests on my own to be sure that this bug was not due to a mistake in our app, but it really only appears when the camera is disabled. 

Tell me if you can replicate the bug on your own.

Hope you can really fix (and run all the tests) on this function soon.

Have a good weekend,

Amaury.

 

Hi, 
New downloads in our 'Beta' section are now available!

Best regards,

Andreas

Hi Amaury,
Yes, tomorrow ;). We will upload a 'Developer Channel Release' for all SDK products plus all of the extensions.

Best regards,

Andreas

Hi Andreas,

Do you plan to release a new version of the SDK with a fix for this problem soon ? I can still do some tests if you send me a pre-release of the cordova plugin.

Cheers,

Amaury.

Hi Andreas,

I tried to rename the WikitudeSDK file to libWikitudeSDK.a and place it (twice) in my cordova project. This way I get many "duplicat symbols" errors while trying to build the project.

Also the initial libWikitudeSDK.a is 88,7 Mo and the WikitudeSDK file (that I renamed to libWikitudeSDK.a) is 132,4 Mo.

If you repackage a proper cordova plugin, I could try again.

Thanks,

Amaury.

Hi Amaury,
It's easy to use the .framework withing Cordova. Simply look up the .framework content, locate the file 'WikitudeSDK', rename it to libWikitudePlugin.a and replace the existing libWikitudePlugin.a in your existing Cordova project (it might exist twice).

Best regards,

Andreas

Hi Andreas,

I only develop with Cordova, and the file attached to your message is only for iOS native development I presume ? 

Otherwise I would be happy to try this pre-release on my own and give you some feedback. And I don't use any input plugins, no. 

Thanks for your reactivity !

Amaury.

Hi Amaury,
You can download a pre-release version of the iOS Architect SDK here. I was able to reproduce the issue locally but would appreciate if you could also test it and give me some feedback if it works for you as well.

Do you also use input plugins in your application?

 

Best regards,

Andreas

Hi Amaury,
thx for the report. We will investigate it right away.

Best regards,

Andreas

Hi Andreas and thanks for integrating this fix in your last update :-)

I can now enable and disable Camera, but new bugs, causing the app to crash, are appearing on iOS (not tested yet in android).

First, if I load an AR World, track some objects, disable the camera, re-enable it, and track an object again, the app crashes (at the moment where the new object is about to be tracked). The error reported on XCode is :

 #0 0x0027244e in wikitude::sdk_foundation::impl::CameraService::getPlatformSpecificConversionMatrix() ()
EXC_BAD_ACCESS

Second scenario, if I track an object, disable the camera when this object is being tracked, and reenable the camera, the app crash when the camera is reenabled. XCode report a "memory read failed".

Hope you can also fix these bugs. Tell me if you need more information about it.

Amaury.

 

Hi Amaury,
We fixed the issue today and it will be part of our SDK 5.3 release later this week/early next week.

Best regards,

Andreas

Thanks Andreas !

In the meantime, the workaround I use to limit cpu usage when tracking is not necessary, is to destroy the current tracker :

World.tracker.destroy();

It is not as good as stopping the Camera feed as I still have 12% cpu usage on Ipad Air 2, but still it is a big improvement.

Bye,

Amaury.
Login or Signup to post a comment