Recent

Author Topic: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset  (Read 11607 times)

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #15 on: April 16, 2023, 02:38:08 am »
rca, this is good work. Like all enthusiastic Qt users, I want these problems to go way and support you in what you are trying to do.

But, I am guessing here, your fixes will not be applied to main until they have been tested and agreed good by several users. To get that happening, we need a clear and unambiguous patch that anyone can apply. Right now, the bug report seems a bit confusing.

You say you have removed the patch, was there two patches ? I still see one there as a download and one as a screen scrape ?  You have not uploaded the patch containing Zelko's suggestion ? Might be a good idea ....

I'd like to try your ideas but the discussion in this thread requires more time than I can afford right now and I was very pleased to see a bug report, hoping for one single patch with all the thinking already done for me !

Everyone understands how frustrating this process can be, but we must understand that Zelko's prime responsibility is that changes do not make something else worse !

Keep trying !

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

rca

  • Jr. Member
  • **
  • Posts: 67
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #16 on: April 16, 2023, 03:28:23 pm »
@dbannon
Thanks for those words of encouragement.

I proposed a single patch.

My English is not good, what I wanted to say is that in order to carry out Zelko's suggestion, he asked me not to apply that patch.

Of course, I agree, that Zelko's should verify that changes do not make something else worse.

And I understand that it is very difficult for Zelko's to find a solution, since he cannot reproduce this problem on his machine.

rca

  • Jr. Member
  • **
  • Posts: 67
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #17 on: May 06, 2023, 05:55:25 pm »

@Zeljko already fixed this issue. Thank you very much for your excellent work.

Save dialogs now open immediately without any delay.

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #18 on: May 06, 2023, 08:46:40 pm »
Not fixed, I still see 20-25 secs pause on calling SaveAs dialog in Qt5 app. On Ubuntu 20.4.

I use trunk from today and

  {.$DEFINE QtUseNativeEventLoop}
  {$DEFINE QT_NO_SESSIONMANAGER}
« Last Edit: May 06, 2023, 08:49:38 pm by AlexTP »

rca

  • Jr. Member
  • **
  • Posts: 67
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #19 on: May 06, 2023, 10:30:35 pm »
@AlexTP

On my Fedora 38 system with Gnome 44, it works fine.
Can you try the compiled binary, please?
https://drive.google.com/file/d/1ncE7FJXVB41BhEZpv4Vp9eAnqwtJR1PG/view?usp=sharing

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #20 on: May 07, 2023, 03:02:15 am »
Nope, still a 20 second delay using rca's binary on an almost fresh install of U22.10 using the libqt5pas from 2-12 code base. But Z did indicate a week or so ago that there would be some changes soon that would need a new library.

But he has not yet rev'ed that version in the code. Maybe I'll build a new library and see if it helps....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

rca

  • Jr. Member
  • **
  • Posts: 67
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #21 on: May 07, 2023, 04:32:30 am »
@dbannon Thanks for testing.

On my system with the latest version of Trunk, it works fine.

Later I will have a system with Ubuntu to do more tests.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #22 on: May 07, 2023, 06:39:49 am »
OK,  some tests, done with

  • rcs's test binary (presumably made with current Lazarus Main) and a newly built libQt5Pas 1.2.12, refered to as lib-12.
  • my app, tomboy-ng, taken from the distribution's one repo and therefore built using a production version of Lazarus and LCL. Tested with both the repo supplied libQt5Pas (1.2.9 in each case, refered to as lib-9) and lib-12.

    Everything Qt5 of course.

    Ubuntu 22.10 Fail, XFCe running Qt5 5.15.6, rca's binary, lib-12, 20 second delay.

    Ubuntu 23.04 Fail, Luna, XFCe. running Qt5 5.15.8, rca's binary, lib-12, 20 second delay with rca's test binary.

    Debian Bookworm Fail, XFCe running Qt5 5.15.8, rca's binary, using lib-12 library 20 second delay. 

    Debian Bookworm Pass, Gnome (yuk!) running Qt5 5.15.8, rca's app, lib-12, no delay.

    In every case, my app, tomboy-ng from the deb repo, using lib-9 or lib-12, no delay.  Being a repo install, it is built from RELEASE versions of LCL.

    So, what ever is going wrong here is Desktop dependent (XFCe bad, Gnome good) and new in Lazarus Main, Bookworm binaries are built using Lazarus 2.2.6 right now.

    XFCe is a popular desktop on Debian, not the default but used by many 'old hands'. And they cannot use a binary built using Lazarus Main.

    I guess I need to try a few more Bookworm Desktops, Mate, KDE etc....

    Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #23 on: May 07, 2023, 08:36:57 am »
So, xfce is problem ? hm...that's pretty strange, here it works ok on Linux Mint 20.3 + xfce / cinnamon /kde (Qt-5.12.8)

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #24 on: May 07, 2023, 08:57:09 am »
More than XFCe I am afraid.  Here is my results, all based on Debian Bookworm (except budgie) -

Works

  • Gnome Shell
  • KDE
  • LXQt

Has the Delay

  • XFCe
  • Cinnamon
  • LXDe
  • Mate
  • Budgie (U2304)


Now, I installed an XFCe onto an existing Gnome machine and doing so had no effect on results for either XFCe nor Gnome so that says to me its not a missing package issue.

I worry a bit how Wayland fits into that formula ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #25 on: May 07, 2023, 11:58:16 am »
@AlexTP

On my Fedora 38 system with Gnome 44, it works fine.
Can you try the compiled binary, please?

./prqtsavedqt5: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./prqtsavedqt5)

rca

  • Jr. Member
  • **
  • Posts: 67
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #26 on: May 07, 2023, 03:22:45 pm »
@AlexTP Thanks for testing.

@dbannon Your tests on different systems are impressive.

I built the compiled binary with the trunk version and with libQt5Pas 1.2.12.

I just had a system with fresh install of Ubuntu 23.04 with Gnome 44:
  • Wayland session is OK.
  • Xorg session Fail, Opens the Save dialog, with a delay of about 20 seconds.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #27 on: May 08, 2023, 01:40:29 am »
./prqtsavedqt5: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./prqtsavedqt5)

Thats because rca built it on a newer system with the "new" glibc, won't run on older systems. When making a general purpose binary must use an older system. I keep Ubuntu 20.04 systems around for that purpose.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #28 on: May 08, 2023, 01:46:01 am »

I just had a system with fresh install of Ubuntu 23.04 with Gnome 44:
  • Wayland session is OK.
  • Xorg session Fail, Opens the Save dialog, with a delay of about 20 seconds.

Wow, thats interesting, I wish I had thought to do that particular test ! It reveals a lot !

Davo

EDIT : And I can confirm its the case on both U23.04 and Debian Bookworm. No sign of the problem in my app, compiled with Release Versions of Lazarus.
« Last Edit: May 08, 2023, 02:18:48 am by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

irfanbagus

  • Jr. Member
  • **
  • Posts: 73
Re: 30sec Freeze per click in GTK3 file dialog under QT5 widgetset
« Reply #29 on: September 15, 2023, 11:13:13 am »
does this problem still exist, or is there a way out? and please check the attached patch. works for me but I don't know if this is the right way or not.
« Last Edit: September 15, 2023, 11:22:05 am by irfanbagus »

 

TinyPortal © 2005-2018