Comments (6)
I am assuming you are trying this with the old Scratch Pico board and not the new Raspberry Pi Pico.
Does this happen immediately after starting Scratch in the browser or after some time?
After you see the error could you please press the F12 key on your keyboard to bring up the browser console (you may have to select a tab to go to the console) and let me know if there are any warnings or errors reported?
Which browser are you using?
Also, could you please try running the troubleshooting steps shown here?
from s3onegpio.
Does this happen immediately after starting Scratch in the browser or after some time?
Just around 5 seconds after starting the python script, whether I launch the browser window or not
After you see the error could you please press the F12 key on your keyboard to bring up the browser console (you may have to select a tab to go to the console) and let me know if there are any warnings or errors reported?
This is all that shows up, I doubt it is very helpful though.
Which browser are you using?
As you have probably seen from the image above, chrome.
New development!
The s3p program now doesn't crash straight away, but instead the picoboard seems to short out as the lights go out when I move the slider too far . This is strange as I have not been able to replicate this on my ubuntu machine running the python code from my repo.
Any help appreciated!
from s3onegpio.
What versions of Python are you using on your Ubuntu machine and on your Windows machine?
Before you move the slider, does everything stay up?
If you just use the button and not the slider does it crash as well?
If you could run the troubleshooting scenario (bringing everything up individually) that might help provide some useful information.
Please run it for all scenarios that crash.
When launching from s3p, the exceptions are suppressed, but when if each component is brought up individually, the exceptions should come to each individual terminal window.
Thanks.
from s3onegpio.
Python 3.9.2 on both. Using windows store version on my windows PC though.
Everything stays up if I don't move the slider and the button does work.
Could you please elaborate on how I might go about doing that?
BTW: Did a reset (keeping files) on my PC due to it not updating correctly and issue still persists, even after a full OS reinstall.
from s3onegpio.
Thanks for providing that information. I have a couple of ideas, but I am unable to test them because I do not own a Pico board. I developed the code for a group in Taiwan a few years back and they did all the testing during development. I do not know if you are using a Sparkfun board or not. It is possible that the Sparkfun board is using different hardware than used in the Taiwan clones. Also, they tested with Python 3.8. Originally, they were using Python 3.7 on Windows, but when Python 3.8 came out and was installed, it broke things. Python changed asyncio in Python 3.8 for Windows. I put some workaround code for Windows to fix the issue. Since you are seeing the issue both on Windows and Ubuntu, most likely Python 3.9 is not the cause, but I can't be sure. I do not run Python 3.9 as of yet, so I have no experience with it.
It appears that perhaps the polling loop used in the pico gateway is running too quickly and flooding things. Adding a short delay may solve the issue. But before I create a branch and make any coding changes, it would be very helpful to find out why the WebSocket gateway is crashing. I am not sure if this will provide any useful clues or not, but without knowing if a useful exception is being thrown when the WebSocket gateway crashes, it is very hard to provide a fix without totally guessing.
If you could run the troubleshooting scenario, mentioned in a previous posting, when the WebSocket gateway crashes, it should provide an exception traceback in its command window. Again, it may or may not be helpful, but at least it should show where things went wrong by indicating the line of code where the crash occurred. If you copy the traceback and paste it into this thread, I will be happy to analyze what might be going wrong for you. Also, if there is an exception thrown in the other command windows, if you could provide those as well, it would be of great help.
Thanks.
from s3onegpio.
I have not heard back from you, so I am closing this issue. If you wish to pursue it, please let me know and I can reopen it.
from s3onegpio.
Related Issues (20)
- Firefox not able to open project and do not remember installed extensions. HOT 8
- s3rp crash on latest Win10/ Google Chrome when using read digital pin HOT 4
- Translation for Dutch (NL) HOT 6
- Translation for Japanese (robohat) HOT 1
- Translation for Japanese (playground_express) HOT 1
- Thanks for adoption of translation for Japanese HOT 2
- A simple installation procedure for Windows 10 HOT 1
- Initializing functions is lacking for pigpiod HOT 6
- How do I create a Blcok program that can be uploaded to Arduino permanently ? HOT 1
- Translation for German (de) HOT 2
- How to read digital input from sensor HOT 6
- The current version of S3OneGPIO fails to compile by "yarn start". HOT 3
- Re: Thanks for adoption of translation for Japanese #43 HOT 2
- Connection to ESP8266 seems to be unreliable HOT 3
- a Japanese translation for the extension "OneGpio Raspberry Pi Pico". HOT 1
- Request to host these extensions in my own Scratch 3 fork HOT 2
- DC motor PWM control backwards HOT 3
- Install s3onegpio extension in fresh Scratch does not work HOT 7
- Does arduino work standalone? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3onegpio.