Terminal UTF-8 text corruption

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Citylights
Posts: 13
Joined: Sat Jul 10, 2021 7:31 pm

Re: Terminal UTF-8 text corruption

Post by Citylights » Mon Jul 12, 2021 7:27 am

jimmo wrote:
Mon Jul 12, 2021 6:49 am
Is there anything else particular about your program? Does it only happen when you write to the file?

I think it's unlikely to be power or USB cable issues..

Is there any chance you can capture what the invalid data is? The suggestion in the rpi forum here: https://www.raspberrypi.org/forums/view ... 4#p1885091 (The issue you need to install pyserial -- i.e. pip install pyserial).
my code is as it appears in the first post and it happens in the terminal, no matter if write to a file or not.
it appears frequently (as you can see) but not in every line

and also does the same if you run it in a android device.

can it be defected pico board?

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Terminal UTF-8 text corruption

Post by scruss » Mon Jul 12, 2021 5:03 pm

Citylights wrote:
Mon Jul 12, 2021 4:44 am
but the other guy could reproduce the issue as i say in my first post and as it is obvious in the link.
The “other guy” managed to reproduce it once, but not reliably since.

Citylights
Posts: 13
Joined: Sat Jul 10, 2021 7:31 pm

Re: Terminal UTF-8 text corruption

Post by Citylights » Mon Jul 12, 2021 5:45 pm

me too sometimes i can run it for very long time without issues giving the impression
that maybe the terminal was updated in the background to a newer version and it
was fixed.

but then when the issue raises again you can understand it wasn't because of
terminal update.


your point is?.. so i can understand what's your thinking about this matter.

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Terminal UTF-8 text corruption

Post by scruss » Mon Jul 12, 2021 9:43 pm

Citylights wrote:
Mon Jul 12, 2021 5:45 pm
your point is?.. so i can understand what's your thinking about this matter.
If other people can't replicate it, you're going to have to do a bunch more work to isolate and identify the problem

Citylights
Posts: 13
Joined: Sat Jul 10, 2021 7:31 pm

Re: Terminal UTF-8 text corruption

Post by Citylights » Tue Jul 13, 2021 12:22 am

ok if i had to think something to do and also it's granted that nobody can't replicate
the issue...

then i could use CircuitPython and C to create the same program and
see if the issue remains. Since there's no serial to usb chip like the CH340
to be faulty and it's all in one chip, then maybe it should be the RP2040 chip.

unless if all programming languages have same issue. :D

though you know i don't have any idea how to use C/C++ right?

Post Reply