Closed fstachura closed 1 year ago
Hello @fstachura,
Sorry for the late reply and thanks for opening the issue. I'm happy to help you!
However, I tried to run a lab like the one you suggest, but I didn't receive any error.
Can you please attach a copy of your lab so that I can investigate further?
Many thanks, Tommaso
Hi @fstachura,
Thanks for the lab. I stared to fix the problem on this branch: 209-waiting-startup-on-connect.
We have this error since the current version of Kathará manages the print of the startup logs on the terminal directly in Python and using the 'utf-8' encoding.
The new version will manage the print on the container, using its locale and preventing the terminal emulator from crashing.
Thanks for the help, Tommaso
Describe the bug Kathara terminal crashes if startup script output contains text that cannot be parsed as UTF-8
To Reproduce Steps to reproduce the behavior:
kathara lstart
pc1
terminal should show up and immediately crash with an error shown on screenshot below.$ tree
:pc1/a
:lab.conf
:pc1.startup
:Note that contents of
pc1/a
are not valid UTF-8:cat pc1/a | xxd
:file -i pc1/a
iconv -t utf-8 pc1/a
Expected behavior Kathara terminal renders text from
pc1/a
, starts the shell and stays open.Screenshots
Error (visible for <1 second):
"check" Command Output
``` * Current Manager is: Docker (Kathara) * Manager version is: 23.0.1 * Python version is: 3.10.7 (main, Dec 28 2022, 15:08:11) [GCC 12.2.0] * Kathara version is: 3.5.5 * Operating System version is: Linux-6.1.15-1-lts-x86_64 * Trying to run `Hello World` container... Deploying devices...|###################################################################################################################################################################################################################################################| 1/1 * Container run successfully. Deleting devices...|####################################################################################################################################################################################################################################################| 1/1 ```Tested on Arch Linux (updated today) and Windows 10