Skip to main content
18-Opal
October 3, 2019
Solved

Bug with 3DImage visibility on iOS

  • October 3, 2019
  • 3 replies
  • 3101 views

I've discovered what seems to be an iOS-specific bug. Here's the scenario:

 

I have a 3DImage (a warning icon) that needs to flash in the experience. I accomplish this using a $timeout that toggles the "visible" property on the widget, something like this:

 

$scope.blinkStatus = true;

$scope.blink = function() {
 $scope.blinkStatus = !$scope.blinkStatus;
 $scope.setWidgetProp("3DImage-1","visible", $scope.blinkStatus);
 $timeout($scope.blink, 500);
}

 

This works just as it should on the preview and on Android. But on iOS, if you let the blinking continue for any length of time (about a minute or so), it crashes Vuforia View completely.

 

It only seems to happen with 3DImage widgets. I'm able to flash a normal 2D image widget in the same way without the app crashing.

 

Is this a known issue? I'm going to investigate workarounds, maybe using opacity. In the meantime, I'll attach a simple project file that demonstrates the problem.

Best answer by sdidier

Hello Clay,

 

I have checked the example Project.

I am able to have the crash in Android Vuforia View also as in in Ipad!

 

In Vuforia View log files, I didn't an error related to this crash.


I am reporting that to R&D as a bug.

More details in this article :

https://www.ptc.com/en/support/article?n=CS314554

 

Best regards,

Samuel

 

 

3 replies

18-Opal
October 3, 2019
18-Opal
October 3, 2019

Also, FWIW, this also seems to happen if I use $interval instead of $timeout

18-Opal
October 3, 2019

It seems to work to use "opacity" instead of "visible" to control flashing, i.e. I can cycle opacity between 0 and 1 to achieve a flashing effect without causing the app to crash.

sdidier17-PeridotAnswer
17-Peridot
October 4, 2019

Hello Clay,

 

I have checked the example Project.

I am able to have the crash in Android Vuforia View also as in in Ipad!

 

In Vuforia View log files, I didn't an error related to this crash.


I am reporting that to R&D as a bug.

More details in this article :

https://www.ptc.com/en/support/article?n=CS314554

 

Best regards,

Samuel

 

 

18-Opal
October 4, 2019

Thanks @sdidier !