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

No Limit On log() Function Input #123

Open
pashneal opened this issue Apr 21, 2020 · 5 comments
Open

No Limit On log() Function Input #123

pashneal opened this issue Apr 21, 2020 · 5 comments
Labels

Comments

@pashneal
Copy link

pashneal commented Apr 21, 2020

def turn(): log("This is a song that never ends ... it goes on and on my friends"*1337000)
#The console started printing this, not knowing what it was...
#And it continues printing forever just because...

I would suggest truncating the output of the log() function past a certain length.
Causes a crash eventually on my computer.
Luckily, it's a very quick fix.

@jay20162016
Copy link

There is a bytecode limit that would prevent that.

@pashneal
Copy link
Author

pashneal commented Apr 23, 2020

There is a bytecode limit that would prevent that.

Not quite. At the time of writing, initialization of arbitrary large strings were essentially free! see #108. If that is no longer the case then this bug can be closed.

@arvid220u
Copy link
Contributor

duplicate of #75

@arvid220u
Copy link
Contributor

wait ok, this is not really a duplicate of #75. this just runs fine for me

@arvid220u
Copy link
Contributor

server-side, as we did with the java engine, I think we want to implement some way of limiting the log output just because that makes the servers more happy, though

@arvid220u arvid220u reopened this Apr 24, 2020
@arvid220u arvid220u removed the 🤑? label Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants