Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-10

OpenBSD 5.8 64bit - lazarus - exception

17 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tomaž Žveglič

OS: OpenBSD bsd 5.8 GENERIC#1170 amd64

lazarus was compiled using fpc 2.6.4:
-------------------------------------
# pkg_add gmake
# pkg_add gdk-pixbuf
# pkg_add gtk+2
# pkg_add fpc
# tar -xzvpf lazarus-1.4.4-0.tar.gz
# cd lazarus
# gmake clean bigide
-------------------------------------
Compilation was smooth.

When I run lazarus this error is displayed:
---------------------------------------------------- # ./lazarus

(lazarus:32495): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$000000021A35B2FA
TApplication.HandleException Access violation
Stack trace:
$000000021A35B2FA
[FORMS.PP] ExceptionOccurred
----------------------------------------------------

The same installation process works fine under OpenBSD 5.8 32bit (i386) version and lazarus works fine.

Regards,
TomazZ

Reply by email

Mattias Gaertner
to Tomaž Žveglič
Show quoted text 10 lines
OS: OpenBSD bsd 5.8 GENERIC#1170 amd64 lazarus was compiled using fpc 2.6.4: [...] When I run lazarus this error is displayed: ---------------------------------------------------- # ./lazarus (lazarus:32495): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

Please try starting it with
./lazarus --g-fatal-warnings

Also try compiling an IDE without extra packages:
gmake clean all
instead of "gmake clean bigide"

Mattias

Reply by email

Tomaž Žveglič
to Mattias Gaertner
Mattias Gaertner wrote 27 lines
On Mon, 26 Oct 2015 14:35:21 +0100 Toma? ?vegli? wrote: > OS: OpenBSD bsd 5.8 GENERIC#1170 amd64 > > lazarus was compiled using fpc 2.6.4: > [...] > When I run lazarus this error is displayed: > ---------------------------------------------------- > # ./lazarus > > (lazarus:32495): GLib-GObject-CRITICAL **: g_object_unref: assertion > 'G_IS_OBJECT (object)' failed Please try starting it with ./lazarus --g-fatal-warnings Also try compiling an IDE without extra packages: gmake clean all instead of "gmake clean bigide" Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks Mattias for reply :)

---------------------------------
# ./lazarus --g-fatal-warnings

(lazarus:27705): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Trace/BPT trap (core dumped)
---------------------------------

"gmake clean all" makes no difference, compilation was ok, but runing lazarus produces the same error.

Do you need lazarus.core (26MB) ? I can make download link of core file.

Regards,
TomazZ

Reply by email

Zeljko
to Tomaž Žveglič: OS: OpenBSD bsd 5.8 GENERIC#1170 amd64 lazarus was compiled using fpc 2.6.4:…
Toma? ?vegli? wrote 20 lines
When I run lazarus this error is displayed: ---------------------------------------------------- # ./lazarus (lazarus:32495): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed [FORMS.PP] ExceptionOccurred Sender=EAccessViolation Exception=Access violation Stack trace: $000000021A35B2FA TApplication.HandleException Access violation Stack trace: $000000021A35B2FA [FORMS.PP] ExceptionOccurred ---------------------------------------------------- The same installation process works fine under OpenBSD 5.8 32bit (i386) version and lazarus works fine.

Probably because of glib2/gtk2 libs diff.
What's glib2 version ? What's gtk2 version ?

zeljko

Reply by email

Tomaž Žveglič
to Zeljko
Zeljko wrote 35 lines
On 10/26/2015 02:35 PM, Toma? ?vegli? wrote: > When I run lazarus this error is displayed: > ---------------------------------------------------- > # ./lazarus > > (lazarus:32495): GLib-GObject-CRITICAL **: g_object_unref: assertion > 'G_IS_OBJECT (object)' failed > [FORMS.PP] ExceptionOccurred > Sender=EAccessViolation > Exception=Access violation > Stack trace: > $000000021A35B2FA > TApplication.HandleException Access violation > Stack trace: > $000000021A35B2FA > [FORMS.PP] ExceptionOccurred > ---------------------------------------------------- > > > The same installation process works fine under OpenBSD 5.8 32bit (i386) > version and lazarus works fine. Probably because of glib2/gtk2 libs diff. What's glib2 version ? What's gtk2 version ? zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks for reply ?eljko.

gtk+2 2.24.28
glib2 2.44.1

OpenBSD 5.8 AMD64
-rw-r--r-- 1 0 0 16416767 Aug 9 05:48:06 2015 gtk+2-2.24.28.tgz -rw-r--r-- 1 0 0 8075667 Aug 9 05:47:28 2015 glib2-2.44.1.tgz

OpenBSD 5.8 i386:
-rw-r--r-- 1 0 0 15912526 Aug 9 09:21:14 2015 gtk+2-2.24.28.tgz -rw-r--r-- 1 0 0 7786426 Aug 9 09:20:35 2015 glib2-2.44.1.tgz

Other OpenBSD package versions can be found here:
ftp://ftp.openbsd.org/pub/OpenBSD/5.8/packages/amd64/index.txt

32bit and 64 bit uses same version of gtk+2 and glib2. Lazarus works fine under OpenBSD 5.8 32 bit.
But not under 64 bit version.

Regards,
TomazZ

Reply by email

Tomaž Žveglič
to Zeljko
Zeljko wrote 21 lines
> > gtk+2 2.24.28 > glib2 2.44.1 Can you start lazarus via gdb and send backtrace ? Buld lazarus with -gl and gdb ./lazarus run ---crash bt ---- now copy backtrace here zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

What do you mean by "Buld lazarus with -gl" did you mean "gmake clean all -gl"?

----------------------------------------
gdb ./lazarus
GNU gdb 6.3 ...
(gdb) run
Starting program: /root/lazarus/lazarus

Program received signal SIGBUS, Bus error.
0x00000002954fe2fa in g_object_new ()
from /usr/local/lib/libgobject-2.0.so.4200.1
Current language: auto; currently c
(gdb) bt
#0 0x00000002954fe2fa in g_object_new ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#1 0x00000002f2a1a195 in gtk_adjustment_new ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#2 0x00000002f2b2071f in gtk_range_set_adjustment () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#3 0x00000002954fd46d in g_object_new_internal () from /usr/local/lib/libgobject-2.0.so.4200.1
#4 0x00000002954fdd45 in g_object_new_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#5 0x00000002954fe364 in g_object_new ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#6 0x0000000000a1ca0e in GETSTYLEWITHNAME (
WNAME=0x19b6d08 "vertical scrollbar") at gtk2proc.inc:7860 #7 0x0000000000a1c3d7 in GETSTYLE (ASTYLE=LGSVERTICALSCROLLBAR) at gtk2proc.inc:7665
#8 0x00000000009190de in INITSYSTEMCOLORS (this=0x27d04f650) at gtk2widgetset.inc:2445
#9 0x0000000000914149 in GTK2CREATE (this=0x27d04f650) at gtk2widgetset.inc:1444
#10 0x00000000009120c6 in CREATE (this=0x27d04f650, vmt=0x1906a60) at gtk2widgetset.inc:974
#11 0x000000000076fbd1 in CREATEWIDGETSET (AWIDGETSETCLASS=0x1906a60) ---Type <return> to continue, or q <return> to quit--- at forms.pp:2066
#12 0x000000000076e190 in INTERFACES_init () at interfaces.pas:37 #13 0x000000000073fa3e in fpc_initializeunits ()
#14 0x0000000000000000 in ?? ()
(gdb)
----------------------------------------

Regards,
TomazZ

Reply by email

Zeljko
to Tomaž Žveglič
Show quoted text 26 lines
gdb ./lazarus GNU gdb 6.3 ... (gdb) run Starting program: /root/lazarus/lazarus Program received signal SIGBUS, Bus error. 0x00000002954fe2fa in g_object_new () from /usr/local/lib/libgobject-2.0.so.4200.1 Current language: auto; currently c (gdb) bt #0 0x00000002954fe2fa in g_object_new () from /usr/local/lib/libgobject-2.0.so.4200.1 #1 0x00000002f2a1a195 in gtk_adjustment_new () from /usr/local/lib/libgtk-x11-2.0.so.2400.0 #2 0x00000002f2b2071f in gtk_range_set_adjustment () from /usr/local/lib/libgtk-x11-2.0.so.2400.0 #3 0x00000002954fd46d in g_object_new_internal () from /usr/local/lib/libgobject-2.0.so.4200.1 #4 0x00000002954fdd45 in g_object_new_valist () from /usr/local/lib/libgobject-2.0.so.4200.1 #5 0x00000002954fe364 in g_object_new () from /usr/local/lib/libgobject-2.0.so.4200.1 #6 0x0000000000a1ca0e in GETSTYLEWITHNAME ( WNAME=0x19b6d08 "vertical scrollbar") at gtk2proc.inc:7860 #7 0x0000000000a1c3d7 in GETSTYLE (ASTYLE=LGSVERTICALSCROLLBAR) at gtk2proc.inc:7665

This is not trunk lazaruz according to line info .... so try next and give feedback (I'll try to install OpenBSD 5.8 64bit in vmware next days and see what happens)....
in lcl/widgetset/gtk2/gtk2proc.inc
find lines (around line 7665) and add gtkadjustment:

       If CompareText(WName,LazGtkStyleNames[lgsVerticalScrollbar])=0
then begin
         lgs:=lgsVerticalScrollbar;
         StyleObject^.Widget := gtk_vscrollbar_new(
gtk_adjustment_new(0, 0, 100, 1, 1, 100)); // add gtkAdjustment instead
of nil
       end
     else
       If CompareText(WName,LazGtkStyleNames[lgsHorizontalScrollbar])=0
then begin
         lgs:=lgsHorizontalScrollbar;
         StyleObject^.Widget := gtk_hscrollbar_new(
gtk_adjustment_new(0, 0, 100, 1, 1, 100)); // add gtkAdjustment instead
of nil
       end

I know that this will create memleak, but just want to know if it will crash when gtkAdjustment is added as param to gtk_vscrollbar_new()

Thanks

zeljko

Reply by email

Tomaž Žveglič
to Zeljko
Zeljko wrote 65 lines
> gdb ./lazarus > GNU gdb 6.3 ... > (gdb) run > Starting program: /root/lazarus/lazarus > > Program received signal SIGBUS, Bus error. > 0x00000002954fe2fa in g_object_new () > from /usr/local/lib/libgobject-2.0.so.4200.1 > Current language: auto; currently c > (gdb) bt > #0 0x00000002954fe2fa in g_object_new () > from /usr/local/lib/libgobject-2.0.so.4200.1 > #1 0x00000002f2a1a195 in gtk_adjustment_new () > from /usr/local/lib/libgtk-x11-2.0.so.2400.0 > #2 0x00000002f2b2071f in gtk_range_set_adjustment () > from /usr/local/lib/libgtk-x11-2.0.so.2400.0 > #3 0x00000002954fd46d in g_object_new_internal () > from /usr/local/lib/libgobject-2.0.so.4200.1 > #4 0x00000002954fdd45 in g_object_new_valist () > from /usr/local/lib/libgobject-2.0.so.4200.1 > #5 0x00000002954fe364 in g_object_new () > from /usr/local/lib/libgobject-2.0.so.4200.1 > #6 0x0000000000a1ca0e in GETSTYLEWITHNAME ( > WNAME=0x19b6d08 "vertical scrollbar") at gtk2proc.inc:7860 > #7 0x0000000000a1c3d7 in GETSTYLE (ASTYLE=LGSVERTICALSCROLLBAR) > at gtk2proc.inc:7665 This is not trunk lazaruz according to line info .... so try next and give feedback (I'll try to install OpenBSD 5.8 64bit in vmware next days and see what happens).... in lcl/widgetset/gtk2/gtk2proc.inc find lines (around line 7665) and add gtkadjustment: If CompareText(WName,LazGtkStyleNames[lgsVerticalScrollbar])=0 then begin lgs:=lgsVerticalScrollbar; StyleObject^.Widget := gtk_vscrollbar_new( gtk_adjustment_new(0, 0, 100, 1, 1, 100)); // add gtkAdjustment instead of nil end else If CompareText(WName,LazGtkStyleNames[lgsHorizontalScrollbar])=0 then begin lgs:=lgsHorizontalScrollbar; StyleObject^.Widget := gtk_hscrollbar_new( gtk_adjustment_new(0, 0, 100, 1, 1, 100)); // add gtkAdjustment instead of nil end I know that this will create memleak, but just want to know if it will crash when gtkAdjustment is added as param to gtk_vscrollbar_new() Thanks zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi ?eljko,

thanks for hints :)

I changed file "lazarus/lcl/interfaces/gtk2/gtk2proc.inc" like this:
-------------------------
var
Adjustment: PGtkAdjustment;
-------------------------
       If CompareText(WName,LazGtkStyleNames[lgsVerticalScrollbar])=0
then begin
         lgs:=lgsVerticalScrollbar;
         Adjustment := PgtkAdjustment( gtk_adjustment_new(0, 0, 100, 1,
1, 100));
         StyleObject^.Widget := gtk_vscrollbar_new(Adjustment); // add
gtkAdjustment instead of nil
       end
     else
       If CompareText(WName,LazGtkStyleNames[lgsHorizontalScrollbar])=0
then begin
         lgs:=lgsHorizontalScrollbar;
         Adjustment := PgtkAdjustment( gtk_adjustment_new(0, 0, 100, 1,
1, 100));
         StyleObject^.Widget := gtk_hscrollbar_new(Adjustment); // add
gtkAdjustment instead of nil
       end
-------------------------

Now some new error occured:
-------------------------
$ ./lazarus
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/tomaz/.lazarus"
SecondaryConfigPath="/etc/lazarus"
[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$00000002B60EB2FA
TApplication.HandleException Access violation
Stack trace:
$00000002B60EB2FA
-------------------------

-------------------------
$ gdb ./lazarus
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd5.8"... (gdb) run
Starting program: /home/tomaz/prg/lazarus/lazarus
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/tomaz/.lazarus"
SecondaryConfigPath="/etc/lazarus"

Program received signal SIGBUS, Bus error.
0x00000002b51792fa in g_object_new () from
/usr/local/lib/libgobject-2.0.so.4200.1
Current language: auto; currently c
(gdb) bt
#0 0x00000002b51792fa in g_object_new () from
/usr/local/lib/libgobject-2.0.so.4200.1
#1 0x00000002e19b1195 in gtk_adjustment_new () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#2 0x00000002e1a6b195 in gtk_layout_constructor () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#3 0x00000002b5178a92 in g_object_new_internal () from /usr/local/lib/libgobject-2.0.so.4200.1
#4 0x00000002b5178d45 in g_object_new_valist () from /usr/local/lib/libgobject-2.0.so.4200.1
#5 0x00000002b5179364 in g_object_new () from
/usr/local/lib/libgobject-2.0.so.4200.1
#6 0x0000000000a1bae4 in CREATEFORMCONTENTS (AFORM=0x2c31ef530, FORMWIDGET=0x2887b8500,
AWIDGETINFO=0x282a0bb20) at gtk2proc.inc:7485
#7 0x0000000000ad6252 in CREATEHANDLE (self=0x2c31f0a30, AWINCONTROL=0x2c31ef530, APARAMS=
{CAPTION = 0x2174d4fb0 "Lazarus", STYLE = 100663296, EXSTYLE = 65536, X = 561, Y = 370, WIDTH = 429, HEIGHT = 341, WNDPARENT = 0, PARAM = 0x0, WINDOWCLASS = {STYLE = 0, LPFNWNDPROC = 0x0, CBCLSEXTRA = 0, CBWNDEXTRA = 0, HINSTANCE = 0, HICON = 0, HCURSOR = 0, HBRBACKGROUND = 0, LPSZMENUNAME = 0x0, LPSZCLASSNAME = 0x0}, WINCLASSNAME = '\0' <repeats 63 times>})
at gtk2wsforms.pp:424
#8 0x000000000097f88d in CREATEWND (this=0x2c31ef530) at wincontrol.inc:7399
#9 0x000000000077100d in CREATEWND (this=0x2c31ef530) at scrollingwincontrol.inc:23
#10 0x000000000077a302 in CREATEWND (this=0x2c31ef530) at customform.inc:2584
#11 0x000000000077be31 in CREATEWND (this=0x2c31ef530) at customform.inc:3050
#12 0x000000000097dddc in CREATEHANDLE (this=0x2c31ef530) at wincontrol.inc:7309
#13 0x0000000000980ade in HANDLENEEDED (this=0x2c31ef530) at wincontrol.inc:7755
#14 0x000000000097564b in CHECKHANDLEALLOCATED (parentfp=0x7f7ffffdfa40, AWINCONTROL=0x2c31ef530) at wincontrol.inc:3445
#15 0x000000000097523b in DOALLAUTOSIZE (this=0x2c31ef530) at wincontrol.inc:3496
#16 0x00000000009941d2 in ENABLEAUTOSIZING (this=0x2c31ef530) at control.inc:5460
#17 0x0000000000990528 in SETVISIBLE (this=0x2c31ef530, VALUE=true) at control.inc:4300
#18 0x0000000000773e4a in SETVISIBLE (this=0x2c31ef530, VALUE=true) at customform.inc:486
#19 0x0000000000778eaa in SHOW (this=0x2c31ef530) at customform.inc:2196 #20 0x000000000072a8f2 in main () at lazarus.pp:112 (gdb)
-------------------------

Regards,
TomazZ

Reply by email

Zeljko
to Tomaž Žveglič
#6 0x0000000000a1bae4 in CREATEFORMCONTENTS (AFORM=0x2c31ef530, FORMWIDGET=0x2887b8500, AWIDGETINFO=0x282a0bb20) at gtk2proc.inc:7485
huh ?!? There's simple pointer assignment at this point FormWidget :=
Result ... definitelly must install openbsd and see what's up.

zeljko

Reply by email

Tomaž Žveglič
to Zeljko
Zeljko wrote 18 lines
> #6 0x0000000000a1bae4 in CREATEFORMCONTENTS (AFORM=0x2c31ef530, > FORMWIDGET=0x2887b8500, > AWIDGETINFO=0x282a0bb20) at gtk2proc.inc:7485 ah, maybe lineinfo is invalid (not like in trunk), so pls. in that function of gtk2proc add gtk_adjustment_new where crash occurs...there are 2 places where gtkAdjustment is param. zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks ?eljko,

so far this changes were made to file
"lazarus/lcl/interfaces/gtk2/gtk2proc.inc":
-------------------------------
ScrolledWidget := gtk_scrolled_window_new(PgtkAdjustment( gtk_adjustment_new(0, 0, 100, 1, 1, 100)), PgtkAdjustment( gtk_adjustment_new(0, 0, 100, 1, 1, 100)));
-------------------------------
ClientAreaWidget := gtk_layout_new(PgtkAdjustment( gtk_adjustment_new(0, 0, 100, 1, 1, 100)), PgtkAdjustment( gtk_adjustment_new(0, 0, 100, 1, 1, 100)));
-------------------------------
Adjustment := PgtkAdjustment(gtk_adjustment_new(0, 0, 100, 1, 1, 100)); StyleObject^.Widget := gtk_vscrollbar_new(Adjustment); -------------------------------
Adjustment := PgtkAdjustment(gtk_adjustment_new(0, 0, 100, 1, 1, 100)); StyleObject^.Widget := gtk_vscrollbar_new(Adjustment); -------------------------------

Now when i run lazarus:
---------------------------------------------------------- # ./lazarus
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/root/.lazarus"
SecondaryConfigPath="/etc/lazarus"
TApplication.HandleException Access violation
Stack trace:
$00000002C162501D line 1083 of
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c [TGtk2WidgetSet.Destroy] WARNING: There are 4 unreleased DCs, a detailed dump follows:
[TGtk2WidgetSet.Destroy] DCs: 000000029C834840 000000029C834640 000000029C834440 000000029C834240
[TGtk2WidgetSet.Destroy] WARNING: There are 6 unreleased GDIObjects, a detailed dump follows:
[TGtk2WidgetSet.Destroy] GDIOs: 000000020D32D8C0 000000020D32D6C0 000000020D32D640 000000020D32D740 000000020D32D7C0 000000020D32D5C0 [TGtk2WidgetSet.Destroy] gdiBitmap: 2
[TGtk2WidgetSet.Destroy] gdiBrush: 1
[TGtk2WidgetSet.Destroy] gdiFont: 2
[TGtk2WidgetSet.Destroy] gdiRegion: 1
----------------------------------------------------------

Stack trace:
---------------------------------------------------------- # gdb ./lazarus
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd5.8"... (gdb) run
Starting program: /root/lazarus/lazarus
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/root/.lazarus"
SecondaryConfigPath="/etc/lazarus"

Program received signal SIGBUS, Bus error.
0x0000000216c7501d in IA__FcPatternBuild (p=0x0)
at
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c:1083 1083
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c: No such file or directory.
in
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c Current language: auto; currently c
(gdb) bt
#0 0x0000000216c7501d in IA__FcPatternBuild (p=0x0) at
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c:1083 #1 0x0000000253822306 in pango_fc_font_map_load_fontset () from /usr/local/lib/libpangoft2-1.0.so.3600.0
#2 0x00000002498afb7b in itemize_state_process_run () from /usr/local/lib/libpango-1.0.so.3600.0
#3 0x00000002498b0338 in pango_itemize_with_base_dir () from /usr/local/lib/libpango-1.0.so.3600.0
#4 0x00000002498b9884 in pango_layout_check_lines () from /usr/local/lib/libpango-1.0.so.3600.0
#5 0x00000002498bab06 in pango_layout_get_extents_internal () from /usr/local/lib/libpango-1.0.so.3600.0
#6 0x00000002498bbcf0 in pango_layout_get_pixel_extents () from /usr/local/lib/libpango-1.0.so.3600.0
#7 0x00000002498bbd7c in pango_layout_get_pixel_size () from /usr/local/lib/libpango-1.0.so.3600.0
#8 0x0000000000b2ec4f in FONTISDOUBLEBYTECHARSFONT (THEFONT=0x2106c6af0) at gtk2proc.inc:9221
#9 0x0000000000a306b2 in UPDATEDCTEXTMETRIC (this=0x21dbb6650, DC=0x2ada92240)
at gtk2widgetset.inc:5913
#10 0x0000000000a3fd21 in GETTEXTMETRICS (this=0x21dbb6650, DC=11503477312, TM=
{TMHEIGHT = 0, TMASCENT = 2, TMDESCENT = -142768,
TMINTERNALLEADING = 32639, TMEXTERNALLEADING = 11774192, TMAVECHARWIDTH = 0, TMMAXCHARWIDTH = 0, TMWEIGHT = 0, TMOVERHANG = 5, TMDIGITIZEDASPECTX = 1, TMDIGITIZEDASPECTY = -1381423040, TMFIRSTCHAR = 2 '\002', TMLASTCHAR = 0 '\0', TMDEFAULTCHAR = 0 '\0', TMBREAKCHAR = 0 '\0', TMITALIC = 0 '\0', TMUNDERLINED = 210 '?', TMSTRUCKOUT = 253 '?', TMPITCHANDFAMILY = 255 '?', TMCHARSET = 127 '\177'}) at gtk2winapi.inc:5988 #11 0x0000000000a36e87 in DRAWTEXT (this=0x21dbb6650, DC=11503477312, STR=0x1cc4c90 "1.4.4", COUNT=5, RECT=
{LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, FLAGS=3109) at gtk2winapi.inc:2717
#12 0x00000000009c9c13 in DRAWTEXT (DC=11503477312, STR=0x1cc4c90 "1.4.4", COUNT=5, RECT=
{LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, FLAGS=3109) at winapi.inc:210
#13 0x00000000009bd87f in TEXTRECT (this=0x282cc6f40, ARECT= {LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, X=0, Y=281, TEXT=0x1cc4c90 "1.4.4",
STYLE=
---Type <return> to continue, or q <return> to quit--- {ALIGNMENT = TACENTER, LAYOUT = TLCENTER, SINGLELINE = true, CLIPPING = true, EXPANDTABS = false, SHOWPREFIX = false, WORDBREAK = false, OPAQUE = false, SYSTEMFONT = false, RIGHTTOLEFT = false, ENDELLIPSIS = false})
at canvas.inc:1302
#14 0x00000000008aad8b in IMAGEPAINT (this=0x260be6df0, SENDER=0x260be9c70) at splash.pp:118
#15 0x0000000000aa3761 in PAINT (this=0x260be9c70) at graphiccontrol.inc:90 #16 0x0000000000b0e469 in PAINT (this=0x260be9c70) at customimage.inc:226 #17 0x0000000000aa363f in WMPAINT (this=0x260be9c70, MESSAGE= {MSG = 15, UNUSEDMSG = 2, DC = 11503477312, PAINTSTRUCT = 0x0, RESULT = 0}) at graphiccontrol.inc:58
#18 0x0000000000849589 in SYSTEM_TOBJECT_$__DISPATCH$formal () #19 0x0000000000aa3568 in CONTROLS_TGRAPHICCONTROL_$__DESTROY () at customcontrol.inc:22
#20 0x0000000000a9649d in PERFORM (this=0x260be9c70, MSG=15, WPARAM=11503477312, LPARAM=0) at control.inc:1451
#21 0x0000000000a86f67 in PAINTCONTROLS (this=0x260be6df0, DC=11503477312, FIRST=0x0) at wincontrol.inc:4867
#22 0x0000000000a86d1e in PAINTHANDLER (this=0x260be6df0, THEMESSAGE= {MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at wincontrol.inc:4779
#23 0x0000000000a8b5d5 in WMPAINT (this=0x260be6df0, MSG= {MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at wincontrol.inc:6684
#24 0x0000000000aa3cab in WMPAINT (this=0x260be6df0, MESSAGE= {MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at customcontrol.inc:106 #25 0x0000000000849589 in SYSTEM_TOBJECT_$__DISPATCH$formal () #26 0x0000000000aa3c60 in CONTROLS_TCUSTOMCONTROL_$__WSREGISTERCLASS () at dockzone.inc:16
#27 0x0000000000a887e1 in WNDPROC (this=0x260be6df0, MESSAGE= {MSG = 15, UNUSEDMSG = 0, WPARAM = 11503477312, LPARAM = 9745203968, RESULT = 0}) at wincontrol.inc:5341
#28 0x0000000000884a10 in WNDPROC (this=0x260be6df0, THEMESSAGE= {MSG = 15, UNUSEDMSG = 0, WPARAM = 11503477312, LPARAM = 9745203968, RESULT = 0}) at customform.inc:1443
#29 0x0000000000b6fc45 in DELIVERMESSAGE (TARGET=0x260be6df0, AMESSAGE=0) at lclmessageglue.pas:112
#30 0x0000000000b21789 in DELIVERMESSAGE (TARGET=0x260be6df0, AMESSAGE=0) at gtk2proc.inc:3628
---Type <return> to continue, or q <return> to quit--- #31 0x0000000000b2f3c9 in DODELIVERPAINTMESSAGE (TARGET=0x260be6df0, PAINTMSG=
{MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at gtk2callback.inc:26
#32 0x0000000000b2f4b3 in DELIVERPAINTMESSAGE (TARGET=0x260be6df0, THEMESSAGE=0) at gtk2callback.inc:44
#33 0x0000000000b2f695 in DELIVERGTKPAINTMESSAGE (TARGET=0x260be6df0, WIDGET=0x2106c6990, AREA=0x7f7ffffde514, REPAINTALL=false, ISAFTERGTK=false) at gtk2callback.inc:102
#34 0x0000000000b30a7f in GTKEXPOSEEVENT (WIDGET=0x2106c6990, EVENT=0x7f7ffffde500, DATA=0x260be6df0) at gtk2callback.inc:704 #35 0x000000024d787c9f in _gtk_marshal_BOOLEAN__BOXED () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#36 0x00000002907434d3 in g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#37 0x0000000290759344 in signal_emit_unlocked_R () from /usr/local/lib/libgobject-2.0.so.4200.1
#38 0x000000029075b133 in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#39 0x000000029075bd61 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#40 0x000000024d8a59cf in gtk_widget_event_internal () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#41 0x000000024d781a90 in gtk_main_do_event ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#42 0x000000020c44d8d3 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#43 0x000000020c44d913 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#44 0x000000020c44d913 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#45 0x000000020c449815 in gdk_window_process_updates_internal () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#46 0x000000020c44b911 in gdk_window_process_all_updates () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#47 0x000000024d6fed12 in gtk_container_idle_sizer () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#48 0x000000020c4267ae in gdk_threads_dispatch ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#49 0x00000002cc6c10a2 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.4200.1
---Type <return> to continue, or q <return> to quit--- #50 0x00000002cc6c322b in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.4200.1
#51 0x00000002cc6c32f7 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.4200.1
#52 0x0000000000a27938 in APPPROCESSMESSAGES (this=0x21dbb6650) at gtk2widgetset.inc:2326
#53 0x000000000089035b in PROCESSMESSAGES (this=0x21dbb6050) at application.inc:381
#54 0x0000000000838e91 in main () at lazarus.pp:113 (gdb)
----------------------------------------------------------

Regards,
TomazZ

Reply by email

Zeljko
to Tomaž Žveglič
Toma? ?vegli? wrote 18 lines
at /usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c:1083 #1 0x0000000253822306 in pango_fc_font_map_load_fontset () from /usr/local/lib/libpangoft2-1.0.so.3600.0 #2 0x00000002498afb7b in itemize_state_process_run () from /usr/local/lib/libpango-1.0.so.3600.0 #3 0x00000002498b0338 in pango_itemize_with_base_dir () from /usr/local/lib/libpango-1.0.so.3600.0 #4 0x00000002498b9884 in pango_layout_check_lines () from /usr/local/lib/libpango-1.0.so.3600.0 #5 0x00000002498bab06 in pango_layout_get_extents_internal () from /usr/local/lib/libpango-1.0.so.3600.0 #6 0x00000002498bbcf0 in pango_layout_get_pixel_extents () from /usr/local/lib/libpango-1.0.so.3600.0 #7 0x00000002498bbd7c in pango_layout_get_pixel_size () from /usr/local/lib/libpango-1.0.so.3600.0 #8 0x0000000000b2ec4f in FONTISDOUBLEBYTECHARSFONT (THEFONT=0x2106c6af0) at gtk2proc.inc:9221
Seem that nil params kills openbsd 64. Go to FontIsDoubleByteCharsFont()
in gtk2proc.inc and add dummy integers to null params.
var
   SingleCharLen, DoubleCharLen, DummyCharHeight {added}: integer;
begin
   pango_layout_set_single_paragraph_mode(TheFont, TRUE);
   pango_layout_set_width(TheFont, -1);
   pango_layout_set_text(TheFont, 'A', 1);
   pango_layout_get_pixel_size(TheFont, @SingleCharLen, @DummyCharHeight);
   pango_layout_set_text(TheFont, #0'A', 2);
   pango_layout_get_pixel_size(TheFont, @DoubleCharLen, @DummmyCharHeight);
   Result:=(SingleCharLen=0) and (DoubleCharLen>0);
end;

now test

zeljko

Show quoted text 133 lines
#9 0x0000000000a306b2 in UPDATEDCTEXTMETRIC (this=0x21dbb6650, DC=0x2ada92240) at gtk2widgetset.inc:5913 #10 0x0000000000a3fd21 in GETTEXTMETRICS (this=0x21dbb6650, DC=11503477312, TM= {TMHEIGHT = 0, TMASCENT = 2, TMDESCENT = -142768, TMINTERNALLEADING = 32639, TMEXTERNALLEADING = 11774192, TMAVECHARWIDTH = 0, TMMAXCHARWIDTH = 0, TMWEIGHT = 0, TMOVERHANG = 5, TMDIGITIZEDASPECTX = 1, TMDIGITIZEDASPECTY = -1381423040, TMFIRSTCHAR = 2 '\002', TMLASTCHAR = 0 '\0', TMDEFAULTCHAR = 0 '\0', TMBREAKCHAR = 0 '\0', TMITALIC = 0 '\0', TMUNDERLINED = 210 '?', TMSTRUCKOUT = 253 '?', TMPITCHANDFAMILY = 255 '?', TMCHARSET = 127 '\177'}) at gtk2winapi.inc:5988 #11 0x0000000000a36e87 in DRAWTEXT (this=0x21dbb6650, DC=11503477312, STR=0x1cc4c90 "1.4.4", COUNT=5, RECT= {LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, FLAGS=3109) at gtk2winapi.inc:2717 #12 0x00000000009c9c13 in DRAWTEXT (DC=11503477312, STR=0x1cc4c90 "1.4.4", COUNT=5, RECT= {LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, FLAGS=3109) at winapi.inc:210 #13 0x00000000009bd87f in TEXTRECT (this=0x282cc6f40, ARECT= {LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, X=0, Y=281, TEXT=0x1cc4c90 "1.4.4", STYLE= ---Type <return> to continue, or q <return> to quit--- {ALIGNMENT = TACENTER, LAYOUT = TLCENTER, SINGLELINE = true, CLIPPING = true, EXPANDTABS = false, SHOWPREFIX = false, WORDBREAK = false, OPAQUE = false, SYSTEMFONT = false, RIGHTTOLEFT = false, ENDELLIPSIS = false}) at canvas.inc:1302 #14 0x00000000008aad8b in IMAGEPAINT (this=0x260be6df0, SENDER=0x260be9c70) at splash.pp:118 #15 0x0000000000aa3761 in PAINT (this=0x260be9c70) at graphiccontrol.inc:90 #16 0x0000000000b0e469 in PAINT (this=0x260be9c70) at customimage.inc:226 #17 0x0000000000aa363f in WMPAINT (this=0x260be9c70, MESSAGE= {MSG = 15, UNUSEDMSG = 2, DC = 11503477312, PAINTSTRUCT = 0x0, RESULT = 0}) at graphiccontrol.inc:58 #18 0x0000000000849589 in SYSTEM_TOBJECT_$__DISPATCH$formal () #19 0x0000000000aa3568 in CONTROLS_TGRAPHICCONTROL_$__DESTROY () at customcontrol.inc:22 #20 0x0000000000a9649d in PERFORM (this=0x260be9c70, MSG=15, WPARAM=11503477312, LPARAM=0) at control.inc:1451 #21 0x0000000000a86f67 in PAINTCONTROLS (this=0x260be6df0, DC=11503477312, FIRST=0x0) at wincontrol.inc:4867 #22 0x0000000000a86d1e in PAINTHANDLER (this=0x260be6df0, THEMESSAGE= {MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at wincontrol.inc:4779 #23 0x0000000000a8b5d5 in WMPAINT (this=0x260be6df0, MSG= {MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at wincontrol.inc:6684 #24 0x0000000000aa3cab in WMPAINT (this=0x260be6df0, MESSAGE= {MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at customcontrol.inc:106 #25 0x0000000000849589 in SYSTEM_TOBJECT_$__DISPATCH$formal () #26 0x0000000000aa3c60 in CONTROLS_TCUSTOMCONTROL_$__WSREGISTERCLASS () at dockzone.inc:16 #27 0x0000000000a887e1 in WNDPROC (this=0x260be6df0, MESSAGE= {MSG = 15, UNUSEDMSG = 0, WPARAM = 11503477312, LPARAM = 9745203968, RESULT = 0}) at wincontrol.inc:5341 #28 0x0000000000884a10 in WNDPROC (this=0x260be6df0, THEMESSAGE= {MSG = 15, UNUSEDMSG = 0, WPARAM = 11503477312, LPARAM = 9745203968, RESULT = 0}) at customform.inc:1443 #29 0x0000000000b6fc45 in DELIVERMESSAGE (TARGET=0x260be6df0, AMESSAGE=0) at lclmessageglue.pas:112 #30 0x0000000000b21789 in DELIVERMESSAGE (TARGET=0x260be6df0, AMESSAGE=0) at gtk2proc.inc:3628 ---Type <return> to continue, or q <return> to quit--- #31 0x0000000000b2f3c9 in DODELIVERPAINTMESSAGE (TARGET=0x260be6df0, PAINTMSG= {MSG = 15, UNUSEDMSG = 0, DC = 11503477312, PAINTSTRUCT = 0x244dc0300, RESULT = 0}) at gtk2callback.inc:26 #32 0x0000000000b2f4b3 in DELIVERPAINTMESSAGE (TARGET=0x260be6df0, THEMESSAGE=0) at gtk2callback.inc:44 #33 0x0000000000b2f695 in DELIVERGTKPAINTMESSAGE (TARGET=0x260be6df0, WIDGET=0x2106c6990, AREA=0x7f7ffffde514, REPAINTALL=false, ISAFTERGTK=false) at gtk2callback.inc:102 #34 0x0000000000b30a7f in GTKEXPOSEEVENT (WIDGET=0x2106c6990, EVENT=0x7f7ffffde500, DATA=0x260be6df0) at gtk2callback.inc:704 #35 0x000000024d787c9f in _gtk_marshal_BOOLEAN__BOXED () from /usr/local/lib/libgtk-x11-2.0.so.2400.0 #36 0x00000002907434d3 in g_closure_invoke () from /usr/local/lib/libgobject-2.0.so.4200.1 #37 0x0000000290759344 in signal_emit_unlocked_R () from /usr/local/lib/libgobject-2.0.so.4200.1 #38 0x000000029075b133 in g_signal_emit_valist () from /usr/local/lib/libgobject-2.0.so.4200.1 #39 0x000000029075bd61 in g_signal_emit () from /usr/local/lib/libgobject-2.0.so.4200.1 #40 0x000000024d8a59cf in gtk_widget_event_internal () from /usr/local/lib/libgtk-x11-2.0.so.2400.0 #41 0x000000024d781a90 in gtk_main_do_event () from /usr/local/lib/libgtk-x11-2.0.so.2400.0 #42 0x000000020c44d8d3 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0 #43 0x000000020c44d913 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0 #44 0x000000020c44d913 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0 #45 0x000000020c449815 in gdk_window_process_updates_internal () from /usr/local/lib/libgdk-x11-2.0.so.2400.0 #46 0x000000020c44b911 in gdk_window_process_all_updates () from /usr/local/lib/libgdk-x11-2.0.so.2400.0 #47 0x000000024d6fed12 in gtk_container_idle_sizer () from /usr/local/lib/libgtk-x11-2.0.so.2400.0 #48 0x000000020c4267ae in gdk_threads_dispatch () from /usr/local/lib/libgdk-x11-2.0.so.2400.0 #49 0x00000002cc6c10a2 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.4200.1 ---Type <return> to continue, or q <return> to quit--- #50 0x00000002cc6c322b in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.4200.1 #51 0x00000002cc6c32f7 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.4200.1 #52 0x0000000000a27938 in APPPROCESSMESSAGES (this=0x21dbb6650) at gtk2widgetset.inc:2326 #53 0x000000000089035b in PROCESSMESSAGES (this=0x21dbb6050) at application.inc:381 #54 0x0000000000838e91 in main () at lazarus.pp:113 (gdb) ---------------------------------------------------------- Regards, TomazZ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Tomaž Žveglič
to Zeljko
Zeljko wrote 26 lines
... Seem that nil params kills openbsd 64. Go to FontIsDoubleByteCharsFont() in gtk2proc.inc and add dummy integers to null params. var SingleCharLen, DoubleCharLen, DummyCharHeight {added}: integer; begin pango_layout_set_single_paragraph_mode(TheFont, TRUE); pango_layout_set_width(TheFont, -1); pango_layout_set_text(TheFont, 'A', 1); pango_layout_get_pixel_size(TheFont, @SingleCharLen, @DummyCharHeight); pango_layout_set_text(TheFont, #0'A', 2); pango_layout_get_pixel_size(TheFont, @DoubleCharLen, @DummmyCharHeight); Result:=(SingleCharLen=0) and (DoubleCharLen>0); end; now test zeljko _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Hi ?eljko,

Thanks for reply.

I did as you suggest and I also did similar changes to FontIsMonoSpaceFont.

Result:
----------------------------------------------------------- # ./lazarus
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/root/.lazarus"
SecondaryConfigPath="/etc/lazarus"
TApplication.HandleException Access violation
Stack trace:
$000000020CAC901D line 1083 of
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c [TGtk2WidgetSet.Destroy] WARNING: There are 4 unreleased DCs, a detailed dump follows:
[TGtk2WidgetSet.Destroy] DCs: 00000002FE9C9840 00000002FE9C9640 00000002FE9C9440 00000002FE9C9240
[TGtk2WidgetSet.Destroy] WARNING: There are 6 unreleased GDIObjects, a detailed dump follows:
[TGtk2WidgetSet.Destroy] GDIOs: 000000025E4998C0 000000025E4996C0 000000025E499740 000000025E4997C0 000000025E499640 000000025E4995C0 [TGtk2WidgetSet.Destroy] gdiBitmap: 2
[TGtk2WidgetSet.Destroy] gdiBrush: 1
[TGtk2WidgetSet.Destroy] gdiFont: 2
[TGtk2WidgetSet.Destroy] gdiRegion: 1
-----------------------------------------------------------

----------------------------------------------------------- # gdb ./lazarus
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-unknown-openbsd5.8"... (gdb) run
Starting program: /root/lazarus/lazarus
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/root/.lazarus"
SecondaryConfigPath="/etc/lazarus"

Program received signal SIGBUS, Bus error.
0x000000023a9a301d in IA__FcPatternBuild (p=0x0)
at
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c:1083 1083
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c: No such file or directory.
in
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c Current language: auto; currently c
(gdb) bt
#0 0x000000023a9a301d in IA__FcPatternBuild (p=0x0) at
/usr/xenocara/lib/fontconfig/src/../../../dist/fontconfig/src/fcpat.c:1083 #1 0x00000002b48e4306 in pango_fc_font_map_load_fontset () from /usr/local/lib/libpangoft2-1.0.so.3600.0
#2 0x000000029ebecb7b in itemize_state_process_run () from /usr/local/lib/libpango-1.0.so.3600.0
#3 0x000000029ebed338 in pango_itemize_with_base_dir () from /usr/local/lib/libpango-1.0.so.3600.0
#4 0x000000029ebf6884 in pango_layout_check_lines () from /usr/local/lib/libpango-1.0.so.3600.0
#5 0x000000029ebf7b06 in pango_layout_get_extents_internal () from /usr/local/lib/libpango-1.0.so.3600.0
#6 0x000000029ebf8cf0 in pango_layout_get_pixel_extents () from /usr/local/lib/libpango-1.0.so.3600.0
#7 0x000000029ebf8d7c in pango_layout_get_pixel_size () from /usr/local/lib/libpango-1.0.so.3600.0
#8 0x0000000000b2ec49 in FONTISDOUBLEBYTECHARSFONT (THEFONT=0x2fcf18af0) at gtk2proc.inc:9221
#9 0x0000000000a306b2 in UPDATEDCTEXTMETRIC (this=0x26c167650, DC=0x268ee8240)
at gtk2widgetset.inc:5913
#10 0x0000000000a3fd21 in GETTEXTMETRICS (this=0x26c167650, DC=10350395968, TM=
{TMHEIGHT = 0, TMASCENT = 2, TMDESCENT = -210960,
TMINTERNALLEADING = 32639, TMEXTERNALLEADING = 11774176, TMAVECHARWIDTH = 0, TMMAXCHARWIDTH = 0, TMWEIGHT = 0, TMOVERHANG = 5, TMDIGITIZEDASPECTX = 1, TMDIGITIZEDASPECTY = 1760462912, TMFIRSTCHAR = 2 '\002', TMLASTCHAR = 0 '\0', TMDEFAULTCHAR = 0 '\0', TMBREAKCHAR = 0 '\0', TMITALIC = 0 '\0', TMUNDERLINED = 199 '?', TMSTRUCKOUT = 252 '?', TMPITCHANDFAMILY = 255 '?', TMCHARSET = 127 '\177'}) at gtk2winapi.inc:5988 #11 0x0000000000a36e87 in DRAWTEXT (this=0x26c167650, DC=10350395968, STR=0x1cc4c80 "1.4.4", COUNT=5, RECT=
{LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, FLAGS=3109) at gtk2winapi.inc:2717
#12 0x00000000009c9c13 in DRAWTEXT (DC=10350395968, STR=0x1cc4c80 "1.4.4", COUNT=5, RECT=
{LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, FLAGS=3109) at winapi.inc:210
#13 0x00000000009bd87f in TEXTRECT (this=0x2f0e02f40, ARECT= {LEFT = 0, TOP = 281, RIGHT = 450, BOTTOM = 300, TOPLEFT = {X = 0, Y = 281}, BOTTOMRIGHT = {X = 450, Y = 300}}, X=0, Y=281, TEXT=0x1cc4c80 "1.4.4",
STYLE=
---Type <return> to continue, or q <return> to quit--- {ALIGNMENT = TACENTER, LAYOUT = TLCENTER, SINGLELINE = true, CLIPPING = true, EXPANDTABS = false, SHOWPREFIX = false, WORDBREAK = false, OPAQUE = false, SYSTEMFONT = false, RIGHTTOLEFT = false, ENDELLIPSIS = false})
at canvas.inc:1302
#14 0x00000000008aad8b in IMAGEPAINT (this=0x2c4590e10, SENDER=0x2c4593c90) at splash.pp:118
#15 0x0000000000aa3761 in PAINT (this=0x2c4593c90) at graphiccontrol.inc:90 #16 0x0000000000b0e469 in PAINT (this=0x2c4593c90) at customimage.inc:226 #17 0x0000000000aa363f in WMPAINT (this=0x2c4593c90, MESSAGE= {MSG = 15, UNUSEDMSG = 2, DC = 10350395968, PAINTSTRUCT = 0x0, RESULT = 0}) at graphiccontrol.inc:58
#18 0x0000000000849589 in SYSTEM_TOBJECT_$__DISPATCH$formal () #19 0x0000000000aa3568 in CONTROLS_TGRAPHICCONTROL_$__DESTROY () at customcontrol.inc:22
#20 0x0000000000a9649d in PERFORM (this=0x2c4593c90, MSG=15, WPARAM=10350395968, LPARAM=0) at control.inc:1451
#21 0x0000000000a86f67 in PAINTCONTROLS (this=0x2c4590e10, DC=10350395968, FIRST=0x0) at wincontrol.inc:4867
#22 0x0000000000a86d1e in PAINTHANDLER (this=0x2c4590e10, THEMESSAGE= {MSG = 15, UNUSEDMSG = 0, DC = 10350395968, PAINTSTRUCT = 0x2a4447300, RESULT = 0}) at wincontrol.inc:4779
#23 0x0000000000a8b5d5 in WMPAINT (this=0x2c4590e10, MSG= {MSG = 15, UNUSEDMSG = 0, DC = 10350395968, PAINTSTRUCT = 0x2a4447300, RESULT = 0}) at wincontrol.inc:6684
#24 0x0000000000aa3cab in WMPAINT (this=0x2c4590e10, MESSAGE= {MSG = 15, UNUSEDMSG = 0, DC = 10350395968, PAINTSTRUCT = 0x2a4447300, RESULT = 0}) at customcontrol.inc:106 #25 0x0000000000849589 in SYSTEM_TOBJECT_$__DISPATCH$formal () #26 0x0000000000aa3c60 in CONTROLS_TCUSTOMCONTROL_$__WSREGISTERCLASS () at dockzone.inc:16
#27 0x0000000000a887e1 in WNDPROC (this=0x2c4590e10, MESSAGE= {MSG = 15, UNUSEDMSG = 0, WPARAM = 10350395968, LPARAM = 11345883904, RESULT = 0}) at wincontrol.inc:5341
#28 0x0000000000884a10 in WNDPROC (this=0x2c4590e10, THEMESSAGE= {MSG = 15, UNUSEDMSG = 0, WPARAM = 10350395968, LPARAM = 11345883904, RESULT = 0}) at customform.inc:1443
#29 0x0000000000b6fc35 in DELIVERMESSAGE (TARGET=0x2c4590e10, AMESSAGE=0) at lclmessageglue.pas:112
#30 0x0000000000b21789 in DELIVERMESSAGE (TARGET=0x2c4590e10, AMESSAGE=0) at gtk2proc.inc:3628
---Type <return> to continue, or q <return> to quit--- #31 0x0000000000b2f3b9 in DODELIVERPAINTMESSAGE (TARGET=0x2c4590e10, PAINTMSG=
{MSG = 15, UNUSEDMSG = 0, DC = 10350395968, PAINTSTRUCT = 0x2a4447300, RESULT = 0}) at gtk2callback.inc:26
#32 0x0000000000b2f4a3 in DELIVERPAINTMESSAGE (TARGET=0x2c4590e10, THEMESSAGE=0) at gtk2callback.inc:44
#33 0x0000000000b2f685 in DELIVERGTKPAINTMESSAGE (TARGET=0x2c4590e10, WIDGET=0x2fcf18990, AREA=0x7f7ffffcdab4, REPAINTALL=false, ISAFTERGTK=false) at gtk2callback.inc:102
#34 0x0000000000b30a6f in GTKEXPOSEEVENT (WIDGET=0x2fcf18990, EVENT=0x7f7ffffcdaa0, DATA=0x2c4590e10) at gtk2callback.inc:704 #35 0x0000000209c36c9f in _gtk_marshal_BOOLEAN__BOXED () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#36 0x00000002590b74d3 in g_closure_invoke ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#37 0x00000002590cd344 in signal_emit_unlocked_R () from /usr/local/lib/libgobject-2.0.so.4200.1
#38 0x00000002590cf133 in g_signal_emit_valist ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#39 0x00000002590cfd61 in g_signal_emit ()
from /usr/local/lib/libgobject-2.0.so.4200.1
#40 0x0000000209d549cf in gtk_widget_event_internal () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#41 0x0000000209c30a90 in gtk_main_do_event ()
from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#42 0x000000026c2d28d3 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#43 0x000000026c2d2913 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#44 0x000000026c2d2913 in _gdk_window_process_updates_recurse () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#45 0x000000026c2ce815 in gdk_window_process_updates_internal () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#46 0x000000026c2d0911 in gdk_window_process_all_updates () from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#47 0x0000000209badd12 in gtk_container_idle_sizer () from /usr/local/lib/libgtk-x11-2.0.so.2400.0
#48 0x000000026c2ab7ae in gdk_threads_dispatch ()
from /usr/local/lib/libgdk-x11-2.0.so.2400.0
#49 0x00000002783670a2 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.4200.1
---Type <return> to continue, or q <return> to quit--- #50 0x000000027836922b in g_main_context_iterate () from /usr/local/lib/libglib-2.0.so.4200.1
#51 0x00000002783692f7 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.4200.1
#52 0x0000000000a27938 in APPPROCESSMESSAGES (this=0x26c167650) at gtk2widgetset.inc:2326
#53 0x000000000089035b in PROCESSMESSAGES (this=0x26c167050) at application.inc:381
#54 0x0000000000838e91 in main () at lazarus.pp:113 (gdb)
-----------------------------------------------------------

Regards,
Toma? ?vegli?

Reply by email

Tomaž Žveglič
to Zeljko
Zeljko wrote 19 lines
On 10/28/2015 01:36 PM, Toma? ?vegli? wrote: > I did as you suggest and I also did similar changes to > FontIsMonoSpaceFont. Ok, seem that there's no more help from trial error. I'll check it when I install OpenBSD in virtual machine. zeljko -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks ?eljko for your help. I owe you beer. Do you have bitcoin address?

Regards,
TomazZ

Reply by email