Re: [Lazarus] Lazarus totally destroyed... :(
On Fri, 20 Nov 2020, Bart via lazarus wrote: On Fri, Nov 20, 2020 at 1:09 PM Michael Van Canneyt via lazarus wrote: - The IDE does not handle missing ~/.lazarus any more. I tried using startlazarus, but this gives the same issue. FWIW: I just did a make clean bigide on a fresh checkout and this all went OK. I stated Lazarus with an empty config dir: no problems. Rebuilt Lazarus from with IDE: no problems. Iḿ using fpc 3.2.0-64 All this on Linux Mint 18.2 It took me a while, but meanwhile I also managed to fix it, but I had to start from zero. - Fresh checkout of lazarus - Remove .lazarus in home dir. - Start newly built IDE - redo all settings, install all needed packages. Seems stable. Looks like something hanging from older version in source/config dir prevented the IDE from starting. I sent my .lazarus to Mattias so he can have a look. I'll treat it as a major cleaning operation :) Michael.-- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus totally destroyed... :(
On Fri, Nov 20, 2020 at 1:09 PM Michael Van Canneyt via lazarus wrote: > > - The IDE does not handle missing ~/.lazarus any more. > > I tried using startlazarus, but this gives the same issue. > FWIW: I just did a make clean bigide on a fresh checkout and this all went OK. I stated Lazarus with an empty config dir: no problems. Rebuilt Lazarus from with IDE: no problems. Iḿ using fpc 3.2.0-64 All this on Linux Mint 18.2 -- Bart -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus totally destroyed... :(
On Fri, 20 Nov 2020 13:09:18 +0100 (CET) Michael Van Canneyt wrote: >[...] > home:~/lazarus> svn status -q > home:~/lazarus> delp -r . > DelPascal Version 1.3 > Copyright (c) 1999-2012 by the Free Pascal Development Team > > - Removed 67 *.compiled (32.215 Bytes) > - Removed 2 *.o (20.664 Bytes) > - Removed 2 *.ppu (5.374 Bytes) > - Total 58.253 Bytes Freed > home:~/lazarus> make ide PP=ppcx64-3.2.0 > make -C ide ide >[...] > svn2revisioninc.pas(62,3) Fatal: Can't find unit FileUtil used by > Svn2RevisionInc Normal after cleaning ppu files. Note that "make help" does not mention "make ide", because it is merely a part. A "make all" does make lazbuild lcl basecomponents ide starter Does that compile? >[...] > If I then start the new binary and ask to build from inside the IDE, > the error with LazControlDsgn again pops up. After I fix that, it > compiles. > > However, when restarting, I get attached layout. Not really nice. Where is the attachment? > If I remove the config dir ~/.lazarus (I know of no other way to fix > the layout thing), again: crash: > > home:~/lazarus> ./lazarus > > (lazarus:12619): Gtk-WARNING **: 13:08:24.335: Unable to locate theme > engine in module_path: "adwaita", Hint: (lazarus) > [TMainIDE.ParseCmdLineOptions] > PrimaryConfigPath="/home/michael/.lazarus" Hint: (lazarus) > [TMainIDE.ParseCmdLineOptions] > SecondaryConfigPath="/etc/lazarus" [TIDEProtocol.Load] error reading > "/home/michael/.lazarus/protocol.xml": Access violation Can you create a stacktrace? >[...] [TEnvironmentOptions.Load] error reading > "/home/michael/.lazarus/environmentoptions.xml": Access violation > Hint: (lazarus) [TMainIDE.Destroy] B -> inherited Destroy... > TMainIDE Hint: (lazarus) [TMainIDE.Destroy] END [FORMS.PP] > ExceptionOccurred Sender=EAccessViolation Exception=Access violation > Stack trace: $004408D0 SYSGETMEM_FIXED, line 963 > of ../inc/heap.inc $00440C25 SYSGETMEM, line 1082 > of ../inc/heap.inc $004414F7 SYSREALLOCMEM, line 1478 > of ../inc/heap.inc $0043F732 REALLOCMEM, line 350 > of ../inc/heap.inc $00C46607 ADD, line 548 of That's probably a follow up of the above AV. > idetranslations.pas $00C44D04 COLLECTTRANSLATIONS, line 189 > of idetranslations.pas $00C4626B TRANSLATERESOURCESTRINGS, > line 504 of idetranslations.pas $004B77CE > LOADGLOBALOPTIONS, line 1251 of main.pp $004B9112 CREATE, > line 1528 of main.pp $004208D6 main, line 141 of lazarus.pp > $0044C910 SYSENTRY, line 141 of system.pp > TApplication.HandleException: EAccessViolation > > > > So, seems to me there is a combination of things happening: > > - Some old config files in my lazarus tree prevent compiling - fixed > by doing a new checkout. > - Clearly not everything is cleaned regarding compile files: >see LazControlDsgn issue (this is in the new checkout). Do you know what the "2 *.ppu" files are? > - When upgrading an 'old' lazarus config, some things seem to go awry > when restoring window positions. Can you send me the old layout? > - The IDE does not handle missing ~/.lazarus any more. Seems to work here. > I tried using startlazarus, but this gives the same issue. Works here too. I wonder what is different on your system. Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus totally destroyed... :(
On Fri, 20 Nov 2020, Mattias Gaertner via lazarus wrote: On Fri, 20 Nov 2020 11:32:49 +0100 (CET) Michael Van Canneyt via lazarus wrote: Hello, - Updated Lazarus from SVN. - Lazarus no longer compiles (FPC 3.2) It compiles here. Well: home:~/lazarus> svn status -q home:~/lazarus> delp -r . DelPascal Version 1.3 Copyright (c) 1999-2012 by the Free Pascal Development Team - Removed 67 *.compiled (32.215 Bytes) - Removed 2 *.o (20.664 Bytes) - Removed 2 *.ppu (5.374 Bytes) - Total 58.253 Bytes Freed home:~/lazarus> make ide PP=ppcx64-3.2.0 make -C ide ide make[1]: Entering directory '/home/michael/projects/lazarus/ide' /bin/mkdir -p ../units/x86_64-linux/gtk2 make -C ../tools svn2revisioninc OS_TARGET=linux CPU_TARGET=x86_64 OPT='' make[2]: Entering directory '/home/michael/projects/lazarus/tools' Makefile:2956: warning: overriding recipe for target '.' Makefile:2954: warning: ignoring old recipe for target '.' ppcx64-3.2.0 -gl -Fu. -Fu../components/lazutils/lib/x86_64-linux -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/nogui -Fu/usr/local/lib/fpc/3.2.0/units/x86_64-linux/rtl -FE. -FU. -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/7 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -dx86_64 svn2revisioninc.pas svn2revisioninc.pas(62,3) Fatal: Can't find unit FileUtil used by Svn2RevisionInc Fatal: Compilation aborted Makefile:2967: recipe for target 'svn2revisioninc' failed make[2]: *** [svn2revisioninc] Error 1 make[2]: Leaving directory '/home/michael/projects/lazarus/tools' Makefile:5098: recipe for target 'revisioninc' failed make[1]: *** [revisioninc] Error 2 make[1]: Leaving directory '/home/michael/projects/lazarus/ide' Makefile:3610: recipe for target 'ide' failed make: *** [ide] Error 2 As you can see, no modified files, no stray .ppu or .o. But it does not compile. I did then a completely new checkout of the IDE, then I can compile it on the command-line. If I then start the new binary and ask to build from inside the IDE, the error with LazControlDsgn again pops up. After I fix that, it compiles. However, when restarting, I get attached layout. Not really nice. If I remove the config dir ~/.lazarus (I know of no other way to fix the layout thing), again: crash: home:~/lazarus> ./lazarus (lazarus:12619): Gtk-WARNING **: 13:08:24.335: Unable to locate theme engine in module_path: "adwaita", Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/michael/.lazarus" Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus" [TIDEProtocol.Load] error reading "/home/michael/.lazarus/protocol.xml": Access violation [TEnvironmentOptions.Load] error reading "/home/michael/.lazarus/environmentoptions.xml": Access violation Hint: (lazarus) [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE Hint: (lazarus) [TMainIDE.Destroy] END [FORMS.PP] ExceptionOccurred Sender=EAccessViolation Exception=Access violation Stack trace: $004408D0 SYSGETMEM_FIXED, line 963 of ../inc/heap.inc $00440C25 SYSGETMEM, line 1082 of ../inc/heap.inc $004414F7 SYSREALLOCMEM, line 1478 of ../inc/heap.inc $0043F732 REALLOCMEM, line 350 of ../inc/heap.inc $00C46607 ADD, line 548 of idetranslations.pas $00C44D04 COLLECTTRANSLATIONS, line 189 of idetranslations.pas $00C4626B TRANSLATERESOURCESTRINGS, line 504 of idetranslations.pas $004B77CE LOADGLOBALOPTIONS, line 1251 of main.pp $004B9112 CREATE, line 1528 of main.pp $004208D6 main, line 141 of lazarus.pp $0044C910 SYSENTRY, line 141 of system.pp TApplication.HandleException: EAccessViolation So, seems to me there is a combination of things happening: - Some old config files in my lazarus tree prevent compiling - fixed by doing a new checkout. - Clearly not everything is cleaned regarding compile files: see LazControlDsgn issue (this is in the new checkout). - When upgrading an 'old' lazarus config, some things seem to go awry when restoring window positions. - The IDE does not handle missing ~/.lazarus any more. I tried using startlazarus, but this gives the same issue. Michael. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus totally destroyed... :(
Juha Manninen via lazarus schrieb am Fr., 20. Nov. 2020, 12:24: > On Fri, Nov 20, 2020 at 12:32 PM Michael Van Canneyt via lazarus < > lazarus@lists.lazarus-ide.org> wrote: > >> - Updated Lazarus from SVN. >> - Lazarus no longer compiles (FPC 3.2) >> >> - Managed to fix that: >> >> home:~/lazarus> svn diff ide/ideoptionsdlg.pas >> Index: ide/ideoptionsdlg.pas >> === >> --- ide/ideoptionsdlg.pas (revision 64150) >> +++ ide/ideoptionsdlg.pas (working copy) >> @@ -36,7 +36,7 @@ >> ExtCtrls, StdCtrls, Dialogs, >> // LazControls >> TreeFilterEdit, >> - LazControlDsgn, // move this to lazarus.lpr >> + // LazControlDsgn, // move this to lazarus.lpr >> // IdeIntf >> IDEWindowIntf, IDEOptionsIntf, IDEOptEditorIntf, IDECommands, >> IDEHelpIntf, >> ProjectIntf, IDEImagesIntf, >> > > I remember that LazControlDsgn required some tweaking but it was a long > time ago. > No recent changes have affected it. > I just today built Lazarus without problems. I don't know what is causing > your errors. > Last week I had to do a complete clean of Lazarus 2.1 as well, cause it got stuck at startup with 100% CPU usage on one core. I completely cleaned the SVN directory, built from the Makefile and used a new configuration and everything was fine again... Regards, Sven > -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus totally destroyed... :(
On Fri, 20 Nov 2020 11:32:49 +0100 (CET) Michael Van Canneyt via lazarus wrote: > Hello, > > > - Updated Lazarus from SVN. > - Lazarus no longer compiles (FPC 3.2) It compiles here. > - Managed to fix that: > > home:~/lazarus> svn diff ide/ideoptionsdlg.pas > Index: ide/ideoptionsdlg.pas > === > --- ide/ideoptionsdlg.pas (revision 64150) > +++ ide/ideoptionsdlg.pas (working copy) > @@ -36,7 +36,7 @@ > ExtCtrls, StdCtrls, Dialogs, > // LazControls > TreeFilterEdit, > - LazControlDsgn, // move this to lazarus.lpr > + // LazControlDsgn, // move this to lazarus.lpr > // IdeIntf > IDEWindowIntf, IDEOptionsIntf, IDEOptEditorIntf, IDECommands, > IDEHelpIntf, ProjectIntf, IDEImagesIntf, > > - Lazarus no longer starts. See below for stacktrace. > - Removed protocol.xml and environmentoptions.xml : No change, crash > - Removed .lazarus dir completely: Crash. > > - Attempt to compile on command-line with FPC 3.2.0 > > home:~/lazarus> make all PP=ppcx64-3.2.0 Maybe you have local mods? Have you tried "make distclean"? > make -C packager/registration > make[1]: Entering directory > '/home/michael/projects/lazarus/packager/registration' /bin/rm > -f ../units/x86_64-linux/fcllaz.ppu /bin/mkdir > -p ../units/x86_64-linux ppcx64-3.2.0 -MObjFPC -Scghi -O1 -g -gl -l > -vewnhibq -Fu. -Fu/usr/local/lib/fpc/3.2.0/units/x86_64-linux/rtl > -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/7 > -dx86_64 fcllaz.pas Hint: (11030) Start of reading config > file /home/michael/.fpc.cfg Hint: (11031) End of reading config > file /home/michael/.fpc.cfg Free Pascal Compiler version 3.2.0 > [2020/05/04] for x86_64 Copyright (c) 1993-2020 by Florian Klaempfl > and others (1002) Target OS: Linux for x86-64 (3104) Compiling > fcllaz.pas (3104) Compiling lazaruspackageintf.pas (1008) 124 lines > compiled, 0.1 sec (1022) 2 hint(s) issued > /bin/cp -f Makefile.compiled ../units/x86_64-linux/FCL.compiled > /bin/cp: cannot stat 'Makefile.compiled': No such file or directory Do you have packager/registration/Makefile.compiled ? > Makefile:3588: recipe for target 'compiled' failed > make[1]: *** [compiled] Error 1 > make[1]: Leaving directory > '/home/michael/projects/lazarus/packager/registration' Makefile:3587: > recipe for target 'registration' failed make: *** [registration] > Error 2 > > > Left with no way to create/start lazarus. > > Me no happy and very stuck pinguin. > > Suggestions ? Mattias -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus totally destroyed... :(
On Fri, 20 Nov 2020, Juha Manninen via lazarus wrote: On Fri, Nov 20, 2020 at 12:32 PM Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: - Updated Lazarus from SVN. - Lazarus no longer compiles (FPC 3.2) - Managed to fix that: home:~/lazarus> svn diff ide/ideoptionsdlg.pas Index: ide/ideoptionsdlg.pas === --- ide/ideoptionsdlg.pas (revision 64150) +++ ide/ideoptionsdlg.pas (working copy) @@ -36,7 +36,7 @@ ExtCtrls, StdCtrls, Dialogs, // LazControls TreeFilterEdit, - LazControlDsgn, // move this to lazarus.lpr + // LazControlDsgn, // move this to lazarus.lpr // IdeIntf IDEWindowIntf, IDEOptionsIntf, IDEOptEditorIntf, IDECommands, IDEHelpIntf, ProjectIntf, IDEImagesIntf, I remember that LazControlDsgn required some tweaking but it was a long time ago. No recent changes have affected it. I just today built Lazarus without problems. I don't know what is causing your errors. What happens if you start it without config directory ? Michael. -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] Lazarus totally destroyed... :(
On Fri, Nov 20, 2020 at 12:32 PM Michael Van Canneyt via lazarus < lazarus@lists.lazarus-ide.org> wrote: > - Updated Lazarus from SVN. > - Lazarus no longer compiles (FPC 3.2) > > - Managed to fix that: > > home:~/lazarus> svn diff ide/ideoptionsdlg.pas > Index: ide/ideoptionsdlg.pas > === > --- ide/ideoptionsdlg.pas (revision 64150) > +++ ide/ideoptionsdlg.pas (working copy) > @@ -36,7 +36,7 @@ > ExtCtrls, StdCtrls, Dialogs, > // LazControls > TreeFilterEdit, > - LazControlDsgn, // move this to lazarus.lpr > + // LazControlDsgn, // move this to lazarus.lpr > // IdeIntf > IDEWindowIntf, IDEOptionsIntf, IDEOptEditorIntf, IDECommands, > IDEHelpIntf, > ProjectIntf, IDEImagesIntf, > I remember that LazControlDsgn required some tweaking but it was a long time ago. No recent changes have affected it. I just today built Lazarus without problems. I don't know what is causing your errors. Regards, Juha -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus