Recent

Author Topic: Down pointing triangles to the right of IDE buttons do not work  (Read 1896 times)

fedkad

  • Full Member
  • ***
  • Posts: 158
Down pointing triangles to the right of IDE buttons do not work
« on: February 16, 2022, 12:01:09 pm »
Sometimes the down pointing triangles (▼) to the right of the IDE buttons, like "Change build mode", "Run", "Open...", and "Desktops..." become "unclickable". Only the respective buttons at the left work; but triangles, which normally open a drop down list, do not respond to mouse clicks. Restarting Lazarus IDE does not fix the problem in most cases.
« Last Edit: February 16, 2022, 01:09:01 pm by fedkad »
Lazarus 2.2.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

MarkMLl

  • Hero Member
  • *****
  • Posts: 4187
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #1 on: February 16, 2022, 01:06:23 pm »
So are you seeing this on Linux or Windows? And if on Linux, what window manager?

I've not seen anything like that (Debian x86_64 using KDE but with a GTK2 IDE) but will keep my eyes open.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

fedkad

  • Full Member
  • ***
  • Posts: 158
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #2 on: February 16, 2022, 01:08:18 pm »
My Lazarus version is already given in my signature.
OS version is Ubuntu 21.10 (GNOME).
« Last Edit: February 16, 2022, 01:10:03 pm by fedkad »
Lazarus 2.2.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

MarkMLl

  • Hero Member
  • *****
  • Posts: 4187
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #3 on: February 16, 2022, 02:22:58 pm »
My Lazarus version is already given in my signature.
OS version is Ubuntu 21.10 (GNOME).

Your sig has two different OSes. DOES IT HAPPEN IN BOTH?

What desktop does Ubuntu use these days?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

fedkad

  • Full Member
  • ***
  • Posts: 158
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #4 on: February 16, 2022, 02:28:16 pm »
I am not using Windows as much as I use Ubuntu. However, I haven't noticed the same problem occurring on Windows.

Standard Ubuntu is using GNOME desktop by default AFAIK and that's what I am using for three years now.
Lazarus 2.2.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

MarkMLl

  • Hero Member
  • *****
  • Posts: 4187
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #5 on: February 16, 2022, 02:41:16 pm »
Thanks for the extra detail, I'll keep an eye open (as I'm sure others also will).

I tend to use the IDE buttons very little, since I've got a gamer's keypad programmed up for the operations I use most often.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

fedkad

  • Full Member
  • ***
  • Posts: 158
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #6 on: February 16, 2022, 02:53:17 pm »
When I start lazarus-ide from command line, nothing relevant is printed on the console.

However, the following four lines logged to syslog may give some hints:

Feb 16 16:50:41 xxx gnome-shell[2412]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x7400049
Feb 16 16:50:41 xxx gnome-shell[2412]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x7400054
Feb 16 16:50:41 xxx gnome-shell[2412]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x7400159
Feb 16 16:50:41 xxx gnome-shell[2412]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x7400042

Lazarus 2.2.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7885
  • Debugger - SynEdit - and more
    • wiki
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #7 on: February 16, 2022, 02:55:30 pm »
Just a guess here: Could it be related to which window has the focus?

That brings up the question, do you use an IDE with individual windows, or do you use anchor-docking (and if so, a single Window or several groups)?

Or maybe it depends on some hint being shown when the issue happens? Or any other menu, popup-menu or drop-down is open when it happens? (Some Linux desktop managers have their own peculiar rules on how they handle such things.)

Can you visible (grey out) see, if the down-arrow is enabled or disabled?

If you do not use anchor docking:
- Does focusing the main-ide-bar make a diff. Well that is, how the focus is moved to the main-ide-bar.
   Obviously, attempting to click the down-arrow does focus the main-ide-bar.
   But if you first move focus to the main-ide-bar, before/without clicking the down-arrow (also not clicking the button that has the down-arrow). E.g. Click some icon in the component palette to move the focus.
- If you tried the down button and it did not work => move the focus away (e.g. to the source editor), then to the component palette, and then test the button again.


fedkad

  • Full Member
  • ***
  • Posts: 158
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #8 on: February 16, 2022, 03:37:41 pm »
Just a guess here: Could it be related to which window has the focus?

I tried various alternative actions, but not able to reach to a conclusion. Please, note that this problem occurs on some invocations of Lazarus; and on some others (very rarely) it does not occur.

Quote
That brings up the question, do you use an IDE with individual windows, or do you use anchor-docking (and if so, a single Window or several groups)?

I am not using "anchor docking".

Quote
Or maybe it depends on some hint being shown when the issue happens? Or any other menu, popup-menu or drop-down is open when it happens? (Some Linux desktop managers have their own peculiar rules on how they handle such things.)

Only the forms, Source Editor, and sometimes the Object Inspector is open in the IDE. The same problem happens on a new "Application" project also.

Quote
Can you visible (grey out) see, if the down-arrow is enabled or disabled?

No visible clue. Also hovering the mouse over these type of buttons only changes (slightly) the color of related button, but not the triangle. (Note that, the triangle color does not change even in cases when this problem does not occur.)

Quote
If you do not use anchor docking:
- Does focusing the main-ide-bar make a diff. Well that is, how the focus is moved to the main-ide-bar.
   Obviously, attempting to click the down-arrow does focus the main-ide-bar.
   But if you first move focus to the main-ide-bar, before/without clicking the down-arrow (also not clicking the button that has the down-arrow). E.g. Click some icon in the component palette to move the focus.
- If you tried the down button and it did not work => move the focus away (e.g. to the source editor), then to the component palette, and then test the button again.

Nothing changes on these tests.
Lazarus 2.2.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

wp

  • Hero Member
  • *****
  • Posts: 9592
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #9 on: February 16, 2022, 03:48:31 pm »
Sometimes the down pointing triangles (▼) to the right of the IDE buttons, like "Change build mode", "Run", "Open...", and "Desktops..." become "unclickable".
What does "sometimes" mean? The observation is not reproducible? Or the issue occurs only in a particular situation? What must be done to arrive to that situation?

Checked with Laz/main in my Ubuntu-VM (21.10/Gnome/Window manager Wayland), and I don't see the issue in a freshly opened Lazarus.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

fedkad

  • Full Member
  • ***
  • Posts: 158
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #10 on: February 16, 2022, 03:55:47 pm »
What does "sometimes" mean? The observation is not reproducible? Or the issue occurs only in a particular situation? What must be done to arrive to that situation?

Yes. It is not reproducible. I have not been able to find the exact circumstance(s) that lead(s) to this problem. Presently, it seems complete random. I close Lazarus IDE and reopen it and sometimes the problem is gone. Without doing anything special, I close the IDE and reopen it again and the problem is there. I can say that this problem occurs roughly in 80% of Lazarus invocations.
Lazarus 2.2.0 / FPC 3.2.2 on x86_64-linux-gtk2 (Ubuntu/GNOME) and x86_64-win64-win32/win64 (Windows 11)

MarkMLl

  • Hero Member
  • *****
  • Posts: 4187
Re: Down pointing triangles to the right of IDE buttons do not work
« Reply #11 on: February 16, 2022, 04:06:03 pm »
No visible clue. Also hovering the mouse over these type of buttons only changes (slightly) the color of related button, but not the triangle. (Note that, the triangle color does not change even in cases when this problem does not occur.)

I doubt this is relevant but it might be a useful clarification for faultfinding.

I notice that using an IDE built for GTK2 that the mouse pointer over either an enabled button or the associated inverted chevron causes (only) the button to be outlined.

On Qt3 moving the pointer over either causes both to be highlighted together.

I don't see any untoward messages at startup on either the console or in syslog, although I did with 2.0.12.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018