`save picture of script` is unresponsive

Issue #254 resolved
Wenjie Wu created an issue

When saving a large number of blocks, the interface will be unresponsive

look here (the URL works for debugging! @John Maloney )

Comments (8)

  1. John Maloney repo owner

    Thanks for the but report and test case.

    I suspect the issue is that the resulting image is too large to process with the available RAM in the browser. We may not be able to deal with really large scripts but it should be able to figure that out and give an error message rather than becoming unresponsive…

  2. John Maloney repo owner

    Thanks! The issue is that browser’s security mechanism is blocking the file save dialog, possibly because it took too long to prepare the image. I can add an additional dialog to fix that.

  3. John Maloney repo owner

    Fixed in v1.1.31. Added an extra dialog box if generating the PNG file takes over 4.5 seconds to satisfy the browser security requirement that the file save operation is triggered by a user action.

    You may need to clear the browser cache to get the new version.

  4. Log in to comment