Recent

Author Topic: [solved] Lazarus does not start after installing a package  (Read 5045 times)

RayoGlauco

  • Full Member
  • ***
  • Posts: 193
  • Beers: 1567
[solved] Lazarus does not start after installing a package
« on: April 15, 2024, 04:28:10 pm »
Are there any known issues that prevent Lazarus from starting after installing a package that has no known issues?

Could it be an executable size problem? After installing BGRAcontrols, I get a LAZARUS.EXE that is 345 Mb, and that does not start. The previous executable, which is 323 Mb, works fine.

This problem has also happened to me after installing other packages, both with Lazarus 3.0 and Lazarus 3.2, and on two different PCs.

Windows 10 64 bit, Lazarus 32 bit.
« Last Edit: April 16, 2024, 12:10:36 am by RayoGlauco »
To err is human, but to really mess things up, you need a computer.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10551
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus does not start after installing a package
« Reply #1 on: April 15, 2024, 05:18:26 pm »
Exe size should not be an issue.

One possibility might be a dll dependency. If any installed package requires a dll to be present (like maybe a database related package may need the db driver dll).
Mind that dll must be the correct bitness, for a 32 bit IDE you would need 32bit dll.


It could also be an issue with some of the packages, even if you say "no known issue"...
You still have lazarus.old.exe to recover?

Do check for problems you can:

1)
The lazarus that does not work, run it from cmd.exe :
   lazarus.exe --debug-log=mylog.txt
Then check the logfile for errors.

2)
When you rebuild your IDE with the package:
 => do not restart it.
 => in Tools >Configure build lazarus => add: -gw -gl
Open the project ide/lazarus.lpi
Run/F9
This will run the newly build IDE in the debugger.
You likely either get an "some error" message, or "exited with code ..."

RayoGlauco

  • Full Member
  • ***
  • Posts: 193
  • Beers: 1567
Re: Lazarus does not start after installing a package
« Reply #2 on: April 15, 2024, 11:23:24 pm »
Well, I tried  lazarus.exe --debug-log=mylog.txt and got this:

using config file D:\SPSLSD0002\Documents\varios\_soft\Lazarus\lazarus.cfg
[FORMS.PP] ExceptionOccurred
  Sender=EInOutError
  Exception=Can not load SQLite client library "sqlite3.dll". Check your installation.
  Stack trace:
  $00000000
[FORMS.PP] ExceptionOccurred


Does Lazarus require sqlite3.dll to start?
Why didn't this error occur before installing BGRAbitmap (in my last test)?
To err is human, but to really mess things up, you need a computer.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10551
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus does not start after installing a package
« Reply #3 on: April 15, 2024, 11:36:22 pm »
You probably have a package in your install list that requires the dll.


That is, if you ever installed a package that requires it, then that will be noted in your config.
Until you actually go to menu Packages > Packages, and uninstall it, this package stays in the list of installed packages.

- If you uninstall Lazarus, the config remains on your PC
- If you install a new Lazarus, the config remains on your PC
   Though in the installer there is a checkbox to clean the config, so you can get rid of it.

After installing a new Lazarus, the installed package is pending. It is not compiled into you lazarus exe.
But as soon as you recompile the IDE for any reason (install any other package) the pending packages are being installed too.


RayoGlauco

  • Full Member
  • ***
  • Posts: 193
  • Beers: 1567
Re: Lazarus does not start after installing a package
« Reply #4 on: April 16, 2024, 12:09:11 am »
Thanks Martin_fr, you were right, one of my packages required sqlite3.dll and it didn't find it. My package and my fault. I made some modifications to this package and now the IDE starts fine. Thank you so much.
To err is human, but to really mess things up, you need a computer.

wp

  • Hero Member
  • *****
  • Posts: 12459
Re: [solved] Lazarus does not start after installing a package
« Reply #5 on: April 16, 2024, 12:38:09 pm »
IIRC, the package "sqlite3laz" which is accessible for installation in "Package" > "Install/uninstall packages", requires the sqlite3.dll to be either in the correct system directory or in the Lazarus directory; otherwise the IDE won't start. On the other hand, when you need sqlite3 you can use the SQLDB library which is installed by default (tab "SQLdb") and does not have this limitation.

 

TinyPortal © 2005-2018