source-academy/modules

Memory Leak on Mission "Beyond the Second Dimension"

Opened this issue · 1 comments

In mission 3 "Beyond the Second Dimension", Question 2

If you run the following code
image

and browse to the output of the hollusion rune, the page freezes and become unresponsive. Ram usage in task manager increases indefinitely. You are unable to refresh the tab and have to close it manually.

The issue occurs only when the same rune parameter is used for both arguments in overlay or overlay_frac.
This issue does not occur when one of the arguments is different or hard-coded, such as:

  • blank, rune
  • circle, rune
  • circle, circle

This issue seems to persist: Google Chrome keeps spending more and more memory on this, after each "Run" until it becomes non-responsive: https://share.sourceacademy.org/h6h3f