guild icon
Toit
#Hanging up jag monitor, UART converter vs dev board USB
Thread channel in help
addshore
addshore 06/10/2025 11:31 AM
When hitting Ctrl + C on jag monitor using dev boards (USB pins on ESPs) I have ot hit it multiple times, it seems to hang, I see ^C^C^C^C in the termainl baecause of this and eventaully it exits.
While using uart converters external to deav boards hitting ctrl + c normally instantly exits (desried behaviour)

This is on WSL, and basically i have the issue with /dev/ttyACM* devices, but all /dev/ttyUSB devices are fine.
Any thoughts on what might be up? (Otherwise i might try debugging this myself with a build of jag etc)
floitsch
floitsch 06/10/2025 11:32 AM
I have encountered this myself, and haven't yet figured it out.
For all the "usual" uart-usb chips the ctrl-c works fine, but with some it doesn't. It's not always the ttyACM* for me, though. Some of these work without issues.
addshore
addshore 06/10/2025 11:33 AM
Good to know it isnt just me :๐Ÿ˜„:
floitsch
floitsch 06/10/2025 11:43 AM
Iirc it happened the most with the built-in USB of the ESP32. But that's a vague memory.
addshore
addshore 06/10/2025 01:23 PM
yeah, that sounds about right with my experience too
addshore
addshore 06/10/2025 01:40 PM
I find it really hard to reproduce consistently, very annoying
floitsch
floitsch 06/10/2025 01:42 PM
:๐Ÿ˜ฆ:
addshore
addshore 06/10/2025 02:37 PM
This seems to dramaticaly improve things for me https://github.com/toitlang/jaguar/pull/623
Make a cancellable context that is passed into the decoder, rather than using that of the cmd.
And handle signals in a separate goroutine explicitly closing the port and waiting for things nicely
addshore
addshore 06/11/2025 03:18 PM
@floitsch did you write that in the right place? :๐Ÿ™‚:
floitsch
floitsch 06/11/2025 03:21 PM
absolutely not :๐Ÿ™‚:
floitsch
floitsch 06/11/2025 03:21 PM
Will remove it here, and post it again in general.
11 messages in total