NocturnalRage / pyangelo.com

Python Graphics Programming in the Browser
2 stars 3 forks source link

Error when running sketches in debug mode #196

Closed s1072489 closed 2 years ago

s1072489 commented 2 years ago

When running sketches with debug mode the terminal outputs the following:

a is undefined
be/g/t/<@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1131442
f@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1090558
i/c/s._invoke@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1090312
i/g/</<@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1090921
r@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1095793
a@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1095997
s/</<@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1096056
s/<@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1095936
g@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1133062
b@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1130844
e@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:651371
923/</</Sk.misceval.asyncToPromise/<@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:651748
923/</</Sk.misceval.asyncToPromise@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:651074
be/<@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1134836
be@https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1136459

Browser: Firefox 102.0.1

When testing with other browsers different errors occur:

Cannot read properties of undefined (reading 'substring')
TypeError: Cannot read properties of undefined (reading 'substring')
    at https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1131459
    at f (https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1090558)
    at Generator._invoke (https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1090311)
    at Generator.next (https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1090921)
    at r (https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1095793)
    at a (https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1095996)
    at https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1096055
    at new Promise (<anonymous>)
    at https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1095936
    at g (https://pyangelo.com/js/SkulptSketch.js?id=48b7f336f27b9003b7e51ad737129157:2:1133062)

Browser: Chrome 103.0.5060

This seems to happen for all sketches except for completely empty ones

s1072489 commented 2 years ago

This also seems to happen on other devices

pingskills commented 2 years ago

Fixed!

pingskills commented 2 years ago

Fixed!