June 19, 2008

Profiler Problems in Flex!

Filed under: Bug Fixes, Flex, Physics, Profiler — Anthony @ 12:44 am

After reading an example chapter from Training from the Source : Profiling Flex Applications on InsideRIA I thought ooo! I like using the profiler but i didnt know you could do that! So away I went and opend up one of my apps and clicked Profile.... O no whats going on? No Profiler prompt just straight into the application

Socket closed.
Socket closed.
Socket closed.
Flex Profiler No activity 60 seconds after connection.

and then quiet

I was at a loss why had my Profiler failed me? Could I find a solution on the internet by no means so i decided to carry on with some work and tackle this at a later date but then...

My apps start to take a rather long time to startup and even worse NO BREAKPOINTS !! O my god im gonna have a heart attack!

I noticed in the console that Flex is tracing out

Users/Anthony/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf

before trying to run my apps I do a search and found this bug in the bugbase

http://bugs.adobe.com/jira/browse/FB-12869

it mentions a file called mm.cfg that points to this ProfilerAgent.swf

you can find this file in the following locations

Operating system mm.cfg file in this directory
Macintosh OS X MacHD:Library:Application Support:macromedia:
Microsoft Windows Vista C:\Users\user_name\
Microsoft Windows 2000/XP C:\Documents and Settings\user_name\
Microsoft Windows 95/98/ME %HOMEDRIVE%\%HOMEPATH%\
Linux /home/user_name

inside this file there is a line of code that reads

PreloadSwf=/Users/[username]/Documents/workspace/
.metadata/.plugins/com.adobe.flash.profiler/
ProfilerAgent.swf?host=localhost&port=9999

delete this and the debugger starts to work again however my Profiler still doesnt...

usefull related blog post

Fingers Dancing

3 Comments »

  1. [...] Profiler Problems in Flex! After reading an example chapter from Training from the Source : Profiling Flex Applications on InsideRIA I thought ooo! I like using the profiler but i didnt know you could do that! So away I went and opend up one of my apps and clicked Profile…. O no whats going on? No Profiler prompt just straight into the application Socket closed. Socket closed. Socket closed. Flex Profiler No activity 60 seconds after connection. and then quiet I was at a loss why had my Profiler failed me? Could [...]

    Pingback by A » Blog Archive » Profiler Problems in Flex! — June 19, 2008 @ 6:04 am

  2. had many problems with the profiler. I found that modifying your mm.cfg was not neccacary and actually it was just my local security software.

    I posted a bit that fixes this issue if you are running ESET Smart Security.

    http://www.grindstonemedia.net/2008/06/29/flex-profiler-connection-problems/

    What software configuration do you have? Are you running windows/mac/linux. What firewall/anti-virus software do you use?

    Comment by ryan — June 29, 2008 @ 4:07 pm

  3. [...] I had to blog this since we encountered this issue twice already. I found the solution from BetaDesigns but we encountered a slightly different case the 2nd time that requires a different [...]

    Pingback by Profiler Causing Debugger Problems in Flex Builder 3 « Rico on Flex — August 15, 2008 @ 3:58 am

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .