简体   繁体   中英

Flex 4 now throws Security sandbox violation: file:///ProfilerAgent.swf

So I was doing some profiling on a Flex project and then went to go build a release build. Now when ever I export a release build it gives a runtime security error saying its trying to load the ProfilerAgent.swf

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999 cannot load data from localhost:9999.

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999 cannot load data from localhost:9999.

Even when I exit, restart, punch Flash Builder 4 it doesn't seem to go away. I tried manually compiling using the mxmlc via the command line and I'm still getting that error when it is running from my server. Any one have any ideas on how to fix it?

Try to locate mm.cfg in your OS according with these instructions . Then check and comment (using # at the beginning of the line) lines starting with ProfilingFileOutputEnable and PreloadSwf .

Hope this helps!

Open up mm.cfg and make sure the following instructions are in configuration:

    ProfileFunctionEnable=1
    ProfilingOutputFileEnable=1
    RendererProfilingEnable=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM