Recent

Author Topic: Fields Editor hangs  (Read 897 times)

Roald

  • New member
  • *
  • Posts: 8
Fields Editor hangs
« on: November 03, 2024, 09:18:55 pm »
Hi there

I am having some problems with creating fields for database queries, using the fields editor.  The editor comes up just fine, but when I select either add-all-fields option or the create-new-field, the editor hangs.  Well, in fact the whole of Lazarus hangs.  The problem is the same independent of whether there are any fields already defined or not.

I have tried the "standard" component library, and Zeos.  Same thing happens.

Lazarus version:  3.6  (same problem existing before upgrading from 2.6)
FP version: 3.2.2
Database:  Postgresql v.16.3
Platform:  OpenSuse Thumbleweed 20240905

The problem has been existing through some Postgresql versions and Thumbleweed versions.  I assumed (or hoped) that it was a Laz.2.6. problem, so I chose to wait until I upgraded before attacking it.  But, alas, all new versions didn't help.
This has been working before, and I suspect that there is something messing up things in on or more of the configuration files.  But, as you know, starting the whole configuration from scratch is a hazzle.  So, I would like to check if anyone has seen this problem and found a solution.

Ps.: Yes, I have googled, and browsed the forums.  I didn't find anything relevant.  If there is an obvious solution readily available, please feel free to rub it in my face, but only if you direct me to a solution  :D

ginoo

  • Jr. Member
  • **
  • Posts: 84
Re: Fields Editor hangs
« Reply #1 on: November 04, 2024, 07:40:43 am »
zeos works fine for me. Try to find out what is wrong with your installation

Roald

  • New member
  • *
  • Posts: 8
Re: Fields Editor hangs
« Reply #2 on: November 04, 2024, 06:51:37 pm »
zeos works fine for me. Try to find out what is wrong with your installation

Oh, I hadn't though of trying to find out what is wrong.   Thank you for that amazing suggestion.   No, wait! Of course I have!!!

And, as should be clear from my problem description:  The problem is not Zeos (since it also occurs with the standard database components).

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11930
  • FPC developer.
Re: Fields Editor hangs
« Reply #3 on: November 04, 2024, 07:13:49 pm »
Does it show database content at all ? Maybe the IDE is not looking for the right DB name. IIRC that is configurable in the params of the zconnection?

(btw windows trunk/trunk with ZEOS7 and postgresql works fine here)

If it does show some database content, it is probably an instability in the graphical libraries of that distro. 

Roald

  • New member
  • *
  • Posts: 8
Re: Fields Editor hangs
« Reply #4 on: November 05, 2024, 03:48:29 pm »
Yes, everything else database related works just fine.  Well, at least those things that I need and have tested.
If I manually add the fields by editing the .pas and the .lfm files, the fields will show up in the Fields Editor and in the component list.  And, last but not least, data is handled as normal. 

I also have considered that it is related to the distro and/or the graphics libraries.  In particular since it worked before, and Thumbleweed updates are, well, not always stable.

I just wanted to check if this is a problem other users have experienced.  Running new distro upgrade is next on the list.
« Last Edit: November 05, 2024, 03:51:42 pm by Roald »

Roald

  • New member
  • *
  • Posts: 8
Re: Fields Editor hangs
« Reply #5 on: November 05, 2024, 06:13:16 pm »
OK.  Problem solved.
I cannot say what exactly was the issue, but I found a way out of the problem.

Rebuilding both project and Lazarus itself with Qt5 instead GTK has been something that I have put off in favour of more important things.  But, anyhow, I did that now and the problem disappeared.

 

TinyPortal © 2005-2018