GithubHelp home page GithubHelp logo

Comments (2)

misprintt avatar misprintt commented on July 30, 2024

I've seen this happen occasionally before - it's actually due to the munit 'run' command shutting down the temporary nekotools server before the images are loaded by the browser.

I also replicated it (occassionally) by adding a test that just threw an exception to example/coverage/03_MassiveUnitCoverage/text/ExampleTest.hx. Couldn't replicate it consistently though.

This is only an issue for AS3 because the swf runner relies on ExternalInterface to update the javascript result client in the browser, and synchronous calls via ExternalInteface are inconsistently slow.

On some of our larger projects the AS3 target can take about 3-4 times longer than the JavaScript to finish running because of this bottleneck. The more data being printed to the browser client (lots of failures, exceptions and coverage info), the bigger this lag can be.

For some reason this occasionally results in a race conditions issue and by the time the browser DOM updates and goes to load the icons the server has already shut down and the urls dont exist anymore.

If you open up the chrome/dev tools in the browser you will see the missing image urls.

The good news is that the data is all there, just the icons are missing - so you should be able to click to open the results on a test.

The other good news is that the next major release of munit removes the need for ExternalInterface entirely.

In the meantime I'll raise the issue in munit with a simple workaround that can be applied to the current version branch - moving all the icons into a single spritesheet that is loaded up front so they are already cached by the browser.

from mcover.

misprintt avatar misprintt commented on July 30, 2024

Moved to munit massive-oss/MassiveUnit#32

from mcover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.