Open XtramCZ opened 1 year ago
I am currently working on debugging this with the Thonny IDE and the current issue is that it cannot edit the drive.
Debug Info {'scriptData': 'SCRIPT+HELLO+THERE', 'scriptName': 'Test.dd'}
Traceback (most recent call last):
File "asyncio/core.py", line 246, in run_until_complete
File "webapp.py", line 242, in startWebService
File "wsgiserver.py", line 165, in update_poll
File "adafruit_wsgi/wsgi_app.py", line 70, in __call__
File "webapp.py", line 198, in write_new_script
RuntimeError: Cannot remount '/' when visible via USB.
From my experience, your error only happens if you have USB mode enabled and try to modify a file
You're right. For my purposes I need USB mode enabled so I just deleted the drive mount lines in create_new_script()
and added a try-catch. It's not 100% safe but it works for me as I have backups.
If USB Mass Storage mode is enabled, then the webapp cannot write to the internal flash. this is a limitation of circuitpython.
As for the original issue, do you have an example script that causes the problem? I'll try to take a look at this issue in the next couple of weeks.
Nah, I haven't noticed this happening with a particular script, but it happens more with longer ones
Describe the bug When i want to save a script on the Web UI, I get a crash
To Reproduce Steps to reproduce the behavior:
Expected behavior I expected it to save my script
Screenshots -//-
Debug info Traceback (most recent call last): File "asyncio/core.py", line 246, in run_until_complete File "webapp.py", line 265, in startWebService File "wsgiserver.py", line 165, in update_poll File "adafruit_wsgi/wsgi_app.py", line 70, in call File "webapp.py", line 211, in write_new_script File "webapp.py", line 138, in cleanup_text File "webapp.py", line 138, in
MemoryError: memory allocation failed, allocating 4168 bytes
Additional context It may be because I am currently messing with the css a lot and stuff