Closed BlitzCityDIY closed 8 months ago
i was able to have it happen again with the chrome console open:
Connected!
3index.js:37 write
index.js:37 Initializing File Transfer Client...
index.js:37 Waiting for connection status to change...
index.js:37 PUT http://cpy-2048dc.local/fs/code.py net::ERR_CONNECTION_RESET
_fetch @ index.js:37
writeFile @ index.js:37
await in writeFile (async)
writeFile @ index.js:24
writeFile @ index.js:35
op @ index.js:37
saveFile @ index.js:35
Gd @ index.js:37
await in Gd (async)
u @ index.js:9
Du @ index.js:9
keydown @ index.js:9
runCustomHandlers @ index.js:8
t @ index.js:8
(anonymous) @ index.js:8
index.js:37 write failed ProtocolError: Host 'cpy-2048dc.local' not found.
at mc._fetch (index.js:37:2577)
at async mc.writeFile (index.js:37:1942)
at async xS.writeFile (index.js:24:4482)
at async KS.showBusy (index.js:35:106428)
at async KS.writeFile (index.js:35:108288)
at async KS.op [as _saveFileContents] (index.js:37:14800)
at async KS.saveFile (index.js:35:107513)
at async Gd (index.js:37:11447) ProtocolError: Host 'cpy-2048dc.local' not found.
at mc._fetch (https://code.circuitpython.org/assets/js/index.js:37:2577)
at async mc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1942)
at async xS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4482)
at async KS.showBusy (https://code.circuitpython.org/assets/js/index.js:35:106428)
at async KS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108288)
at async KS.op [as _saveFileContents] (https://code.circuitpython.org/assets/js/index.js:37:14800)
at async KS.saveFile (https://code.circuitpython.org/assets/js/index.js:35:107513)
at async Gd (https://code.circuitpython.org/assets/js/index.js:37:11447)
index.js:37 write
index.js:37 write failed Error: Unable to perform file operation. Not Connected.
at mc._checkConnection (index.js:37:1156)
at mc.writeFile (index.js:37:1783)
at xS.writeFile (index.js:24:4493)
at KS.writeFile (index.js:35:108324)
at op (index.js:37:14809) Error: Unable to perform file operation. Not Connected.
at mc._checkConnection (https://code.circuitpython.org/assets/js/index.js:37:1156)
at mc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1783)
at xS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4493)
at KS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108324)
at op (https://code.circuitpython.org/assets/js/index.js:37:14809)
i had a few successful saves before this and was editing a different part of the code. it hung, i got that print out in the chrome console continuously, i refreshed the browser, reconnected to the board, opened the REPL, had this message:
connected
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
Press any key to enter the REPL. Use CTRL-D to reload.
soft reboot
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Traceback (most recent call last):
File "code.py", line 165
SyntaxError: invalid syntax
Code done running.
Press any key to enter the REPL. Use CTRL-D to reload.
opened code.py and this was now line 165:
condition_text = adafruit_display_text.label.Label(terminalio.FONT, color=font_color,
text=" ",
x=5, y=35��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������er, x = 0)
Do you know if the ESP board restarted?
i'm not sure. i can try a newer build and see if the issue persists.
I assume it does. I may need to get you setup with separate UART debug logging for more details.
Let's retest after 9.0.0-alpha.6, which has significant web workflow changes.
just had this occur again with alpha.6 twice. the second time i had the chrome terminal open so i have some info to include that is hopefully helpful. i was having only color bars show up on the matrix displays with the code running after reloading the code after the first occurrence. i clicked save + run in the web workflow gui without editing the code to try and kick the displays (this has worked previously). this caused it to hang. this was the output in the chrome terminal:
Load different workflow
index.js:37 Initializing File Transfer Client...
index.js:37 Waiting for connection status to change...
index.js:35 Connected!
index.js:35 Path: /code.py
index.js:37 Current File Changed to: /code.py
index.js:37 write
2index.js:37 write
index.js:37
PUT http://cpy-2048dc.local/fs/code.py net::ERR_CONNECTION_RESET
_fetch @ index.js:37
writeFile @ index.js:37
await in writeFile (async)
writeFile @ index.js:24
writeFile @ index.js:35
ap @ index.js:37
saveFile @ index.js:35
Jd @ index.js:37
await in Jd (async)
(anonymous) @ index.js:37
index.js:37 write failed ProtocolError: Host 'cpy-2048dc.local' not found.
at gc._fetch (index.js:37:2577)
at async gc.writeFile (index.js:37:1942)
at async CS.writeFile (index.js:24:4482)
at async JS.showBusy (index.js:35:106428)
at async JS.writeFile (index.js:35:108288)
at async JS.ap [as _saveFileContents] (index.js:37:14800)
at async JS.saveFile (index.js:35:107513)
at async Jd (index.js:37:11566)
at async HTMLButtonElement.<anonymous> (index.js:37:11117) ProtocolError: Host 'cpy-2048dc.local' not found.
at gc._fetch (https://code.circuitpython.org/assets/js/index.js:37:2577)
at async gc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1942)
at async CS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4482)
at async JS.showBusy (https://code.circuitpython.org/assets/js/index.js:35:106428)
at async JS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108288)
at async JS.ap [as _saveFileContents] (https://code.circuitpython.org/assets/js/index.js:37:14800)
at async JS.saveFile (https://code.circuitpython.org/assets/js/index.js:35:107513)
at async Jd (https://code.circuitpython.org/assets/js/index.js:37:11566)
at async HTMLButtonElement.<anonymous> (https://code.circuitpython.org/assets/js/index.js:37:11117)
index.js:37 Initializing File Transfer Client...
index.js:37 Waiting for connection status to change...
index.js:35 Connected!
index.js:37 write
index.js:37
PUT http://cpy-2048dc.local/fsundefined net::ERR_CONNECTION_RESET
_fetch @ index.js:37
writeFile @ index.js:37
await in writeFile (async)
writeFile @ index.js:24
writeFile @ index.js:35
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
await in ap (async)
saveFile @ index.js:35
Jd @ index.js:37
await in Jd (async)
(anonymous) @ index.js:37
index.js:37 write failed ProtocolError: Host 'cpy-2048dc.local' not found.
at gc._fetch (index.js:37:2577)
at async gc.writeFile (index.js:37:1942)
at async CS.writeFile (index.js:24:4482)
at async JS.showBusy (index.js:35:106428)
at async JS.writeFile (index.js:35:108288)
at async ap (index.js:37:14800) ProtocolError: Host 'cpy-2048dc.local' not found.
at gc._fetch (https://code.circuitpython.org/assets/js/index.js:37:2577)
at async gc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1942)
at async CS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4482)
at async JS.showBusy (https://code.circuitpython.org/assets/js/index.js:35:106428)
at async JS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108288)
at async ap (https://code.circuitpython.org/assets/js/index.js:37:14800)
index.js:37 write
index.js:37
PUT http://cpy-2048dc.local/fsundefined net::ERR_CONNECTION_RESET
_fetch @ index.js:37
writeFile @ index.js:37
await in writeFile (async)
writeFile @ index.js:24
writeFile @ index.js:35
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
await in ap (async)
saveFile @ index.js:35
Jd @ index.js:37
await in Jd (async)
(anonymous) @ index.js:37
index.js:37 write failed ProtocolError: Host 'cpy-2048dc.local' not found.
at gc._fetch (index.js:37:2577)
at async gc.writeFile (index.js:37:1942)
at async CS.writeFile (index.js:24:4482)
at async JS.showBusy (index.js:35:106428)
at async JS.writeFile (index.js:35:108288)
at async ap (index.js:37:14800) ProtocolError: Host 'cpy-2048dc.local' not found.
at gc._fetch (https://code.circuitpython.org/assets/js/index.js:37:2577)
at async gc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1942)
at async CS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4482)
at async JS.showBusy (https://code.circuitpython.org/assets/js/index.js:35:106428)
at async JS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108288)
at async ap (https://code.circuitpython.org/assets/js/index.js:37:14800)
index.js:37 write
index.js:37
PUT http://cpy-2048dc.local/fsundefined 405 (Method Not Allowed)
_fetch @ index.js:37
writeFile @ index.js:37
await in writeFile (async)
writeFile @ index.js:24
writeFile @ index.js:35
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
await in ap (async)
saveFile @ index.js:35
Jd @ index.js:37
await in Jd (async)
(anonymous) @ index.js:37
index.js:37 write failed ProtocolError: Method Not Allowed
at gc._fetch (index.js:37:2637)
at async gc.writeFile (index.js:37:1942)
at async CS.writeFile (index.js:24:4482)
at async JS.showBusy (index.js:35:106428)
at async JS.writeFile (index.js:35:108288)
at async ap (index.js:37:14800) ProtocolError: Method Not Allowed
at gc._fetch (https://code.circuitpython.org/assets/js/index.js:37:2637)
at async gc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1942)
at async CS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4482)
at async JS.showBusy (https://code.circuitpython.org/assets/js/index.js:35:106428)
at async JS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108288)
at async ap (https://code.circuitpython.org/assets/js/index.js:37:14800)
index.js:37 write
index.js:37
PUT http://cpy-2048dc.local/fsundefined 405 (Method Not Allowed)
_fetch @ index.js:37
writeFile @ index.js:37
await in writeFile (async)
writeFile @ index.js:24
writeFile @ index.js:35
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
await in ap (async)
saveFile @ index.js:35
Jd @ index.js:37
await in Jd (async)
(anonymous) @ index.js:37
index.js:37 write failed ProtocolError: Method Not Allowed
at gc._fetch (index.js:37:2637)
at async gc.writeFile (index.js:37:1942)
at async CS.writeFile (index.js:24:4482)
at async JS.showBusy (index.js:35:106428)
at async JS.writeFile (index.js:35:108288)
at async ap (index.js:37:14800) ProtocolError: Method Not Allowed
at gc._fetch (https://code.circuitpython.org/assets/js/index.js:37:2637)
at async gc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1942)
at async CS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4482)
at async JS.showBusy (https://code.circuitpython.org/assets/js/index.js:35:106428)
at async JS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108288)
at async ap (https://code.circuitpython.org/assets/js/index.js:37:14800)
index.js:37 write
index.js:37
PUT http://cpy-2048dc.local/fsundefined 405 (Method Not Allowed)
_fetch @ index.js:37
writeFile @ index.js:37
await in writeFile (async)
writeFile @ index.js:24
writeFile @ index.js:35
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
setTimeout (async)
ap @ index.js:37
await in ap (async)
saveFile @ index.js:35
Jd @ index.js:37
await in Jd (async)
(anonymous) @ index.js:37
index.js:37 write failed ProtocolError: Method Not Allowed
at gc._fetch (index.js:37:2637)
at async gc.writeFile (index.js:37:1942)
at async CS.writeFile (index.js:24:4482)
at async JS.showBusy (index.js:35:106428)
at async JS.writeFile (index.js:35:108288)
at async ap (index.js:37:14800) ProtocolError: Method Not Allowed
at gc._fetch (https://code.circuitpython.org/assets/js/index.js:37:2637)
at async gc.writeFile (https://code.circuitpython.org/assets/js/index.js:37:1942)
at async CS.writeFile (https://code.circuitpython.org/assets/js/index.js:24:4482)
at async JS.showBusy (https://code.circuitpython.org/assets/js/index.js:35:106428)
at async JS.writeFile (https://code.circuitpython.org/assets/js/index.js:35:108288)
at async ap (https://code.circuitpython.org/assets/js/index.js:37:14800)
index.js:37 write
index.js:37
while this was repeating in the chrome terminal, blinka was spinning on the workflow window and i could see that the neopixel on the board was blinking yellow. i refreshed chrome and the workflow connected properly:
Load different workflow
index.js:37 Initializing File Transfer Client...
index.js:37 Waiting for connection status to change...
index.js:35 Connected!
index.js:35 Path: /code.py
index.js:37 Current File Changed to: /code.py
after opening code.py i saw that the first 148 lines of code had been deleted and replaced with the garbage characters like before.
@BlitzCityDIY Have you had a chance to use web workflow recently? Is this still an issue?
i tried again tonight. i erased the flash and installed 9.0beta 2. it has not been erasing chunks of code but it has been going into safe mode inconsistently (not a very helpful data point). it's happened 2/5 times on saving and then randomly while running the code. i'll be connected to the serial monitor on web workflow and it stops, doesn't show disconnect and i see the neopixel flashing yellow 3x. might be time for the debug build?
actually the safe mode issue seems to be separate from web workflow. i power cycled and didn't try to get back into it and it went into safe mode on its own after a while. i'll try to get more info tomorrow
i think this is good to close. i've been using absolute newest and adding/deleting chunks of code and the issue has not popped up where previously it would have during that kind of use. thank you! looking forward to using it more 🙂
i think this is good to close. i've been using absolute newest and adding/deleting chunks of code and the issue has not popped up where previously it would have during that kind of use. thank you! looking forward to using it more 🙂
Great! Thanks for the update.
CircuitPython version
Code/REPL
Behavior
i'm doing some development on a project with web workflow. i was editing the palette[0] color to 0x110000 from 0x550000 and after saving, web workflow hung. i refreshed the page, reconnected to my board and i got this message in the REPL:
reopening the code.py file, line 38 now showed this:
deleting up to line 108.
This happened twice, but the first time it only deleted up to line 102. However, it did insert the mystery characters in the sport_name array in the same spot. unfortunately i didn't have the chrome console open to see any possible error logs
Description
No response
Additional information
No response