You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"that's a p5 web editor bug, it's trying to stringify the whole font including parsed font data, which is too large of an array."
"that would be great thanks! we may want to just add a special case there for p5.Font to ignore some propertiesI feel like we had similar issues in the past with vectors having a reference in them to the p5 instance"
The text was updated successfully, but these errors were encountered:
remove the line debugger, add one line after the let font = await loadFont('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap', { sets: 'latin' }) to print the font console.log(font)
click the ▶️ button
wait......
the issue shows as above
In addition, I checked the repo and plan to add check for p5.Font at those two files, please correct me if I missed any other place:
p5.js version
dev-2.0 branch
What is your operating system?
None
Web browser and version
Chrome
Actual Behavior
Because of an attempt to stringify a large variable, error is logged in browser.
Expected Behavior
Do not try to stringify objects that are [expected to be] excessively large
Steps to reproduce
Observed in: processing/p5.js#7693
Notes from the above thread:
"that's a p5 web editor bug, it's trying to stringify the whole font including parsed font data, which is too large of an array."
"that would be great thanks! we may want to just add a special case there for p5.Font to ignore some propertiesI feel like we had similar issues in the past with vectors having a reference in them to the p5 instance"
The text was updated successfully, but these errors were encountered: