When I try to input Chinese character in Entry in PyGObject Gtk4 on macOS. It prints the following message on terminal.
It does not show the message on Ubuntu 22.04 with libpango-1.0-0, 1.50.6+ds-2.
macOS: 12.6.1 (21G217)
$ brew info pango
==> pango: stable 1.50.11 (bottled)
$
$ python3 main.py
(:739): Pango-CRITICAL **: 20:24:02.733: pango_layout_get_cursor_pos: assertion ‘index >= 0 && index <= layout->length’ failed
(:739): Pango-CRITICAL **: 20:24:02.733: pango_layout_get_cursor_pos: assertion ‘index >= 0 && index <= layout->length’ failed
(:739): Pango-CRITICAL **: 20:24:02.733: pango_layout_get_cursor_pos: assertion ‘index >= 0 && index <= layout->length’ failed
(:739): Pango-CRITICAL **: 20:24:02.733: pango_layout_get_cursor_pos: assertion ‘index >= 0 && index <= layout->length’ failed
$