🐛CLI Hangs on error in terminal #304
Labels
needs reproduction
The cause of this issue is still unknown, and/or the issue has not yet been reliably reproduced
on hold
This may be revisited in the future
Expected Behavior:
It should close gracefully
Actual Behavior:
It hangs, requiring the user to fully close the terminal and reopen it.
Steps to reproduce:
pros::delay(2000); while (1) { std::cout << "Test" << std::endl; }
Use the terminal while the following program is started.
System information:
Operating System:
Windows 11
PROS Version:
3.4.1
Additional Information
Screenshots/Output Dumps/Stack Traces
Logs from before/after the event:
DEBUG - pros.serial.devices.vex.v5_device:user_fifo_read - Completed ext 0x27 command (read) - pros-cli version:3.4.2
WARNING - pros.serial.devices.vex.v5_user_device:read - Could not decode bytes: 0a - pros-cli version:3.4.2
ERROR - pros.serial.terminal.terminal:reader - - pros-cli version:3.4.2
Traceback (most recent call last):
File "c:\users\cbros\documents\programming\pros-cli\pros\serial\terminal\terminal.py", line 221, in reader
data = self.device.read()
File "c:\users\cbros\documents\programming\pros-cli\pros\serial\devices\vex\v5_user_device.py", line 47, in read
assert len(msg) >= 4
AssertionError
We detected something went wrong! Do you want to send a report? [y/N]: y
WARNING - pros.serial.terminal.terminal:stop - Stopping terminal - pros-cli version:3.4.2
DEBUG - pros.serial.ports.direct_port:destroy - Destroying DirectPort to COM6 - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Transferring to pit channel - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Sending ext 0x10 command - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.vex_device:_tx_packet - V5Device TX: C9 36 B8 47 56 10 02 01 00 B9 69 - pros-cli version:3.4.2
DEBUG - pros.serial.ports.direct_port:read - ClearCommError failed (OSError(9, 'The handle is invalid.', None, 6)) - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Transferring to pit channel - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Sending ext 0x10 command - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.vex_device:_tx_packet - V5Device TX: C9 36 B8 47 56 10 02 01 00 B9 69 - pros-cli version:3.4.2
DEBUG - pros.serial.ports.direct_port:read - ClearCommError failed (OSError(9, 'The handle is invalid.', None, 6)) - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Transferring to pit channel - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Sending ext 0x10 command - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.vex_device:_tx_packet - V5Device TX: C9 36 B8 47 56 10 02 01 00 B9 69 - pros-cli version:3.4.2
DEBUG - pros.serial.ports.direct_port:read - ClearCommError failed (OSError(9, 'The handle is invalid.', None, 6)) - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Transferring to pit channel - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.v5_device:ft_transfer_channel - Sending ext 0x10 command - pros-cli version:3.4.2
DEBUG - pros.serial.devices.vex.vex_device:_tx_packet - V5Device TX: C9 36 B8 47 56 10 02 01 00 B9 69 - pros-cli version:3.4.2
DEBUG - pros.serial.ports.direct_port:read - ClearCommError failed (OSError(9, 'The handle is invalid.', None, 6)) - pros-cli version:3.4.2
DEBUG - pros.serial.terminal.terminal:transmitter - ClearCommError failed (OSError(9, 'The handle is invalid.', None, 6)) - pros-cli version:3.4.2
INFO - pros.serial.terminal.terminal:transmitter - Terminal transmitter dying - pros-cli version:3.4.2
The text was updated successfully, but these errors were encountered: