• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Sandbox violation on bitmapdata.draw() or bitmapdata.drawWithQuality

Advisor ,
Jan 21, 2018 Jan 21, 2018

Copy link to clipboard

Copied

Problem Description:

bitmapdata.draw() running on ENTER_FRAME, if a movie start to play (RTMP/RTMFP) one sandbox violation occurs but bitmapdata.draw() still running, if fullscreen is activated the sandbox violation is occuring on every bitmapdata.draw() request, occuring bitmapdata.draw() to stop to work. Issue also appearing if an AS2 swf is loaded and play a movie.

this issue is also persistent despite of:

- crossdomain.xml at root of the website

- Security.allowDomain("*");

- Security.checkPolicyFile()

- AudioSampleAccess and VideoSampleAccess to true with "/" on the server

- Security.exactSettings to false

Steps to Reproduce:

1) start bitmapdata.draw() or bitmapdata.drawWithQuality() the stage on Timer(40) or ENTER_FRAME.

2) start to play a movie from (RTMP/RTMFP),

3) activate the fullscreen

Actual Result:

SecurityError: Error #2123: Security sandbox violation: BitmapData.drawWithQuality: https://xxxxx swf cannot access unknown URL. No policy files granted access.

Expected Result:

No Sandbox violation when all security settings are correctly set according to the documentation

Any Workarounds:

Not found for now

TOPICS
ActionScript

Views

615

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 11, 2018 Feb 11, 2018

Copy link to clipboard

Copied

Update: the issue occurs only if I use fullscreen with rectangle while bitmapData.drawWithQuality() is occuring in an enterFrame function.

Anyone has an answer or is it a bug?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 13, 2018 Feb 13, 2018

Copy link to clipboard

Copied

update2: sandbox violation is appearing also when a NetStream is closed, whatever if the NetStream is on the same sub domain or not.

NetStream.close(), NetStream.dispose() and videoContainer.attachNetStream(null) causes a sandbox violation.

NOTE: I'm trying to bitmapData.drawWithQuality() the entire stage where there are some NetStreams playing...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 13, 2018 Feb 13, 2018

Copy link to clipboard

Copied

Update3: for now the only work around is to do NetStream.play(false) to stop the netstream rather than NetStream.close() or NetStream.dispose(). Also remove all videoContainer.attachNetStream(null);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Feb 14, 2018 Feb 14, 2018

Copy link to clipboard

Copied

update4:

manipulating attachNetstream() while bitmapdata.draw() is active create and sandbox violation:

the only way to work around for play() is to call attachNetStream() once

the NetStream event "NetStream.Play.Start" occurs. But for the other controls like dispose(), close() or attachNetStream()

creates inevitably a sandbox violation which does not make sense.

So should I open a bug to adobe bug tracker?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 18, 2018 Feb 18, 2018

Copy link to clipboard

Copied

LATEST

I have the same problem you described.

Related issue (not the same): Tracker

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines