View Issue Details

IDProjectCategoryView StatusLast Update
0013113LazarusIDEpublic2009-02-05 19:28
ReporterJesus Reyes Assigned ToPaul Ishenin  
Status closedResolutionfixed 
Product Version0.9.27 (SVN) 
Target Version0.9.28Fixed in Version0.9.28 
Summary0013113: Autosize fix in r18501broke some dialogs like Find&Replace
DescriptionAfter updating to a revision after r18501 (currently v0.9.27 r18542M x86_64-linux-gtk), some dialogs seems to enter in a "resizing controls cycle" and then dialog can't be closed by mouse of keyboard, for example see menu search->find...

I'm attaching a sample project that once loaded makes lazarus unestable, it's a component's copy and paste from lazarus/ide/findreplacedialog.lfm.

I'm attaching a backtrace obtained by breaking lazarus when it enters cycle, see additional information.
Additional InformationTGtkWidgetSet.PostMessage ToDo: wake up gtk
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7fbfdd88d6f0 (LWP 5610)]
0x00007fbfdd05c9c0 in gdk_window_is_viewable () from /usr/lib64/
(gdb) bt
#0 0x00007fbfdd05c9c0 in gdk_window_is_viewable () from /usr/lib64/
0000001 0x00007fbfdca94f15 in gtk_widget_queue_clear_area () from /usr/lib64/
0000002 0x00007fbfdca95805 in gtk_widget_queue_resize () from /usr/lib64/
0000003 0x000000000095617b in GETGTKDEFAULTWIDGETSIZE (AWINCONTROL=0x7fbfd5ca1bf0,
    PREFERREDWIDTH=@0x7fbfd5ca1f50, PREFERREDHEIGHT=@0x7fbfd5ca1f54, WITHTHEMESPACE=true) at
0000004 0x000000000097bd60 in GETPREFERREDSIZE (AWINCONTROL=0x7fbfd5ca1bf0, PREFERREDWIDTH=@0x7fbfd5ca1f50,
    PREFERREDHEIGHT=@0x7fbfd5ca1f54, WITHTHEMESPACE=true, this=0x7fbfdd708990) at gtkwsstdctrls.pp:1585
0000005 0x00000000008600d3 in CALCULATEPREFERREDSIZE (PREFERREDWIDTH=@0x7fbfd5ca1f50,
    PREFERREDHEIGHT=@0x7fbfd5ca1f54, WITHTHEMESPACE=true, this=0x7fbfd5ca1bf0) at include/
0000006 0x000000000086bc2a in GETPREFERREDSIZE (PREFERREDWIDTH=@0x7fffe58bdb38, PREFERREDHEIGHT=@0x7fffe58bdb34,
    RAW=true, WITHTHEMESPACE=true, this=0x7fbfd5ca1bf0) at include/
0000007 0x000000000084fcf5 in INITPREFERREDSIZES (parentfp=0x7fffe58bdbc0) at include/
    PREFERREDCLIENTWIDTH=@0x7fffe58bdc64, PREFERREDCLIENTHEIGHT=@0x7fffe58bdc60, this=0x7fbfd6a11fc0)
    at include/
0000009 0x0000000000860199 in CALCULATEPREFERREDSIZE (PREFERREDWIDTH=@0x7fbfd5ca19d0,
    PREFERREDHEIGHT=@0x7fbfd5ca19d4, WITHTHEMESPACE=true, this=0x7fbfd5ca1670) at include/
0000010 0x000000000086bc2a in GETPREFERREDSIZE (PREFERREDWIDTH=@0x7fffe58bddc4, PREFERREDHEIGHT=@0x7fffe58bddc0,
    RAW=false, WITHTHEMESPACE=true, this=0x7fbfd5ca1670) at include/
0000011 0x0000000000857023 in DOAUTOSIZE (this=0x7fbfd5ca1670) at include/
0000012 0x0000000000861168 in ADJUSTSIZE (this=0x7fbfd5ca1670) at include/
0000013 0x000000000085db9f in WMSIZE (MESSAGE=@0x7fffe58bdf10, this=0x7fbfd5ca1bf0)
    at include/
0000014 0x00000000006f4693 in DISPATCH (MESSAGE=@0x7fffe58bdf10, this=0x7fbfd5ca1bf0) at ../inc/
0000015 0x0000000000b6915d in SIZECONTROL (SIZECONTROL=true, SENDER=0x7fbfd5ca1bf0, THEMESSAGE=
      {MSG = 5, UNUSEDMSG = 32767, SIZETYPE = 128, WIDTH = 40, HEIGHT = 28, UNUSED = 115, RESULT = 0},
    this=0x7fbfd69dad40) at ../designer/designer.pp:1246
0000016 0x0000000000b6b951 in ISDESIGNMSG (ISDESIGNMSG=true, SENDER=0x7fbfd5ca1bf0, THEMESSAGE=@0x7fffe58be290,
    this=0x7fbfd69dad40) at ../designer/designer.pp:2027
0000017 0x0000000000864c3f in WNDPROC (THEMESSAGE=@0x7fffe58be290, this=0x7fbfd5ca1bf0)
    at include/
0000018 0x000000000085aa98 in WNDPROC (MESSAGE=@0x7fffe58be290, this=0x7fbfd5ca1bf0)
    at include/
0000019 0x00000000009510ad in DELIVERMESSAGE (DELIVERMESSAGE=9791031, TARGET=0x7fbfd5ca1bf0,
    AMESSAGE=@0x7fffe58be290) at
0000020 0x0000000000956514 in SENDSIZENOTIFICATIONTOLCL (AWIDGET=0x1c405d0) at
0000021 0x00000000009567eb in SENDCACHEDGTKRESIZENOTIFICATIONS () at
0000022 0x00000000009240f9 in SENDCACHEDGTKMESSAGES (this=0x7fbfdd6fa160) at
0000023 0x00000000009245bf in APPPROCESSMESSAGES (this=0x7fbfdd6fa160) at
0000024 0x000000000071e349 in HANDLEMESSAGE (this=0x7fbfdd702ed0) at include/
0000025 0x000000000071e71a in RUNLOOP (this=0x7fbfdd702ed0) at include/
0000026 0x0000000000798598 in APPRUN (ALOOP=
---Type <return> to continue, or q <return> to quit---
      {Proc = {procedure (^pointer)} 0x7fffe58be530, Self = 0x7fbfdd702ed0}, this=0x7fbfdd6fa160)
    at include/
0000027 0x000000000071e6bc in RUN (this=0x7fbfdd702ed0) at include/
0000028 0x00000000006e42b2 in main () at lazarus.pp:109
TagsNo tags attached.
Fixed in Revision18574
Attached Files


2009-02-03 20:51


autosizer18501.tar.gz (162,826 bytes)

Paul Ishenin

2009-02-05 03:56

manager   ~0025126

Please test and close if ok.

Issue History

Date Modified Username Field Change
2009-02-03 20:51 Jesus Reyes New Issue
2009-02-03 20:51 Jesus Reyes File Added: autosizer18501.tar.gz
2009-02-03 20:51 Jesus Reyes LazTarget => -
2009-02-03 20:51 Jesus Reyes Widgetset => GTK
2009-02-03 20:52 Jesus Reyes LazTarget - => 0.9.28
2009-02-03 20:52 Jesus Reyes Assigned To => Paul Ishenin
2009-02-03 20:52 Jesus Reyes Status new => assigned
2009-02-05 03:56 Paul Ishenin Fixed in Revision => 18574
2009-02-05 03:56 Paul Ishenin Status assigned => resolved
2009-02-05 03:56 Paul Ishenin Fixed in Version => 0.9.28
2009-02-05 03:56 Paul Ishenin Resolution open => fixed
2009-02-05 03:56 Paul Ishenin Note Added: 0025126
2009-02-05 03:56 Paul Ishenin Target Version => 0.9.28
2009-02-05 19:28 Jesus Reyes Status resolved => closed