Comment 10 for bug 1690519

Revision history for this message
GunChleoc (gunchleoc) wrote :

I just got another one, this one definitely from the font renderer. I was working on converting some markup, so the C++ code is all the current trunk version. I guess the next step is to use unique_ptr for the RenderNodes after we have the multitexture branch finished - I had looked into it there and decided against it in order to keep the diff a bit smallerer. Also, the change will be non-trivial.

Thread 1 "widelands" received signal SIGSEGV, Segmentation fault.
0x0000000000dede0f in RT::DivTagRenderNode::~DivTagRenderNode (this=0x8f48860, __in_chrg=<optimised out>)
    at /home/bratzbert/sources/widelands/fh1-editorhelp/src/graphic/text/rt_render.cc:688
688 delete n;
(gdb) backtrace
#0 0x0000000000dede0f in RT::DivTagRenderNode::~DivTagRenderNode (this=0x8f48860, __in_chrg=<optimised out>)
    at /home/bratzbert/sources/widelands/fh1-editorhelp/src/graphic/text/rt_render.cc:688
#1 0x0000000000dede9e in RT::DivTagRenderNode::~DivTagRenderNode (this=0x8f48860, __in_chrg=<optimised out>)
    at /home/bratzbert/sources/widelands/fh1-editorhelp/src/graphic/text/rt_render.cc:691
#2 0x0000000000df87ea in std::default_delete<RT::RenderNode>::operator() (this=0x7fffffffa050, __ptr=0x8f48860)
    at /usr/include/c++/5/bits/unique_ptr.h:76
#3 0x0000000000df5e19 in std::unique_ptr<RT::RenderNode, std::default_delete<RT::RenderNode> >::~unique_ptr (this=0x7fffffffa050,
    __in_chrg=<optimised out>) at /usr/include/c++/5/bits/unique_ptr.h:236
#4 0x0000000000dec348 in RT::Renderer::render (this=0x1c28810,
    text="<rt><p><font size=18 bold=1 color=D1D1D1>Àilean beinne<br></font></p><vspace gap=6><div width=100%><div width=100%><p><font size=12><img src=world/terrains/pics/desert/highmountainmeadow_00.png><vspa"..., width=338, allowed_tags=std::set with 0 elements)
    at /home/bratzbert/sources/widelands/fh1-editorhelp/src/graphic/text/rt_render.cc:1485
#5 0x0000000000dbd053 in (anonymous namespace)::RTImage::texture (this=0x8f47f80)
    at /home/bratzbert/sources/widelands/fh1-editorhelp/src/graphic/font_handler1.cc:91
#6 0x0000000000dbcf5e in (anonymous namespace)::RTImage::width (this=0x8f47f80)