[Lazarus] Trunk LCL-AggPas demo 1 gives segmentation fault

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Mar 12 10:57:24 CET 2012


Hi,

Can anybody else successfully run the AggPasInLCLDemo1 demo (an
LCL-AggPas demo) under 64-bit Linux?

I've got the latest Lazarus Trunk and using FPC 2.6.1 under 64-bit
Ubuntu 10.04. Running the demo gives me a near instant crash. Ignoring
the error gives me a blank form. No AggPas painting occurs at all.

---------------------------------------------
$ gdb ./AggPasInLCLDemo1
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/opt/git/lazarus_argon/components/aggpas/lazarus/example/AggPasInLCLDemo1...done.
(gdb) break fpc_raiseexception
Breakpoint 1 at 0x455ea0
(gdb) run
Starting program:
/opt/git/lazarus_argon/components/aggpas/lazarus/example/AggPasInLCLDemo1
[Thread debugging using libthread_db enabled]
TForm1.FormCreate ../../verdana.ttf True

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5908595 in FT_Render_Glyph () from /usr/lib/libfreetype.so.6
(gdb) bt
#0  0x00007ffff5908595 in FT_Render_Glyph () from /usr/lib/libfreetype.so.6
#1  0x000000000078cb4c in PREPARE_GLYPH (this=..., GLYPH_CODE=72)
    at ../../../../../lazarus/components/aggpas/src/agg_font_freetype.pas:1283
#2  0x000000000076b883 in GLYPH (this=..., GLYPH_CODE=72)
    at ../../../../../lazarus/components/aggpas/src/agg_font_cache_manager.pas:465
#3  0x0000000000747cab in AGGTEXTOUT (this=0x7ffff7e0ec30, X=10, Y=49,
    STR=0xa32ce0 "LCL and AggPas", ROUNDOFF=false, DDX=0, DDY=0)
    at ../../../../../lazarus/components/aggpas/src/agg_fpimage.pas:2941
#4  0x000000000074b9d7 in AGGTEXTOUT (this=0x7ffff7e0ec30, X=10.5, Y=30.5,
    STR=0xa32ce0 "LCL and AggPas", ROUNDOFF=false, DDX=0, DDY=0)
    at ../../../../../lazarus/components/aggpas/src/agg_lcl.pas:452
#5  0x0000000000742779 in DOTEXTOUT (this=0x7ffff7e0ec30, X=10, Y=30,
    STR=0xa32ce0 "LCL and AggPas")
    at ../../../../../lazarus/components/aggpas/src/agg_fpimage.pas:1480
#6  0x000000000053ae01 in
FPCANVAS$_$TFPCUSTOMCANVAS_$__$$_TEXTOUT$LONGINT$LONGINT$ANSISTRING ()
#7  0x00000000004827fe in FORMCREATE (this=0x7ffff7e0d630,
    SENDER=0x7ffff7e0d630) at unit1.pas:66
#8  0x000000000046d779 in DOCREATE (this=0x7ffff7e0d630)
    at ../../../lazarus/lcl/include/customform.inc:863
#9  0x000000000046ba9d in AFTERCONSTRUCTION (this=0x7ffff7e0d630)
    at ../../../lazarus/lcl/include/customform.inc:79
---Type <return> to continue, or q <return> to quit---
#10 0x0000000000474160 in CREATE (this=0x7ffff7e0d630, vmt=0x1,
    THEOWNER=0x7ffff7e05050)
    at ../../../lazarus/lcl/include/customform.inc:2956
#11 0x000000000047ea27 in CREATEFORM (this=0x7ffff7e05050,
    INSTANCECLASS=0xa32270, REFERENCE=0)
    at ../../../lazarus/lcl/include/application.inc:2166
#12 0x0000000000445935 in main () at AggPasInLCLDemo1.lpr:17
(gdb)
---------------------------------------------

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net




More information about the Lazarus mailing list