Bug: Can't copy from UART output if output includes NULL character

Edit: The bug is actually that uart included the null character. Previously I wrote:

If the UART output line says, like:

***** Booting *****

Then it’s not possible to copy to the clipboard.

That sounds really odd! I’m not immediately able to reproduce this behavior using that log text though. Is it enough that the log contains that text or is the copy operation misbehaving when that text is part of the selection? Are you ending up with an empty clipboard or is “just” that part missing?

What OS are you running, and would it be possible for you to attach a small project containing the log you have difficulty copying? You can either attach the project here or create a case.

The selection has to include that line. What happens is the clipboard includes everything up to that line includes the *****

Note that it only fails if you paste into another program - e.g. notepad, firefox

If I paste into Otii command input, then it works!

It is most bizarre

Most bizarre, I agree! I tried it on a Windows machine by looping Otii Arc TX to RX and manually sending the text, it copies into Notepad just fine even there, see attached screenshot:


Are you running this on Windows 10 or Windows 7? (figured it had to be Windows due to Notepad)

This in on Windows 10.

I don’t know it doesn’t reproduce for you :-/

The exact string I actually have is:

***** Booting Zephyr OS 1.5.0-6-gc7668d6b4 *****

I’ve always had this problem, and have been using otii daily for for weeks (i.e the computer has rebooted many times, etc)

Hmmmm, I wonder though - this is the very first message that appears - I wonder if the is sending some hidden garbage character… that would actually explain a lot.

Can you save the project and attach it here (or in a case), then I can take a look if there’s some garbage that snuck in.

tag.otii (245.0 KB)

So there is a NUL byte as the very first character on that line. We’re looking into this handling right now as we’ve had issues with NUL bytes coming in over regular USB-UARTs. Apparently Windows needs to have some (optional) filtering applied before copying to the clipboard. I’ll look into this some more!