Skip to content
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

🐛CLI Hangs on error in terminal #304

Open
Cooper7196 opened this issue Nov 26, 2023 · 0 comments · May be fixed by #380
Open

🐛CLI Hangs on error in terminal #304

Cooper7196 opened this issue Nov 26, 2023 · 0 comments · May be fixed by #380
Assignees
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

Comments

@Cooper7196
Copy link

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

@ayushuk ayushuk added the needs reproduction The cause of this issue is still unknown, and/or the issue has not yet been reliably reproduced label Feb 23, 2024
@NaitikRambhia NaitikRambhia self-assigned this Sep 27, 2024
@mayankpatibandla mayankpatibandla added the on hold This may be revisited in the future label Oct 4, 2024
@BennyBot BennyBot linked a pull request Oct 24, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants