Skip to main content
Participating Frequently
September 27, 2016
Question

Vector smash protection on stagewebview?

  • September 27, 2016
  • 1 reply
  • 717 views

Hi, I've been noticing some changes on the behavior of the StageWebview object on recent versions of Adobe AIR on Windows target. Currently, one that is making my life difficult is the "vector smash protection" issue raised when I try to run a HTML5 canvas application inside it.

I've been using the StageWebview to add some "interactive widgets" written on javascript for html5 canvas on my apps. This worked really well until AIR 18. On most recent versions of AIR, I get an "vector smash protection" issue on the console window while debugging the app. The very same code produces a valid output on AIR 18, running the html5 canvas page inside the Stagewebview and this problem on more recent versions on Windows.

Is this an expected issue? Do the recent AIR version are intended to block this kind of content inside the webview or is this an uncatched bug?

This topic has been closed for replies.

1 reply

nownitin
Adobe Employee
Adobe Employee
September 28, 2016

Hello,

Vector smash protection is the additional security mitigation which defend against memory abuse by a would-be attacker, there may be some cases this message will appear which should be fine.

Please send a sample project to narrow down the issue and check if functionality is fine.

Regards,

Nitin

Participating Frequently
September 28, 2016

Hello, Nitin.

The issue is easily reproduce with this simple code:

var vw:StageWebView = new StageWebView(true);

vw.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);

vw.addEventListener(ErrorEvent.ERROR, onError);

vw.stage = stage;

vw.loadURL('http://ciclope.com.br/arquivos/trilha/');

The url I put above ('http://ciclope.com.br/arquivos/trilha/') is a valid one that always raises the problem. The issue seems strange since the page loads and works ok on other systems like Mac or Android.

Thank you.

nownitin
Adobe Employee
Adobe Employee
September 29, 2016

Hello Lucas,

This issue is not reproducible with the given url, app using this url load the site and there is no warning or mentioned message displayed. Also, windows desktop AIR app with AIR sdk 23 is working properly.

Could you please provide more information such as screenshot of the error, machine information, Animate version you are using, possible working app etc

Regards,

Nitin