Meld lockups for a huge time when non-utf16 file is tried to be incorrectly opened as utf-16 (continuation of mis-deleted isssue 158)
Steps to reproduce:
- Run meld from its checkout as
bin/meld po/en_CA.po po/en_GB.po
- Comparison is shown (after 2-20 seconds, depending on hardware)
- change right-pane encoding to utf-16
- meld lockups for at least several minutes, on any hardware
#0 0xf5abcc2b in pango_glyph_string_get_width () from /usr/lib/i386-linux-gnu/libpango-1.0.so.0 #1 0xf5ac9dc1 in pango_layout_line_index_to_x () from /usr/lib/i386-linux-gnu/libpango-1.0.so.0 #2 0xf5ace096 in pango_layout_index_to_pos () from /usr/lib/i386-linux-gnu/libpango-1.0.so.0 #3 0xf63b2767 in gtk_text_layout_get_iter_location () from /usr/lib/i386-linux-gnu/libgtk-3.so.0 #4 0xf63c3b21 in gtk_text_view_get_iter_location () from /usr/lib/i386-linux-gnu/libgtk-3.so.0 #5 0xf417dd56 in get_line_end (text_view=text_view@entry=0x96687a8, start_iter=start_iter@entry=0xff90cc04, line_end=line_end@entry=0xff90ccac, max_x=881, max_y=972, is_wrapping=0) at gtksourcespacedrawer.c:557 #6 0xf417e9ca in _gtk_source_space_drawer_draw (drawer=0x9680bb0, view=0x96687a8, cr=0x98b6020) at gtksourcespacedrawer.c:701 #7 0xf416571d in gtk_source_view_draw_layer (text_view=0x96687a8, layer=GTK_TEXT_VIEW_LAYER_ABOVE_TEXT, cr=0x98b6020) at gtksourceview.c:2645 #8 0xf7775e3a in ffi_call_SYSV () from /usr/lib/i386-linux-gnu/libffi.so.6 #9 0xf7775aac in ffi_call () from /usr/lib/i386-linux-gnu/libffi.so.6 #10 0xf7071767 in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-35m-i386-linux-gnu.so ...
with _gtk_source_space_drawer_draw never returning and iteratively calling get_line_end (line numbers correspond to debian libgtksourceview-3.0-1 3.22.2-1)