[bugs:#223] [text2d] and [text3d] crashes when loading a font

Status: open
Group: linux
Created: Tue May 13, 2014 11:24 AM UTC by Antoine Villeret
Last Updated: Tue May 13, 2014 11:24 AM UTC
Owner: IOhannes m zmölnig

with the latest code from here, [text2d] and [text3d] crashes when sending a [load vera.ttf( message twice.

here is a backtrace :

(gdb) thread apply all bt

Thread 1 (Thread 0x7ffff7fc1740 (LWP 26229)):
#0  0x0000000000000020 in ?? ()
#1  0x00007ffff39315e9 in text2d::makeFont (this=0xb28070, 
    fontfile=0x84b798 "/home/antoine/pd/Gem/tests/../examples/data/vera.ttf")
    at text2d.cpp:61
#2  0x00007ffff389d9a0 in TextBase::fontNameMess (this=this@entry=0xb28070, 
    filename=...) at TextBaseFTGL.cpp:172
#3  0x00007ffff389cc06 in TextBase::_CallbackClass_fontNameMess_505::callback (
    data=<optimized out>, v0=<optimized out>) at TextBaseFTGL.cpp:505
#4  0x0000000000467a5f in pd_typedmess ()
#5  0x000000000046947a in outlet_anything ()
#6  0x000000000046795b in pd_typedmess ()
#7  0x00000000004728aa in binbuf_eval ()
#8  0x000000000041d69f in text_click ()
#9  0x000000000044d877 in canvas_doclick ()
#10 0x0000000000467a69 in pd_typedmess ()
#11 0x000000000046795b in pd_typedmess ()
#12 0x00000000004728aa in binbuf_eval ()
#13 0x000000000047c629 in socketreceiver_read ()
#14 0x000000000047b17a in sys_domicrosleep.constprop.3 ()
#15 0x0000000000476731 in m_mainloop ()
#16 0x00007ffff6defde5 in __libc_start_main (main=0x411800 <main>, argc=2, ubp_av=0x7fffffffe0a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe098) at libc-start.c:260
#17 0x0000000000411831 in _start ()

the file "/home/antoine/pd/Gem/tests/../examples/data/vera.ttf" exists (if not, an error is shown in Pd's console without crash)

this happends on ubuntu 12.04, 13.10 and 14.04


Sent from sourceforge.net because gem-dev@lists.iem.at is subscribed to https://sourceforge.net/p/pd-gem/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pd-gem/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.