View Issue Details

IDProjectCategoryView StatusLast Update
0014474LazarusLCLpublic2009-09-01 18:23
ReporterMartin Friebe Assigned ToPaul Ishenin  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version0.9.30Fixed in Version0.9.29 (SVN) 
Summary0014474: regression: file->new crashes under gtk2
Descriptionsee also http://forum.lazarus.freepascal.org/index.php/topic,7363.0/topicseen.html

Selecting new from the file menu crashes. (see backtrace; backtrace from FreeBSD)

this was introduced in revision 21486:
Revision: 21486
Author: paul
Date: 18:22:56, 30 August 2009
Message:
lcl: allow resize of label width if both AutoSize and WordWrap are true, better handle WordWrap change + formatting (fixes issue 0014362)
----
Modified : /trunk/lcl/include/customlabel.inc
Modified : /trunk/lcl/stdctrls.pp

Additional InformationProgram received signal SIGBUS, Bus error.
[Switching to Thread 0x2a101100 (LWP 100066)]
$28d7b78c in g_type_create_instance () from /usr/local/lib/libgobject-2.0.so.0
(gdb) bt
#0 $28d7b78c in g_type_create_instance () from /usr/local/lib/libgobject-2.0.so.0
0000001 $28d60c02 in g_object_set () from /usr/local/lib/libgobject-2.0.so.0
0000002 $28d61343 in g_object_newv () from /usr/local/lib/libgobject-2.0.so.0
0000003 $28d61ef1 in g_object_new_valist () from /usr/local/lib/libgobject-2.0.so.0
0000004 $28d62060 in g_object_new () from /usr/local/lib/libgobject-2.0.so.0
0000005 $28e60996 in pango_layout_new () from /usr/local/lib/libpango-1.0.so.0
0000006 $28bb91e9 in gtk_widget_create_pango_layout () from /usr/local/lib/libgtk-x11-2.0.so.0
0000007 $081d3dfd in TGTKDEVICECONTEXT__CREATEFONT (this=$2a3ec6b0) at /data/lazarus_svn2/lcl/interfaces/gtk/gtkdevicecontext.inc:539
0000008 $081d4056 in TGTKDEVICECONTEXT__GETFONT (this=$2a3ec6b0) at /data/lazarus_svn2/lcl/interfaces/gtk/gtkdevicecontext.inc:640
0000009 $081eca6b in TGTKWIDGETSET__SELECTOBJECT (DC=708757168, GDIOBJ=705612352, this=$2a0e4020)
    at /data/lazarus_svn2/lcl/interfaces/gtk/gtkwinapi.inc:8105
0000010 $08119bb0 in SELECTOBJECT (DC=708757168, GDIOBJ=705612352) at ./include/winapi.inc:786
0000011 $081cdae3 in TCUSTOMLABEL__CALCULATEPREFERREDSIZE (PREFERREDWIDTH=266, PREFERREDHEIGHT=6069, WITHTHEMESPACE=true, this=$2ae5a790)
    at ./include/customlabel.inc:43
0000012 $0819a97d in TCONTROL__GETPREFERREDSIZE (PREFERREDWIDTH=530786, PREFERREDHEIGHT=719678416, RAW=false, WITHTHEMESPACE=true, this=$2ae5a790)
    at ./include/control.inc:4545
0000013 $081cdcf8 in TCUSTOMLABEL__DOAUTOSIZE (this=$2ae5a790) at ./include/customlabel.inc:97
0000014 $081922d7 in TCONTROL__ADJUSTSIZE (this=$2ae5a790) at ./include/control.inc:60
0000015 $08192cf0 in TCONTROL__CHANGEBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6069, this=$2ae5a790) at ./include/control.inc:411
0000016 $08197624 in TCONTROL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6069, this=$2ae5a790) at ./include/control.inc:3146
0000017 $081ceabd in TCUSTOMLABEL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6069, this=$2ae5a790) at ./include/customlabel.inc:483
0000018 $0819a90c in TCONTROL__SETBOUNDSKEEPBASE (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6069, LOCK=true, this=$2ae5a790) at ./include/control.inc:4513
0000019 $081cdd9d in TCUSTOMLABEL__DOAUTOSIZE (this=$2ae5a790) at ./include/customlabel.inc:110
0000020 $081922d7 in TCONTROL__ADJUSTSIZE (this=$2ae5a790) at ./include/control.inc:60
0000021 $08192cf0 in TCONTROL__CHANGEBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6068, this=$2ae5a790) at ./include/control.inc:411
0000022 $08197624 in TCONTROL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6068, this=$2ae5a790) at ./include/control.inc:3146
0000023 $081ceabd in TCUSTOMLABEL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6068, this=$2ae5a790) at ./include/customlabel.inc:483
0000024 $0819a90c in TCONTROL__SETBOUNDSKEEPBASE (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6068, LOCK=true, this=$2ae5a790) at ./include/control.inc:4513
0000025 $081cdd9d in TCUSTOMLABEL__DOAUTOSIZE (this=$2ae5a790) at ./include/customlabel.inc:110
0000026 $081922d7 in TCONTROL__ADJUSTSIZE (this=$2ae5a790) at ./include/control.inc:60
0000027 $08192cf0 in TCONTROL__CHANGEBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6067, this=$2ae5a790) at ./include/control.inc:411
0000028 $08197624 in TCONTROL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6067, this=$2ae5a790) at ./include/control.inc:3146
0000029 $081ceabd in TCUSTOMLABEL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6067, this=$2ae5a790) at ./include/customlabel.inc:483
0000030 $0819a90c in TCONTROL__SETBOUNDSKEEPBASE (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6067, LOCK=true, this=$2ae5a790) at ./include/control.inc:4513
0000031 $081cdd9d in TCUSTOMLABEL__DOAUTOSIZE (this=$2ae5a790) at ./include/customlabel.inc:110
0000032 $081922d7 in TCONTROL__ADJUSTSIZE (this=$2ae5a790) at ./include/control.inc:60
0000033 $08192cf0 in TCONTROL__CHANGEBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6066, this=$2ae5a790) at ./include/control.inc:411
0000034 $08197624 in TCONTROL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6066, this=$2ae5a790) at ./include/control.inc:3146
0000035 $081ceabd in TCUSTOMLABEL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6066, this=$2ae5a790) at ./include/customlabel.inc:483
---Type <return> to continue, or q <return> to quit---
0000036 $0819a90c in TCONTROL__SETBOUNDSKEEPBASE (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6066, LOCK=true, this=$2ae5a790) at ./include/control.inc:4513
0000037 $081cdd9d in TCUSTOMLABEL__DOAUTOSIZE (this=$2ae5a790) at ./include/customlabel.inc:110
0000038 $081922d7 in TCONTROL__ADJUSTSIZE (this=$2ae5a790) at ./include/control.inc:60
0000039 $08192cf0 in TCONTROL__CHANGEBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6065, this=$2ae5a790) at ./include/control.inc:411
0000040 $08197624 in TCONTROL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6065, this=$2ae5a790) at ./include/control.inc:3146
0000041 $081ceabd in TCUSTOMLABEL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6065, this=$2ae5a790) at ./include/customlabel.inc:483
0000042 $0819a90c in TCONTROL__SETBOUNDSKEEPBASE (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6065, LOCK=true, this=$2ae5a790) at ./include/control.inc:4513
0000043 $081cdd9d in TCUSTOMLABEL__DOAUTOSIZE (this=$2ae5a790) at ./include/customlabel.inc:110
0000044 $081922d7 in TCONTROL__ADJUSTSIZE (this=$2ae5a790) at ./include/control.inc:60
0000045 $08192cf0 in TCONTROL__CHANGEBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6064, this=$2ae5a790) at ./include/control.inc:411
0000046 $08197624 in TCONTROL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6064, this=$2ae5a790) at ./include/control.inc:3146
0000047 $081ceabd in TCUSTOMLABEL__SETBOUNDS (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6064, this=$2ae5a790) at ./include/customlabel.inc:483
0000048 $0819a90c in TCONTROL__SETBOUNDSKEEPBASE (ALEFT=6, ATOP=6, AWIDTH=265, AHEIGHT=6064, LOCK=true, this=$2ae5a790) at ./include/control.inc:4513
TagsNo tags attached.
Fixed in Revision21521
LazTarget0.9.30
WidgetsetGTK 2
Attached Files

Relationships

related to 0014362 closedPaul Ishenin label word wrap fails sometimes 

Activities

Paul Ishenin

2009-09-01 16:38

manager   ~0030293

Please test and close if ok.

Martin Friebe

2009-09-01 18:23

manager   ~0030295

works :)

Issue History

Date Modified Username Field Change
2009-09-01 15:32 Martin Friebe New Issue
2009-09-01 15:32 Martin Friebe LazTarget => -
2009-09-01 15:32 Martin Friebe Widgetset => GTK 2
2009-09-01 15:53 Vincent Snijders Relationship added related to 0014362
2009-09-01 15:53 Vincent Snijders LazTarget - => 0.9.30
2009-09-01 15:53 Vincent Snijders Assigned To => Paul Ishenin
2009-09-01 15:53 Vincent Snijders Status new => assigned
2009-09-01 15:53 Vincent Snijders Target Version => 0.9.30
2009-09-01 16:38 Paul Ishenin Fixed in Revision => 21521
2009-09-01 16:38 Paul Ishenin Status assigned => resolved
2009-09-01 16:38 Paul Ishenin Fixed in Version => 0.9.29 (SVN)
2009-09-01 16:38 Paul Ishenin Resolution open => fixed
2009-09-01 16:38 Paul Ishenin Note Added: 0030293
2009-09-01 18:23 Martin Friebe Status resolved => closed
2009-09-01 18:23 Martin Friebe Note Added: 0030295