Recent

Author Topic: GTK2 is not stable: I see hangs on scrolling atSynEdit  (Read 3776 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2577
    • UVviewsoft
GTK2 is not stable: I see hangs on scrolling atSynEdit
« on: August 15, 2015, 09:25:41 pm »
example how to see it.
Get CudaText http://wiki.freepascal.org/CudaText

a) run on Windows. Goto lexer-lib dialog, call lexer "NSL Assembler" and in 1st tab with editor, do vert scrollbar moving. drag scrollbar up-down-up-down-up.... many many times, for 10-20 seconds.
all ok.

b) same in Linux portable version. Ubuntu 14.04. NSL lexer. drag scrollbar. app hangs. after 2-5 seconds of dragging.

IMO scrollbar api is bad. atSynedit calls scrollbar updating. On Win you see that scrollbar (horz) disappears, appears, etc. this is because scrollbar params are so that scrollbar must disappear/appear on short/long text.

what to do

AlexTP

  • Hero Member
  • *****
  • Posts: 2577
    • UVviewsoft
Re: GTK2 is not stable: I see hangs on scrolling atSynEdit
« Reply #1 on: August 15, 2015, 11:44:30 pm »
I checked:i'm right. It's scroll-horz bug in gtk2. I make workaround (not in LCL, in program). LCL still has bug

How to see it
- download ATSynEdit
- open demo app/demo_editor
- disable workaround : atsynedit.pas: remove line {$define fix_horzscroll}
- run demo
- enter text

ddddddddddddddddddddd (300 chars d here)
dd (2 chars d)
dd
dd
dd
(repeat "dd" 50 times)
ddddddddddddddddddddd (300 chars)
dd
dd
dd
(repeat "dd" 50 times)

- put caret to 0:0, press key_down to move down.
- scrollbar must hide/show/hide====> hang

Basile B.

  • Guest
Re: GTK2 is not stable: I see hangs on scrolling atSynEdit
« Reply #2 on: August 16, 2015, 01:31:21 am »
Did you try with GTK2 under windows ?

AlexTP

  • Hero Member
  • *****
  • Posts: 2577
    • UVviewsoft
Re: GTK2 is not stable: I see hangs on scrolling atSynEdit
« Reply #3 on: August 16, 2015, 01:34:37 am »
no I don't use GTK under Win.

Basile B.

  • Guest
Re: GTK2 is not stable: I see hangs on scrolling atSynEdit
« Reply #4 on: August 16, 2015, 02:28:10 am »
If you have GTK2 dlls in your system PATH then you can, in the projects options "Define "LCLWidget Type" to gtk2.

You'll be able to really know if it's a GTK2 problem or a platform problem.

AlexTP

  • Hero Member
  • *****
  • Posts: 2577
    • UVviewsoft
Re: GTK2 is not stable: I see hangs on scrolling atSynEdit
« Reply #5 on: August 16, 2015, 03:00:15 am »
Now i cannot do, Win is not installed ok, no Laz1.5

tk

  • Sr. Member
  • ****
  • Posts: 368
Re: GTK2 is not stable: I see hangs on scrolling atSynEdit
« Reply #6 on: August 16, 2015, 09:27:18 am »
I remember having these problems on Gnome, when testing scrollbars in my KControls.
Now I am using KDE for almost 2 years and haven't observed these problems anymore.
I think it was Gnome bug but I don't remember that exactly anymore.

 

TinyPortal © 2005-2018