Start a new topic
Solved

Android : bug when adding a newly created drawable while tracking

On Android, with SDK 7.2, if I create a new drawable and add it to the trackable while tracking, the app freezes forever. 


Steps to reproduce the bug with the sample app :

- edit www/world/01_ImageTracking_4_HtmlDrawable/js/htmldrawable.js

- => on line 92, change pageOne variable to be a member of the "World" object (World.pageOne = ... )

- open the HTML Drawables demo on an Android device.

- track the surfer.

- while tracking the surfer, run this code :

        var weatherWidget = new AR.HtmlDrawable({
			uri: "assets/weather.html"
		}, 0.25, {
			viewportWidth: 320,
			viewportHeight: 100,
			backgroundColor: "#FFFFFF",
			translate: { x: 0.36, y: 0.5 },
			horizontalAnchor: AR.CONST.HORIZONTAL_ANCHOR.RIGHT,
			verticalAnchor: AR.CONST.VERTICAL_ANCHOR.TOP,
			clickThroughEnabled: true,
			allowDocumentLocationChanges: false,
			onDocumentLocationChanged: function onDocumentLocationChangedFn(uri) {
				AR.context.openInBrowser(uri);
			}
        });
        
        World.pageOne.drawables.addCamDrawable(weatherWidget);

This code works fine when executed while not tracking the surfer.


This was working with SDK 7.1




Hi Amaury,



thank you for reporting this issue. I'm confident to just have fixed it. The change will be included in a 7.2.1 hotfix release which will be available shortly.


Sorry for the inconvenience.



- Daniel


Great ! Did you have a chance to look at the other bug I reported here ?


https://support.wikitude.com/support/discussions/topics/5000086470

Login or Signup to post a comment