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

Hi Daniel,


Was this bug corrected in the 7.2.1 version ? I don't see anything about it in the 7.2.1 changelog  ?


Thanks,


Amaury.

Good morning Amaury,



yes, the fix is included in the 7.2.1 hotfix release. We must have missed it when creating the changelog. Thanks for reporting that.



- Daniel


Login or Signup to post a comment