-
Notifications
You must be signed in to change notification settings - Fork 437
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
Error creating new scripts on W #196
Comments
I am currently working on debugging this with the Thonny IDE and the current issue is that it cannot edit the drive. Debug Info
|
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 |
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
The text was updated successfully, but these errors were encountered: