Recent

Author Topic: [CLOSED FOR NOW]Lazarus not cleared  (Read 3235 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1289
[CLOSED FOR NOW]Lazarus not cleared
« on: July 22, 2021, 10:21:41 am »
I'm using Lazarus 2.0.10. on Windows 10.
When I close down Lazarus IDE, it's datamodules (not unit,  one like forms) do not disappear (they have link to FireBird database).
I can force those datamodules close down. But even in those cases, there still remain Lazarus process in the Windows task manager.

While it is active, I cannot connect to the database with FlameRobin --- so I suspect there are something related with database connection.  (But it's strange --- I still can access to database using DBeaver Community Edition.)

Once I remove from the processes through task manager, FlameRobin can access database.
« Last Edit: July 23, 2021, 01:39:59 pm by egsuh »

nikel

  • Full Member
  • ***
  • Posts: 186
Re: Lazarus not cleared
« Reply #1 on: July 23, 2021, 06:30:43 am »
Did you try to delete the content of lazarus directory at %appdata% after restarting your machine? You can clear Lazarus.

And are you sure you're closing the database connections when testing?
« Last Edit: July 23, 2021, 06:33:49 am by nikel »

balazsszekely

  • Guest
Re: Lazarus not cleared
« Reply #2 on: July 23, 2021, 07:53:32 am »
Hi egsuh,

I created a quick demo project with a datamodule and a link to a firebird database. Then I set connected property to true, also activated a query. When I close the IDE,  the datamodule indeed hangs for a few seconds, but then everything it's closed, no zombie process in the task manager.  So unfortunately I cannot reproduce the issue.

Please try the following:
1. Go to Tools->Configure "Build Lazarus"
2. Select profile "Debug IDE", then rebuild lazarus
3. Open lazarus.lpi, you can find it in the IDE sub folder of the lazarus installation
4. Click the run button, now a second instance of lazarus should appear
5. In the second instance open your problematic project, then close the IDE
6. The first instance of Lazarus should break where the exception is or at least you should get some info about the problem
« Last Edit: July 23, 2021, 07:59:09 am by GetMem »

egsuh

  • Hero Member
  • *****
  • Posts: 1289
Re: Lazarus not cleared
« Reply #3 on: July 23, 2021, 12:09:29 pm »
I found attached error during Lazarus build.

egsuh

  • Hero Member
  • *****
  • Posts: 1289
Re: Lazarus not cleared
« Reply #4 on: July 23, 2021, 12:21:49 pm »
Quote
Did you try to delete the content of lazarus directory at %appdata% after restarting your machine? You can clear Lazarus.

Do you mean deleting all files? There are very many files.

Quote
And are you sure you're closing the database connections when testing?

No... this is while editing, not runtime. But I think I connect db at the start of run.


balazsszekely

  • Guest
Re: Lazarus not cleared
« Reply #5 on: July 23, 2021, 12:38:34 pm »
@egsuh
Quote
I found attached error during Lazarus build.
In the lazarus ecosystem each package and unit name must be unique, hence the warning. However the message has nothing to do with your database related error.

Quote
But I think I connect db at the start of run.
This is a good idea, but it would be interesting to know why the IDE crashed on a hanging connection.

egsuh

  • Hero Member
  • *****
  • Posts: 1289
Re: Lazarus not cleared
« Reply #6 on: July 23, 2021, 01:06:45 pm »
I'm sorry. I can't continue clearing. Lazarus responds too slowly. I'm going to re-install.

egsuh

  • Hero Member
  • *****
  • Posts: 1289
Re: Lazarus not cleared
« Reply #7 on: July 23, 2021, 01:25:14 pm »
I have upgraded to Lazarus 2.0.12, and now there are no dangling syndrome.
But v2.0.10 did not have such problem in the beginning. When I see the same problem again, I'll report here.

Thank you for your advices.

balazsszekely

  • Guest
Re: [CLOSED FOR NOW]Lazarus not cleared
« Reply #8 on: July 23, 2021, 03:18:46 pm »
@egsuh
Thanx for the feedback

 

TinyPortal © 2005-2018