-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
unending SerialExceptions π² after ~30 minutes of sending commands to screen ββ having to power cycle π₯ #562
Comments
p.s. when this happens, the screen is hung with whatever is on it, forever, until power cycled. I soooooooooooooo wish there was a way to power cycle via usb signal. I bet they probably never imagined we'd be tinkering with their toy so much! π |
Tried slowing the port down from 115200 to 9600. Tried throttling most screen updates with a 2 second pause. Just won't last. |
Hello, I've never encountered this issue but here the issue may be with your screen since the library cannot communicate with it to send data frames until it is unplugged. What is your screen size? Is it a 3.5" or a 5"? Anyway, here are some things you could try:
|
Thanks for the help!!!
|
Got my winamp_dashbard project to run for 6 hours last night, I think definitely because of your tips! Thank you! I also adjusted back up from 9600 to 115200 on the port, maybe i was squeezing it too hard in an attempt to throttle the crashes. It only crashed this time after 6 hrs due to not liking a specific album art (Ramones song β I Wanna Live), which crashes At that point, it is no longer being able to open the com port. At which point I'm a bit lost on this, but i think the image data itself is somehow out of spec enough to crash the com port, except the image works everywhere else (minilyrics plugin, winamp info) so the image is definitely good enough for other things to render. But not for DisplayPILImage? For what it's worth, here's a copy of the image, though I don't know if Github blesses/changes it somehow upon upload. I'm about to go on vacation so i may not get to return to this for a bit. |
[That image consistently crashes DisplayPILImage right before the top of the red shoes, at which point purple 'noise' spills out. i've seen a couple like this. my input set is 45,000 songs with differently sourced album art, so it's actually a wonderful testdata set. A bit too wonderful lol. It would take a year to play them all for testing.] |
I actually hardened the code so that it autoconnects again if you power cycle it. I was looking into USB libraries to automatically power cycle it when it detects a crash, but i hit a dead in in not being able to discern the screen and needing to decide if i want to power off ALL my usb ports at once, which... Would be annoying [i have sound effects, and i sleep!] so i didn't want to do it. I'm not sure, but i think this is the line it actually crashes at:
And when i say 'crash', i mean the screen. The code is still running and complaining. Good code! Bad screen! lol |
p.s. Unrelated: I've added some code to my copy of your libraries that basically allows for transparent text over an image. Seen here with the WinAmp song title being overlayed over the album art. Basically, it creates 1 image with the text, but with alpha transparency over everything except the rendered font (i think... it was a late night... i tend to not go to sleep when i get like this). |
Describe the bug
First off, i LOVE this project. I was so happy to see that i could do something ELSE with my turing model "A" screen. They are going for only $13 on aliexpress right now.
Anyway ββ Is this a bug, or do I just need to throttle my commands at a slower rate?
To Reproduce
Steps to reproduce the behavior:
I spent so long getting this thing to work, and once it worked. The frame conks out in 30 minutes.
Expected behavior
The library would not cause serialexceptions simply due to using it, or would return a more meaningful error code explaining what is going wrong and how to prevent that
Screenshots / photos of the Turing screen
Add screenshots or photos of the rendering on the smart screen to help explain your problem.
You can drag and drop photos here to add them to the description.
Environment:
Additional context
I can totally publish the product if you want to look at it, but I assume you probably do not. It's just one .py script (winamp.py) and one library (claire_winamp.py, i always put my first name into my own libraries so i don't forget it was me who wrote them π). Heck i could even email them if you want to look at them (but you probably don't).
The text was updated successfully, but these errors were encountered: