-
Notifications
You must be signed in to change notification settings - Fork 55
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
possible cause of some serial issues on OSX #254
Comments
I think this happens when removing or adding devices |
Is this happent to you with all your devices? |
I think both were cp2102 |
ohh let me try not using my usbc dongle |
ok this issue is not just osx, happens on windows also. open monitor (menu says start always) |
this also causes serial monitor to get stuck on, or not stopped when uploading resulting it upload failures. So it seems there is some kind of loss of state of serial , where it gets inverted etc. |
I've made some tweaks in the way to handle the status bar color and you shouldn't problems now, however I wasn't able to reproduce the Can you check if you keep having it? |
It looks like there is a bug in the serial state tracking.. This happens now and then and seems to be related maybe to #292 |
I think this all started when you added the serial popup every time starting serial. It seems to break constantly , serial always says its running, menu says its not, cannot run it after ota, it says running but no data, I have to send to reactivate it, but send its always greyed out.. its very strange and annoying, I will have to try to din into serial.py and figure out wtf is going on or at least add some error handling, atm I am python copy paste level expertise.. lol |
I promise I'll check it this weekend! |
lol, if not give me some hints and I can hack at it.. or test it outside of deviot, if its a python command line call |
It seems like when an exception is thrown the monitor isn't closing and deleting memory instances
can you check if the last commit solves this problem? |
Seems more stable, I will test more tomorrow |
Seems to have issues uploading now with serial running, as if serial is blocking it and not stopping and restarting or what it used to do Dependency Graph
|-- <ESP8266WiFi> 1.0
|-- <ESP8266-Tone-Generator>
Compiling .pio/build/nodemcuv2/src/Demo_Tones.ino.cpp.o
Retrieving maximum program size .pio/build/nodemcuv2/firmware.elf
Checking size .pio/build/nodemcuv2/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [=== ] 32.9% (used 26984 bytes from 81920 bytes)
PROGRAM: [=== ] 25.4% (used 264876 bytes from 1044464 bytes)
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Use manually specified: /dev/cu.SLAB_USBtoUART
Uploading .pio/build/nodemcuv2/firmware.bin
esptool.py v2.6
Serial port /dev/cu.SLAB_USBtoUART
Connecting........_
Chip is ESP8266EX
Features: WiFi
A fatal error occurred: Timed out waiting for packet header
*** [upload] Error 2
========================== [FAILED] Took 9.92 seconds ==========================
[Sun Oct 6 21:24:38 2019] |
ALso new error, not sure if its related or actually new.
|
Yup cannot upload when serial monitor is in use
|
I've reverted a commit who should be causing this errors, can you test it now? |
New one maybe Serial shows green, nothing shows up Traceback (most recent call last):
File "/Users/shawn/Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/pyserial/serialposix.py", line 493, in read
buf = os.read(self.fd, size - len(read))
OSError: [Errno 6] Device not configured
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/shawn/Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/serial.py", line 141, in receive
inp_text = self.serial.read(buf_number)
File "/Users/shawn/Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/pyserial/serialposix.py", line 509, in read
raise SerialException('read failed: {}'.format(e))
Deviot (Arduino IDE).libraries.pyserial.serialutil.SerialException: read failed: [Errno 6] Device not configured
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "./python3.3/threading.py", line 858, in run
File "/Users/shawn/Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/serial.py", line 144, in receive
toggle_serial_monitor(self.port)
File "/Users/shawn/Library/Application Support/Sublime Text 3/Packages/Deviot (Arduino IDE)/libraries/serial.py", line 304, in toggle_serial_monitor
message.initial_text("_deviot_{0}", version)
NameError: global name 'version' is not defined
Backup saved to: /Users/shawn/.sublime/backups/Users/shawn/projects/microcontrollers/dev/libraries/IoAbstraction/examples/interruptSwitchEncoder8574/interruptSwitchEncoder8574-2020-03-03_21-39-45.ino
reloading settings Packages/User/deviot.sublime-settings |
On osx, sometimes starting serial doesn't work, it gets stuck I have to toggle 3 times, then it creates a new group also. I logged this today.
The text was updated successfully, but these errors were encountered: