Recent

Author Topic: Lazarus Release 2.2.0  (Read 73737 times)

frank@schwedler.net

  • Newbie
  • Posts: 1
Re: Lazarus Release 2.2.0
« Reply #30 on: January 07, 2022, 12:16:04 pm »
Is there a guide how to update an existing Lazarus 2.0.12/FPC 3.2.0 installation to the new versions? I do have some projects which currently use the old lazarus version. These project should be updated too..

Edgardo M. López

  • New Member
  • *
  • Posts: 11
Re: Lazarus Release 2.2.0
« Reply #31 on: January 07, 2022, 12:51:35 pm »
Hello. I have problems with version 2.2.0. When I open my projects made with version 2.0.12 and I try to add a new form it doesn't let me. I get the following error when trying to save the new form.

Could not set flowForm1: TForm1.
Abstract method called


I have tested it on Ubuntu 20.04 and Windows 11.
Does anyone know how to solve that? Or should I redo all my old projects.

Greetings.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.0
« Reply #32 on: January 07, 2022, 01:15:13 pm »
Hello. I have problems with version 2.2.0. When I open my projects made with version 2.0.12 and I try to add a new form it doesn't let me. I get the following error when trying to save the new form.

Could not set flowForm1: TForm1.
Abstract method called


I have tested it on Ubuntu 20.04 and Windows 11.
Does anyone know how to solve that? Or should I redo all my old projects.

Can you start Lazarus (on Linux) from a console, and see if it prints any form of stack dump?
( On windows: lazarus --debug-log=C:\lazlog.txt  )

If you do get a dump, but no line numbers, then please rebuild (Tools menu) the IDE with "configure build lazarus" and specify -gl -gw -O-1
Also chose the "clean build" radio item.
Then check again for the stack dump.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.0
« Reply #33 on: January 07, 2022, 01:24:47 pm »
Is there a guide how to update an existing Lazarus 2.0.12/FPC 3.2.0 installation to the new versions? I do have some projects which currently use the old lazarus version. These project should be updated too..

The new IDE should be able to open all your projects, and they should work.
"Should" => Even with all testing done, there is always a chance remaining, that it does not.... Hence "backups".

1) If you want to test first:
- The windows installer has an option "secondary install". Make sure to chose a new/empty folder for the new conf.
  (For Linux, there should be info on the wiki)
- Make backups of your projects, before testing

2) Installing the new version (and test / roll back / ...)
- Make a backup of your config
   In your current IDE, menu: View > Ide Internals > About IDE
   Find the "primary config path" => backup that folder. This is your IDE config. (In case you want to downgrade...)
- Uninstall existing version (sometimes you can skip this, but then you may need to do a "clean" IDE rebuild)
- Install new version
- make backup of your projects.

Note:
- The format of the LPI/LPS files changed. The new IDE can save backward compatible files. But in case this does not work, and you do want to go back to a previous IDE, it is best to make backups of your entire projects.
- If you use 3rd party packages, you may have to update them too.

Edgardo M. López

  • New Member
  • *
  • Posts: 11
Re: Lazarus Release 2.2.0
« Reply #34 on: January 07, 2022, 01:29:22 pm »
Hello. I have problems with version 2.2.0. When I open my projects made with version 2.0.12 and I try to add a new form it doesn't let me. I get the following error when trying to save the new form.

Could not set flowForm1: TForm1.
Abstract method called


I have tested it on Ubuntu 20.04 and Windows 11.
Does anyone know how to solve that? Or should I redo all my old projects.

Can you start Lazarus (on Linux) from a console, and see if it prints any form of stack dump?
( On windows: lazarus --debug-log=C:\lazlog.txt  )

If you do get a dump, but no line numbers, then please rebuild (Tools menu) the IDE with "configure build lazarus" and specify -gl -gw -O-1
Also chose the "clean build" radio item.
Then check again for the stack dump.

Tried to rebuild with the options you passed me. I create a new project and when I want to save the Form it always gives me that error.

This is the log that I was able to get. Thanks for the help.



NOTA: No se ha encontrado el archivo de configuración de las CodeTools - usando valores predeterminados
NOTE: help options config file not found - using defaults
Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-gtk2 New=x86_64-linux-gtk2 Changed: OS/CPU=True LCL=False
----------------
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
[USER] invalid source position for vertical gradient
Hint: (lazarus) RenameUnit unit1.pas NewUnitName=Unit1 OldUnitName=Unit1 LFMCode=False LRSCode=False NewFilename="/home/servidor/tmp/unit1.pas"
  Stack trace:
  $0000000000538CA9
  $0000000000C7709E  SAVEEDITORFILE,  line 2592 of sourcefilemanager.pas
  $0000000000C7C59E  SAVEPROJECT,  line 4005 of sourcefilemanager.pas
  $0000000000C76A6A  SAVEEDITORFILE,  line 2436 of sourcefilemanager.pas
  $00000000004BA381  DOSAVEEDITORFILE,  line 5685 of main.pp
  $00000000004B078E  MNUSAVECLICKED,  line 3291 of main.pp
  $00000000009336A7  DOONCLICK,  line 1640 of idecommands.pas
  $00000000009336D4  DOONCLICK,  line 1645 of idecommands.pas
  $0000000000957090  CLICK,  line 647 of toolbarintf.pas
  $00000000005F5CBD  MOUSEUP,  line 176 of include/toolbutton.inc
  $0000000000590E9E  DOMOUSEUP,  line 2347 of include/control.inc
  $0000000000591B53  WMLBUTTONUP,  line 2829 of include/control.inc
  $000000000043385A
  $000000000058F3B6  PERFORM,  line 1617 of include/control.inc
  $0000000000582300  ISCONTROLMOUSEMSG,  line 4772 of include/wincontrol.inc
  $00000000005838E9  WNDPROC,  line 5394 of include/wincontrol.inc
  $0000000000760792  DELIVERMESSAGE,  line 112 of lclmessageglue.pas
Info: (lazarus) [SaveProject] SaveEditorFile "/home/servidor/tmp/unit1.pas" failed
TDesigner.PrepareFreeDesigner: TheFormEditor=TFormEditor, Designer=TDesigner
LAZARUS END - cleaning up ...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.0
« Reply #35 on: January 07, 2022, 02:03:50 pm »
Unfortunately the stack does not help....

Do you have any packages installed into your IDE?
(If you have not yet, please try a "clean" rebuild of the IDE.)

Is there a way this can be reproduced?
Can the project be send (in private and confidentially, if needed)?

Edgardo M. López

  • New Member
  • *
  • Posts: 11
Re: Lazarus Release 2.2.0
« Reply #36 on: January 07, 2022, 03:23:04 pm »
Unfortunately the stack does not help....

Do you have any packages installed into your IDE?
(If you have not yet, please try a "clean" rebuild of the IDE.)

Is there a way this can be reproduced?
Can the project be send (in private and confidentially, if needed)?

I reinstalled everything again and I was testing after installing each package that I use. The error seems to be with the "xmlresource" package. When installing it begins to fail. This time I did not install it in Ubuntu and everything works normal. I uninstalled it in Windows 11 and had no more problems.

Thank you so much for everything.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9857
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.0
« Reply #37 on: January 07, 2022, 04:06:25 pm »
The error seems to be with the "xmlresource" package. When installing it begins to fail. This time I did not install it in Ubuntu and everything works normal. I uninstalled it in Windows 11 and had no more problems.

Could you please report this on the bug tracker. Thanks.

Giorgio Tani

  • New Member
  • *
  • Posts: 28
Re: Lazarus Release 2.2.0
« Reply #38 on: January 07, 2022, 09:51:31 pm »
Thank you very much to Lazarus / FreePascal developers!
I'm testing it successfully for cross compiling aarch64 and x86_64 on macOS Monterey, and cross compiling x86_64 and i386 on Windows, and I'll test it on GTK and Qt Linux in the next few days.

AlexTP

  • Hero Member
  • *****
  • Posts: 2401
    • UVviewsoft
Re: Lazarus Release 2.2.0
« Reply #39 on: January 07, 2022, 10:39:10 pm »
@Martin_fr,
I have repro with "xmlresource" package, I will post the bug report.

Done
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39538
« Last Edit: January 07, 2022, 11:13:53 pm by Alextp »

Edgardo M. López

  • New Member
  • *
  • Posts: 11
Re: Lazarus Release 2.2.0
« Reply #40 on: January 09, 2022, 12:25:31 am »
@Martin_fr,
I have repro with "xmlresource" package, I will post the bug report.

Done
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39538

Thanks for reporting. I don't know how errors are reported.

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
Re: Lazarus Release 2.2.0
« Reply #41 on: January 09, 2022, 03:06:21 pm »
Hi all
With this release of Lazarus I have An access violation on a destroy. In the previa versione it did work.

Any idea.
Tnks

Bart

  • Hero Member
  • *****
  • Posts: 5288
    • Bart en Mariska's Webstek
Re: Lazarus Release 2.2.0
« Reply #42 on: January 09, 2022, 04:55:46 pm »
Without code it is impossible to tell.

Bart

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
Re: Lazarus Release 2.2.0
« Reply #43 on: January 09, 2022, 06:11:02 pm »
I know,

I try to replicate with a minimum amount of code but it works.

I have a component inherited from TDOSComand that I found in www.torry.net.

My component just call inherited in the destroy. The destroy in TDOSComand is

Code: Pascal  [Select][+][-]
  1. destructor TDosCommand.Destroy;
  2. begin
  3.   if FThread <> nil then Stop;
  4.   if FTimer <> nil then FTimer.free;
  5.   if FSync <> nil then FSync.Free;
  6.   if FInputLines_SHARED <> nil then FInputLines_SHARED.free;
  7.   if FLines_SHARED<> nil then FLines_SHARED.free;
  8.   inherited;
  9. end;  
  10.  

unfortunately the debug do not allow me to step in the procedure (as I put a breakpoint Lazarus show it as unreachable)

dseligo

  • Hero Member
  • *****
  • Posts: 1219
Re: Lazarus Release 2.2.0
« Reply #44 on: January 10, 2022, 12:58:59 am »
Write to some file every line executed and see on what line it fails.

Code: Pascal  [Select][+][-]
  1. destructor TDosCommand.Destroy;
  2.   procedure Log(s: String);
  3.   const LogFile = 'mylog.txt';
  4.   var f: TextFile;
  5.   begin
  6.     AssignFile(f, LogFile);
  7.     If FileExists(LogFile) then
  8.       Append(f)
  9.     else
  10.       Rewrite(f);
  11.     WriteLn(f, s);
  12.     CloseFile(f);
  13.   end;
  14.  
  15. begin
  16.   Log('THread');
  17.   if FThread <> nil then Stop;
  18.   Log('FTimer');
  19.   if FTimer <> nil then FTimer.free;
  20.   Log('FSync');
  21.   if FSync <> nil then FSync.Free;
  22.   Log('FInputLines_SHARED');
  23.   if FInputLines_SHARED <> nil then FInputLines_SHARED.free;
  24.   Log('FLines_SHARED');
  25.   if FLines_SHARED<> nil then FLines_SHARED.free;
  26.   Log('inherited');
  27.   inherited;
  28.   Log('end');
  29. end;

 

TinyPortal © 2005-2018