[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55974] Octave hangs on plotting text object w
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #55974] Octave hangs on plotting text object with invalid UTF-8 byte sequence |
Date: |
Thu, 11 Apr 2019 18:28:40 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36 |
Update of bug #55974 (project octave):
Status: None => Confirmed
Summary: Octave stuck on Linux when figure contains a string
with non ASCII characters encoded in ISO 8859-1 => Octave hangs on plotting
text object with invalid UTF-8 byte sequence
_______________________________________________________
Follow-up Comment #3:
Re-summarizing this bug, and posting your example as an inline snippet.
This works correctly in a UTF-8 locale
s = "Fréquence";
text (0.2, 0.5, s)
The following causes Octave to hang and needs to be killed with SIGKILL
[~, s] = system ("echo Fréquence | iconv -f utf8 -t latin1");
s = strtrim (s);
text (0.2, 0.5, s)
The hang occurs in FreeType, here is the top of the call stack in gdb when
stuck
#0 0x00007f5fdd3e151e in ?? () from /lib/x86_64-linux-gnu/libfreetype.so.6
#1 0x00007f5fdd3e5006 in ?? () from /lib/x86_64-linux-gnu/libfreetype.so.6
#2 0x00007f5fdd3e5c58 in ?? () from /lib/x86_64-linux-gnu/libfreetype.so.6
#3 0x00007f5fdd3e83d6 in ?? () from /lib/x86_64-linux-gnu/libfreetype.so.6
#4 0x00007f5fdd3eab73 in ?? () from /lib/x86_64-linux-gnu/libfreetype.so.6
#5 0x00007f5fdd39a9de in ?? () from /lib/x86_64-linux-gnu/libfreetype.so.6
#6 0x00007f5fdd374641 in FT_Load_Glyph () from
/lib/x86_64-linux-gnu/libfreetype.so.6
#7 0x00007f5fe0479403 in octave::ft_text_renderer::process_character
(address@hidden, code=114,
address@hidden) at
../libinterp/corefcn/ft-text-renderer.cc:726
#8 0x00007f5fe047a2e6 in octave::ft_text_renderer::visit
(this=0x55cd357ca940, e=...)
at ../libinterp/corefcn/ft-text-renderer.cc:930
#9 0x00007f5fe0478d65 in octave::text_processor::visit (e=...,
this=0x55cd357ca940)
at ../libinterp/corefcn/text-engine.h:330
#10 octave::ft_text_renderer::visit (this=0x55cd357ca940, e=...) at
../libinterp/corefcn/ft-text-renderer.cc:970
#11 0x00007f5fe047726a in octave::ft_text_renderer::render
(this=0x55cd357ca940, elt=0x55cd35835600, box=...,
rotation=0) at ../libinterp/corefcn/ft-text-renderer.cc:1165
#12 0x00007f5fe04784a0 in octave::ft_text_renderer::text_to_pixels
(this=0x55cd357ca940, txt="Fr\351quence\n",
pxls=..., box=..., _halign=<optimized out>, valign=1, rotation=<optimized
out>, interpreter=...,
handle_rotation=true) at ../libinterp/corefcn/ft-text-renderer.cc:1302
#13 0x00007f5fe078baa2 in octave::text_renderer::text_to_pixels
(address@hidden,
txt="Fr\351quence\n", pxls=..., bbox=..., address@hidden,
address@hidden,
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55974>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #55974] Octave hangs on plotting text object with invalid UTF-8 byte sequence,
Mike Miller <=