Some projects don't load, giving a BSOD
See original GitHub issueExpected Behavior
Projects load when you go to their project page or straight to the editor.
Actual Behavior
There are a few projects that don’t load, giving a Blue Screen of Death. I believe they likely have different causes, but I would like to track them in this issue.
Here are 2:
https://scratch.mit.edu/projects/281999647/
gives these errors: Error: Error in Scratch GUI [location=https://scratch.mit.edu/projects/281999647/editor]: RangeError: Maximum call stack size exceeded
gui Unhandled Error: Error: Error in Scratch GUI [location=https://scratch.mit.edu/projects/281999647/editor]: RangeError: Maximum call stack size exceeded
(This is filed in https://github.com/LLK/scratch-parser/issues/56)
https://scratch.mit.edu/projects/286851747/
gives these errors:
www Unhandled project parsing error: SyntaxError: Unexpected token e in JSON at position 5234
Error: Error in Scratch GUI [location=https://scratch.mit.edu/projects/286851747/]: SyntaxError: Unexpected token e in JSON at position 5234
gui Unhandled Error: Error: Error in Scratch GUI [location=https://scratch.mit.edu/projects/286851747/]: SyntaxError: Unexpected token e in JSON at position 5234
This is a different issue from https://github.com/LLK/scratch-gui/issues/4649 and it does not give the assetid of null error in the console.
Steps to Reproduce
Load one of those projects Note: see the errors roll in.
Operating System and Browser
Mac Chrome
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
Top GitHub Comments
@kchadha It looks like that second project (286851747) is a result of a parser error. It has the string
...have\\been...
which gets stripped by the parser to justhave\een
by https://github.com/LLK/scratch-parser/blob/master/lib/parse.js#L19I can confirm this by trying to name a sprite e.g. “have\been” and watching the server fail to parse/save it.
@benjiwheeler For the backspace, this regex should help:
(?<!\\)(\\\\)*\\b
The problem is, negative lookbehind is not commonly supported!