← Back to team overview

kicad-developers team mailing list archive

Re: Bitmap fonts

 

Le 22/04/2016 11:31, Maciej Sumiński a écrit :
> On 04/22/2016 11:03 AM, jp charras wrote:
>> I just tested the new code:
>> With a large board (for instance the "video" demo), i have a segmentation fault (no error displayed,
>> just a crash)
> 
> Is it possible to get a backtrace? I cannot crash it here.
> 
> Regards,
> Orson

Debug compil just finished...
Here for you, in attached file.


-- 
Jean-Pierre CHARRAS
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x04b91a5b in KIGFX::CACHED_CONTAINER::defragmentResize (this=0x5be3d720,
    aNewSize=2097152)
    at E:/kicad-launchpad/essais/test_fonts/common/gal/opengl/cached_container.cpp:454
#2  0x04b9134e in KIGFX::CACHED_CONTAINER::reallocate (this=0x5be3d720,
    aSize=282774)
    at E:/kicad-launchpad/essais/test_fonts/common/gal/opengl/cached_container.cpp:286
#3  0x04b90d13 in KIGFX::CACHED_CONTAINER::Allocate (this=0x5be3d720, aSize=6)
    at E:/kicad-launchpad/essais/test_fonts/common/gal/opengl/cached_container.cpp:133
#4  0x04b8a1d8 in KIGFX::VERTEX_MANAGER::Reserve (this=0x5b79d17c, aSize=6)
    at E:/kicad-launchpad/essais/test_fonts/common/gal/opengl/vertex_manager.cpp:71
#5  0x04b86eac in KIGFX::OPENGL_GAL::drawLineQuad (this=0x5b79cd78,
    aStartPoint=..., aEndPoint=...)
    at E:/kicad-launchpad/essais/test_fonts/common/gal/opengl/opengl_gal.cpp:1075
#6  0x04b85683 in KIGFX::OPENGL_GAL::DrawPolyline (this=0x5b79cd78,
    aPointList=...)
    at E:/kicad-launchpad/essais/test_fonts/common/gal/opengl/opengl_gal.cpp:557
#7  0x04a8e6e7 in KIGFX::PCB_PAINTER::draw (this=0x51038f00, aZone=0x5abae2a0)
    at E:/kicad-launchpad/essais/test_fonts/pcbnew/pcb_painter.cpp:941
#8  0x04a8b273 in KIGFX::PCB_PAINTER::Draw (this=0x51038f00, aItem=
    0x5abae2a0, aLayer=1)
    at E:/kicad-launchpad/essais/test_fonts/pcbnew/pcb_painter.cpp:258
#9  0x04c56910 in KIGFX::VIEW::recacheItem::operator() (this=0x22f3e4,
    aItem=0x5abae2a0)
    at E:/kicad-launchpad/essais/test_fonts/common/view/view.cpp:716
#10 0x04c5b254 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Search<KIGFX::VIEW::recacheItem> (this=0x50e27f98, a_node=0x503                            88598, a_rect=0x22f35c,
    a_visitor=..., a_foundCount=@0x22f358: 2317981)
    at E:/kicad-launchpad/essais/test_fonts/include/geometry/rtree.h:504
#11 0x04c5b1c5 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Search<KIGFX::VIEW::recacheItem> (this=0x50e27f98, a_node=0x504                            0af88, a_rect=0x22f35c,
    a_visitor=..., a_foundCount=@0x22f358: 2317981)
    at E:/kicad-launchpad/essais/test_fonts/include/geometry/rtree.h:489
#12 0x04c5b1c5 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Search<KIGFX::VIEW::recacheItem> (this=0x50e27f98, a_node=0x50b                            087d0, a_rect=0x22f35c,
    a_visitor=..., a_foundCount=@0x22f358: 2317981)
    at E:/kicad-launchpad/essais/test_fonts/include/geometry/rtree.h:489
#13 0x04c5b1c5 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Search<KIGFX::VIEW::recacheItem> (this=0x50e27f98, a_node=0x50b                            08890, a_rect=0x22f35c,
    a_visitor=..., a_foundCount=@0x22f358: 2317981)
    at E:/kicad-launchpad/essais/test_fonts/include/geometry/rtree.h:489
#14 0x04c5b2f8 in RTree<KIGFX::VIEW_ITEM*, int, 2, float, 8, 4>::Search<KIGFX::VIEW::recacheItem> (this=0x50e27f98, a_min=0x22f3                            a8, a_max=0x22f3a0,
    a_visitor=...)
    at E:/kicad-launchpad/essais/test_fonts/include/geometry/rtree.h:158
#15 0x04c54ab3 in KIGFX::VIEW_RTREE::Query<KIGFX::VIEW::recacheItem> (
    this=0x50e27f98, aBounds=..., aVisitor=...)
    at E:/kicad-launchpad/essais/test_fonts/include/view/view_rtree.h:85
#16 0x04b2d17f in KIGFX::VIEW::RecacheAllItems (this=0x5103cb10,
    aImmediately=true)
    at E:/kicad-launchpad/essais/test_fonts/common/view/view.cpp:1030
#17 0x0493881b in PCB_DRAW_PANEL_GAL::DisplayBoard (this=0x4fb2fce8, aBoard=
    0x5114dfd0)
    at E:/kicad-launchpad/essais/test_fonts/pcbnew/pcb_draw_panel_gal.cpp:179
#18 0x0477d4ff in PCB_BASE_EDIT_FRAME::SetBoard (this=0x4fb2ba38,
    aBoard=0x5114dfd0)
    at E:/kicad-launchpad/essais/test_fonts/pcbnew/pcb_base_edit_frame.cpp:84
#19 0x04776faa in PCB_EDIT_FRAME::SetBoard (this=0x4fb2ba38,
    aBoard=0x5114dfd0)
    at E:/kicad-launchpad/essais/test_fonts/pcbnew/pcbframe.cpp:476
#20 0x049f8952 in PCB_BASE_FRAME::UseGalCanvas (this=0x4fb2ba38, aEnable=true)
    at E:/kicad-launchpad/essais/test_fonts/pcbnew/basepcbframe.cpp:974
#21 0x0477d3f9 in PCB_BASE_EDIT_FRAME::UseGalCanvas (this=0x4fb2ba38,
    aEnable=true)

Follow ups

References