You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Darrell Loverin <Da...@simplivity.com> on 2014/12/02 23:10:48 UTC

CodeCoverage Utility Issue

Hi Alex,

I’m hoping you can help me with an issue I’m seeing with the CodeCoverage utility you donated.

I’m running a mustella test with the coverage server running. What I’m seeing is the LocalConnection send() method seems to stop working part way thru the test. On the CodeCoveragePreloadSWF side I’ve added trace debug on the Trace.METHODS_AND_LINES callback just before the lc.send() calls. This debug shows the Trace callback is getting called for all the lines of the mustella test.

On the CodeCoverageServer side of the LocalConnection I’ve add trace debug to show all the calls from the CodeCoveragePreloadSWF. The trace debug looks good at first but stops early on before frame1 ends.

On the preloadSWF side of the connection I have listeners for the following errors but am not seeing any errors reported:


        lc.addEventListener(StatusEvent.STATUS, onStatus);

lc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, lc_asyncErrorEventHandler);

lc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, lc_securityErrorEventHandler);


It seems as if the connection is being closed but I don’t know what might be causing this. If I run another application without shutting down the CodeCoverageServer, no events will be sent.


Any ideas on what might be happening?


Thanks,



-Darrell





Re: CodeCoverage Utility Issue

Posted by Alex Harui <ah...@adobe.com>.

On 12/2/14, 2:10 PM, "Darrell Loverin" <Da...@simplivity.com>
wrote:

>Hi Alex,
>
>I’m hoping you can help me with an issue I’m seeing with the CodeCoverage
>utility you donated.
>
>I’m running a mustella test with the coverage server running. What I’m
>seeing is the LocalConnection send() method seems to stop working part
>way thru the test. On the CodeCoveragePreloadSWF side I’ve added trace
>debug on the Trace.METHODS_AND_LINES callback just before the lc.send()
>calls. This debug shows the Trace callback is getting called for all the
>lines of the mustella test.

I would start by seeing if the server is getting overwhelmed or running
out of memory.  Maybe comment out almost all of the code in the server and
just update a Label in the UI with each line of output.

IIRC, constantly updating flashlog.txt with Trace can really slow down the
app.

You might also try a socket connection instead of LocalConnection.  At
least for me (before solid-state hard drives), simple output via trace was
too slow, and writing all of the output to a file was too slow as well.
There is a buffering scheme in the preloader and a string encoding scheme
in the server that might be buggy or overloaded.

Good luck,
-Alex