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

Allocation size overflow error. #12

Open
kupietools opened this issue Jun 24, 2018 · 5 comments
Open

Allocation size overflow error. #12

kupietools opened this issue Jun 24, 2018 · 5 comments

Comments

@kupietools
Copy link

Script fails with Allocation size overflow error whenever I use debugout.log instead of console.log. As soon as I replace out the call to debugout.log with console.log again, no problem. Object recursion depth is set to only 3.

screenshot 2018-06-23 21 08 47

@inorganik
Copy link
Owner

what are your autoTrim and maxLines properties set to?

@kupietools
Copy link
Author

self.autoTrim = false;	self.maxLines = 2500;

I can't use this if autoTrim is on. I need to see the entire log. Otherwise Firefox's built-in log would be fine for my purposes.

@kupietools
Copy link
Author

kupietools commented Jun 26, 2018

Is it possible to have it automatically write the log to a file every time the maxLines limit is reached, so I can see the whole thing if it runs over?

@kupietools
Copy link
Author

Also, fwiw, I did an experiment where I wrote the log to comments inside the page , and the full log for a complete run of the script was 14MB. I have 16GB of memory in my computer, so I don't see why memory should be a problem.

@inorganik
Copy link
Owner

inorganik commented Jun 26, 2018

Wow, 14 MB. That's why autoTrim is initially set to false. You can start by setting useLocalStorage to true, but you'll probably need to make some additional modifications. Look inside the log() method and make some changes there. But definitely set autoTrim to true so that debugout isn't having a memory feast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants