-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Opening and adding to/removing from collections sometimes crashes editor #1418
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
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Oh no! The white screen indicates that the web editor is crashing, so that's not great. I just tried creating a new sketch with an asterisk in the name, and I wasn't able to get the web editor to crash or see any errors in the console, so it must be that something else is happening. If you figure out a way to consistently make it crash, let me know! Otherwise I'll keep playing around. |
As described, I had problems opening Collections that contained a sketch with an asterisk in its name. Clicking on File/Add to Collections crashed the editor as did clicking File/Open/Collections. I resolved this by deleting these Collections, creating new ones, and re-adding my sketches that did not contain an asterisk in their name. As you advised, I tried to recreate the process with a new test collection and a test sketch containing an asterisk in its name. This time, there were no problems and the editor continued to function. Perhaps there was another cause of the crash (i.e. my storage space was approaching its limit?) but now everything is running fine. Oh yes! Thanks for your time and consideration. |
Thanks for trying to reproduce again! I'll leave this open for now in case someone else runs into a similar issue. |
I also noticed that the editor crashes on clicking the AddSketch button in CollectionList. |
After reading #1465 it looks like the fix is to check for item.isDeleted before accessing item.project in AddToCollectionSketchList
Maybe the collection had deleted sketches in it which may have caused the crash (I was able to reproduce this part: adding a sketch to a collection which has deleted sketches in it causes a crash) Also it only crashes if we click Add sketch from the dropdown in CollectionList or if we click on the add sketch button from CollectionView
I was not able to reproduce this part |
Nature of issue?
Details about the bug:
A sketch that included an "*" (asterisk) in its name could be saved and played on the p5.js-web-editor. However, my attempt to add it to a collection resulted in a total white screen rather than the expected list of collections. After renaming the sketch w/o an asterisk, I was able to add it to a collection.
Since then, I'm occasionally met with the same white screen when attempting to add a sketch to a collection, even though the sketch name has no special characters in its name. As above, the white screen is completely blank. Its web address ends with "add-to-collection" leading me to think that the issue may be more than my original use of a special character.
The text was updated successfully, but these errors were encountered: