Strange behavior source build_ros2_workspace.bash

Now I install ROS2 according to this instruction Redirecting to latest version of document (main)
I settled on the command ‘source build_ros2_workspace.bash’.

If I execute it in gnome-terminal everything works fine. But if I execute this command in Tilix, then this error pops up, after which Tilix is closed.

How can I fix this error?
Снимок экрана от 2021-06-14 04-45-11