Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heavy code does not execute in sketches #59

Open
kevinjacb opened this issue Aug 16, 2021 · 2 comments
Open

Heavy code does not execute in sketches #59

kevinjacb opened this issue Aug 16, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@kevinjacb
Copy link

kevinjacb commented Aug 16, 2021

Bug:
Code which has multiple loops/repeats does not run in the sketches tab.

Replication:
For instance if you run:
c=circle(r=40) for i in range(50): c += circle(r=50)|translate(x=100)|repeat(400,scale(0.9)) show(c)

The output is just a blank canvas. But the same works without an issue in jupyter notebook.

Screenshot 2021-08-16 114923

Expected behaviour :
Since this is a heavy piece of code, it is expected to take a couple of seconds before this is displayed:

Screenshot 2021-08-16 114848

  • OS: Windows 10 Home
  • Browser: Chrome
  • Version : 92.0.4515.131
@kevinjacb kevinjacb added the bug Something isn't working label Aug 16, 2021
@anandology
Copy link
Contributor

hi @kevinjacb, we have a 10 second execution limit and 100MB memory limit to make sure the resources are under control. That may be causing this issue. Right now, those errors are not handled nicely.

@kevinjacb
Copy link
Author

My code exceeds those limits, what do I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants