Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on February 24, 2021, 09:03:56 pm

Title: Lazarus Release 2.0.12
Post by: Martin_fr on February 24, 2021, 09:03:56 pm
The Lazarus team is glad to announce the release of Lazarus 2.0.12.

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.2.0

Windows users should be careful with -O3 or higher optimization, due to bug https://bugs.freepascal.org/view.php?id=37305.

Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 2.0.12" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#2_0_12

Minimum requirements:

Windows:
  2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

FreeBSD/Linux:
  gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
  Cocoa (64bit) 10.12 to 10.15, Carbon (32bit) 10.5 to 10.14, qt and qt5 (32 or 64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_12

For people who are blocked by SF, the Lazarus releases from SourceForge
are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/
Title: Re: Lazarus Release 2.0.12
Post by: ASBzone on February 24, 2021, 09:58:29 pm
Thanks, team.  And congrats.  :D
Title: Re: Lazarus Release 2.0.12
Post by: lucamar on February 24, 2021, 10:21:14 pm
Nice work!

Ok, so I am downloading right now and can't yet know whether it's in fact "nice", so let's say instead:

Thanks, folks, and (extrapolating from past performance) good work! ;D
Title: Re: Lazarus Release 2.0.12
Post by: VTwin on February 24, 2021, 11:57:03 pm
Excellent! Many thanks for the developers work.

I am currently installing Mac, Win, and Lin versions.

I notice that on Mac, the Lazarus files are placed into the Applications -> Lazarus directory. This seems like an odd decision, as previously just an alias was placed there. Is this a permissions issue?
Title: Re: Lazarus Release 2.0.12
Post by: pathfinder on February 25, 2021, 12:08:57 am
The link on the home page needs to be updated, because it still points to 2.0.10.
Title: Re: Lazarus Release 2.0.12
Post by: Marc on February 25, 2021, 09:29:33 am
The link on the home page needs to be updated, because it still points to 2.0.10.

Done
Title: Re: Lazarus Release 2.0.12
Post by: nachoap on February 25, 2021, 10:04:20 am
Excellent news!

Thank you very much!
Title: Re: Lazarus Release 2.0.12
Post by: jonyrh on February 25, 2021, 10:33:17 am
Thank you!  :)
Title: Re: Lazarus Release 2.0.12
Post by: Al-Eid on February 25, 2021, 11:29:52 am
Thank you very much
Title: Re: Lazarus Release 2.0.12
Post by: dseligo on February 25, 2021, 06:46:13 pm
Thank you
Title: Re: Lazarus Release 2.0.12
Post by: geraldholdsworth on February 25, 2021, 07:56:13 pm
So excited, I downloaded and installed it for my Mac (High Sierra), which it upgraded itself from Lazarus 2.0.11, ran my project and got told:
"cocoagdiobjects.pas(11,34) Fatal: Can't find unit CocoaGDIObjects used by CocoaPrivate"

Not a great start.

EDIT: Followed the instructions to completely remove Lazarus, then started again. Same error. Gone back to 2.0.11, which works fine.
Title: Re: Lazarus Release 2.0.12
Post by: VTwin on February 25, 2021, 10:22:22 pm
@geraldholdsworth

Curious. I had no problem installing it over 2.0.10 on High Sierra.
Title: Re: Lazarus Release 2.0.12
Post by: Marcel59 on February 25, 2021, 11:05:32 pm
Thank you Team for this new version!

LOL -  :D Just installed the 2.0.10 on 24 feb 2021 (yesterday) after a very, very long time absent. So, uninstall, new download, install and again back to the manuals. My Pascal knowledge is old and rusty.

Greetings, Marcel
Title: Lazarus Release 2.0.12 problems.
Post by: Bloodbat on February 26, 2021, 12:54:12 am
Thanks to the team for all the work and the new release. :)

I have two problems with the Win32 version:
-The first is extremely annoying; but not a deal breaker: the Source Editor is quite sluggish, 2.0.10 wasn't when editing the same code base.
-It tends to hang when closing: when I first installed it and rebuilt it to install packages it refused to close until I forced it via Windows, and has refused every time I tried to get it to rebuild without hanging: I have to force it through Windows or Task Manager. It builds properly: the hang occurs when the IDE is closing itself to restart. The problem is also present, intermittently, when building any of my own code, those unlucky times when I close it the window goes away, but I can see the process wasting CPU cycles until I kill it with Task Manager or similar.
Title: Re: Lazarus Release 2.0.12
Post by: trev on February 26, 2021, 02:27:50 am
So excited, I downloaded and installed it for my Mac (High Sierra), which it upgraded itself from Lazarus 2.0.11, ran my project and got told:
"cocoagdiobjects.pas(11,34) Fatal: Can't find unit CocoaGDIObjects used by CocoaPrivate"

Works for me on High Sierra 10.13.6 and Xcode 10.1 - I just removed Lazarus 2.0.4 from /Developer and installed FPC 3.2.0 (leaving 3.0.4) and then installed Lazarus 2.0.12 and compiled a new project with just a Quit button. All good.
Title: Re: Lazarus Release 2.0.12
Post by: VTwin on February 26, 2021, 04:48:24 am
I did not have to reinstall FPC, it worked fine.
Title: Re: Lazarus Release 2.0.12
Post by: Igor Kokarev on February 26, 2021, 08:29:59 am
Thanks for all your hard work on Lazarus!
Title: Re: Lazarus Release 2.0.12
Post by: Alextp on February 26, 2021, 09:29:13 am
Thanks for the release!
Title: Re: Lazarus Release 2.0.12
Post by: JuhaManninen on February 26, 2021, 11:03:56 am
So excited, I downloaded and installed it for my Mac (High Sierra), which it upgraded itself from Lazarus 2.0.11, ran my project and got told:
"cocoagdiobjects.pas(11,34) Fatal: Can't find unit CocoaGDIObjects used by CocoaPrivate"

Not a great start.

EDIT: Followed the instructions to completely remove Lazarus, then started again. Same error. Gone back to 2.0.11, which works fine.
Isn't 2.0.11 the branch from where 2.0.12 was built?
They should be identical now.
Title: Re: Lazarus Release 2.0.12 problems.
Post by: JuhaManninen on February 26, 2021, 11:12:01 am
I have two problems with the Win32 version:
-The first is extremely annoying; but not a deal breaker: the Source Editor is quite sluggish, 2.0.10 wasn't when editing the same code base.
-It tends to hang when closing: when I first installed it and rebuilt it to install packages it refused to close until I forced it via Windows, and has refused every time I tried to get it to rebuild without hanging: I have to force it through Windows or Task Manager. It builds properly: the hang occurs when the IDE is closing itself to restart. The problem is also present, intermittently, when building any of my own code, those unlucky times when I close it the window goes away, but I can see the process wasting CPU cycles until I kill it with Task Manager or similar.
You can see the merged revisions here :
 https://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch#Fixes_for_2.0.12_.28merged.29
It is unlikely that any of those caused a big slowdown or hang. Such things have happened for unknown reasons also in the past.
I recommend you try Lazarus trunk. It is much ahead of fixes_2.0.x branch now. It also has some speed optimizations.
Soon a branch for 2.2 will be forked from it.
Title: Re: Lazarus Release 2.0.12
Post by: geraldholdsworth on February 26, 2021, 12:26:40 pm
Isn't 2.0.11 the branch from where 2.0.12 was built?
They should be identical now.

No idea. It's odd.
The strange thing is, it reported the error AND opened the unit it couldn't find!
Title: Re: Lazarus Release 2.0.12
Post by: Martin_fr on February 26, 2021, 02:28:09 pm
Isn't 2.0.11 the branch from where 2.0.12 was built?
They should be identical now.

No idea. It's odd.
The strange thing is, it reported the error AND opened the unit it couldn't find!

Indeed, 11 is odd  ;) :)

But yes, 2.0.11 is the branch (it is now 2.0.13). 

2.0.11 is not a single revision, it is the collective name for all the commits in between 2.0.10 and 2.0.12. S
So how different it is, depends on how old it was. (So it changes a lot about a week before release)


Anyway: go to menu: Tools > Configure build lazarus
Check: "Clean all"
Rebuild

See if that helps.

Errors like you got, can happen because of conflicts with old "ppu" files. Normally that is taken care of automatically, but....
Title: Re: Lazarus Release 2.0.12
Post by: geraldholdsworth on February 26, 2021, 03:42:07 pm
Anyway: go to menu: Tools > Configure build lazarus
Check: "Clean all"
Rebuild

See if that helps.
Yep, that did it...thank you.

I'll have to remember that trick.
Title: Re: Lazarus Release 2.0.12
Post by: vfclists on February 26, 2021, 04:52:20 pm
Thanks to the Lazarus development team for the latest release.

Some of us are not that expressive and may not show up here often, but we really appreciate your work.
Title: Re: Lazarus Release 2.0.12
Post by: geraldholdsworth on February 26, 2021, 04:58:37 pm
Thanks to the Lazarus development team for the latest release.

Some of us are not that expressive and may not show up here often, but we really appreciate your work.
Amen to that - in my opinion, although it lacks way behind Delphi (which obviously is a prohibitive cost for most of us), it is also way ahead of Delphi in having a native IDE for each platform - no more having to code on a Windows machine, then port across to a Mac (for example). Except for a few remaining projects I have in Delphi, I can't see myself going back.
Title: Re: Lazarus Release 2.0.12 problems.
Post by: Bloodbat on February 26, 2021, 10:16:03 pm
I have two problems with the Win32 version:
-The first is extremely annoying; but not a deal breaker: the Source Editor is quite sluggish, 2.0.10 wasn't when editing the same code base.
-It tends to hang when closing: when I first installed it and rebuilt it to install packages it refused to close until I forced it via Windows, and has refused every time I tried to get it to rebuild without hanging: I have to force it through Windows or Task Manager. It builds properly: the hang occurs when the IDE is closing itself to restart. The problem is also present, intermittently, when building any of my own code, those unlucky times when I close it the window goes away, but I can see the process wasting CPU cycles until I kill it with Task Manager or similar.
You can see the merged revisions here :
 https://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch#Fixes_for_2.0.12_.28merged.29
It is unlikely that any of those caused a big slowdown or hang. Such things have happened for unknown reasons also in the past.
I recommend you try Lazarus trunk. It is much ahead of fixes_2.0.x branch now. It also has some speed optimizations.
Soon a branch for 2.2 will be forked from it.

I checked that list and also thought none of those could cause those problems; but who knows?
I've tried Lazarus trunk in the past; but reverted to stable releases since I recall Lazarus refused to build at some point and was too busy to deal with that. I hope a 2.2 release comes sooner rather than later.
Thanks for the advice anyway :)
Title: Re: Lazarus Release 2.0.12 problems.
Post by: Martin_fr on February 27, 2021, 12:02:08 am
Thanks to the team for all the work and the new release. :)

I have two problems with the Win32 version:
-The first is extremely annoying; but not a deal breaker: the Source Editor is quite sluggish, 2.0.10 wasn't when editing the same code base.
-It tends to hang when closing: when I first installed it and rebuilt it to install packages it refused to close until I forced it via Windows, and has refused every time I tried to get it to rebuild without hanging: I have to force it through Windows or Task Manager. It builds properly: the hang occurs when the IDE is closing itself to restart. The problem is also present, intermittently, when building any of my own code, those unlucky times when I close it the window goes away, but I can see the process wasting CPU cycles until I kill it with Task Manager or similar.

I can't reproduce it here.

But the symptoms description would make me thing, that the IDE is running some background task.
Some tasks in the IDE, take a long time, and do a lot of Application.ProcessMessages. The the rest of the IDE only works during those ProcessMessages, and the first thing you will note is the editor slows down.
Of course the background task could also prevent the IDE from exiting.... (maybe the task goes wrong, and loops forever)

Now one scenario with ProcessMessages it the Debugger (the gdb based one, not fpdebug). However that should play nice on exit. And also that has not changed between versions.

If you run "Search in Files" that could also happen.

But that are all scenarios that do not apply all the time, and that you need to trigger.

I saw another occurrence in CheckLfmDlg. Not sure when this happens.
And there may be more in other parts of the source.
Maybe codetools do some work.


Please start the IDE with --debug-log=c:\log.txt  (or wherever you want the log).
Then submit this logfile.
With a bit of luck, maybe it contains a hint.
Title: Re: Lazarus Release 2.0.12 problems.
Post by: Bloodbat on February 27, 2021, 11:28:39 am
Thanks to the team for all the work and the new release. :)

I have two problems with the Win32 version:
-The first is extremely annoying; but not a deal breaker: the Source Editor is quite sluggish, 2.0.10 wasn't when editing the same code base.
-It tends to hang when closing: when I first installed it and rebuilt it to install packages it refused to close until I forced it via Windows, and has refused every time I tried to get it to rebuild without hanging: I have to force it through Windows or Task Manager. It builds properly: the hang occurs when the IDE is closing itself to restart. The problem is also present, intermittently, when building any of my own code, those unlucky times when I close it the window goes away, but I can see the process wasting CPU cycles until I kill it with Task Manager or similar.

I can't reproduce it here.

But the symptoms description would make me thing, that the IDE is running some background task.
Some tasks in the IDE, take a long time, and do a lot of Application.ProcessMessages. The the rest of the IDE only works during those ProcessMessages, and the first thing you will note is the editor slows down.
Of course the background task could also prevent the IDE from exiting.... (maybe the task goes wrong, and loops forever)

Now one scenario with ProcessMessages it the Debugger (the gdb based one, not fpdebug). However that should play nice on exit. And also that has not changed between versions.

If you run "Search in Files" that could also happen.

But that are all scenarios that do not apply all the time, and that you need to trigger.

I saw another occurrence in CheckLfmDlg. Not sure when this happens.
And there may be more in other parts of the source.
Maybe codetools do some work.


Please start the IDE with --debug-log=c:\log.txt  (or wherever you want the log).
Then submit this logfile.
With a bit of luck, maybe it contains a hint.

I did some tests with the conditions you mentioned, haven't been able to hang the IDE after building several projects after using Search in files and running under the GDB debugger.
The consistent hang I can reproduce is after rebuilding the IDE: it managed to succesfully exit once, because the process only really linked, when I cleaned it and rebuilt it, it hanged again, I attach, as you requested, the log.txt file, such as it is: it just stops logging mid word.
The editor seemed responsive as usual again, so if the only problem is the IDE not killing itself properly when being rebuilt, it's no longer a deal breaker for me.
I hope some of this helps, and I'm very grateful for your assistance.
Title: Re: Lazarus Release 2.0.12 problems.
Post by: funlw65 on February 27, 2021, 12:36:04 pm
Thanks to the team for all the work and the new release. :)

I have two problems with the Win32 version:
-The first is extremely annoying; but not a deal breaker: the Source Editor is quite sluggish, 2.0.10 wasn't when editing the same code base.
-It tends to hang when closing: when I first installed it and rebuilt it to install packages it refused to close until I forced it via Windows, and has refused every time I tried to get it to rebuild without hanging: I have to force it through Windows or Task Manager. It builds properly: the hang occurs when the IDE is closing itself to restart. The problem is also present, intermittently, when building any of my own code, those unlucky times when I close it the window goes away, but I can see the process wasting CPU cycles until I kill it with Task Manager or similar.

I can't reproduce it here.

But the symptoms description would make me thing, that the IDE is running some background task.
Some tasks in the IDE, take a long time, and do a lot of Application.ProcessMessages. The the rest of the IDE only works during those ProcessMessages, and the first thing you will note is the editor slows down.
Of course the background task could also prevent the IDE from exiting.... (maybe the task goes wrong, and loops forever)

Now one scenario with ProcessMessages it the Debugger (the gdb based one, not fpdebug). However that should play nice on exit. And also that has not changed between versions.

If you run "Search in Files" that could also happen.

But that are all scenarios that do not apply all the time, and that you need to trigger.

I saw another occurrence in CheckLfmDlg. Not sure when this happens.
And there may be more in other parts of the source.
Maybe codetools do some work.


Please start the IDE with --debug-log=c:\log.txt  (or wherever you want the log).
Then submit this logfile.
With a bit of luck, maybe it contains a hint.

I did some tests with the conditions you mentioned, haven't been able to hang the IDE after building several projects after using Search in files and running under the GDB debugger.
The consistent hang I can reproduce is after rebuilding the IDE: it managed to succesfully exit once, because the process only really linked, when I cleaned it and rebuilt it, it hanged again, I attach, as you requested, the log.txt file, such as it is: it just stops logging mid word.
The editor seemed responsive as usual again, so if the only problem is the IDE not killing itself properly when being rebuilt, it's no longer a deal breaker for me.
I hope some of this helps, and I'm very grateful for your assistance.

Also after rebuilding Lazarus several times (in 4Gb RAM memory, and running Firefox in background, playing a movie - I want to say that probably there was very low memory available), the one build based on Qt5 widgetset crashes again when mouse pointer hover over a speedbutton. Unfortunately, I hadn't built for debug and the bastard plays hide and seek when I get prepared :(

For the one build with gtk widgetset, In Window menu, going with the mouse pointer back an forth over the "Tabs for project(x)" option, the checkbox from its left gets checked at first pass, and unchecked at the second pass, without click, just passing with the pointer. I thought my touchpad is crazy so I installed an USB mouse. Same behavior. 
Title: Re: Lazarus Release 2.0.12
Post by: Martin_fr on February 27, 2021, 01:12:45 pm
When you try to close the IDE while it is building, does it ask: "Abort Compile?"


About memory: If you have restrained memory try to avoid smartlinking / do not specify -XX

Smart-linking the entire IDE, with low memory, I have personally experienced that taking up to 10 minutes.
Title: Re: Lazarus Release 2.0.12
Post by: funlw65 on February 27, 2021, 01:28:45 pm
No, it finishes compiling and restarts.
Title: Re: Lazarus Release 2.0.12
Post by: Martin_fr on February 27, 2021, 01:41:34 pm
Ah, ok. I also checked the log, you did not smart link.
Strange...

Title: Re: Lazarus Release 2.0.12
Post by: funlw65 on February 27, 2021, 01:43:18 pm
Sorry Martin, I think I answered in place of another user...

Edit: But no smart linking also.
Title: Re: Lazarus Release 2.0.12
Post by: Martin_fr on February 27, 2021, 02:13:18 pm
Sorry Martin, I think I answered in place of another user...
Ups...
My fault for not looking.

Quote
For the one build with gtk widgetset, In Window menu, going with the mouse pointer back an forth over the "Tabs for project(x)" option, the checkbox from its left gets checked at first pass, and unchecked at the second pass, without click, just passing with the pointer. I thought my touchpad is crazy so I installed an USB mouse. Same behavior. 
The chceckbox should indicate the active tab. So if the tab did not change...

That is probably a gtk issue. But I can't test that now. The only way to uncheck it, should be to check another unit.
Title: Re: Lazarus Release 2.0.12 problems.
Post by: Martin_fr on February 27, 2021, 02:39:19 pm
I did some tests with the conditions you mentioned, haven't been able to hang the IDE after building several projects after using Search in files and running under the GDB debugger.
The consistent hang I can reproduce is after rebuilding the IDE: it managed to succesfully exit once, because the process only really linked, when I cleaned it and rebuilt it, it hanged again, I attach, as you requested, the log.txt file, such as it is: it just stops logging mid word.

"it just stops logging mid word"
And that is in the middle of compiling. Unless there is a big chunk of the log, that was not written to disk.

When it happens again, look at the title of the IDE main window (the window with the menu): It should still say "compiling", and the "red square >stop< button" should still be active.

If that happens, and there is no progress in the "messages" windows, then open the task monitor, and check if there is any fpc.exe and/or ppc___.exe (depending on bitness that is ppci386.exe or ppcx86.exe or ...)



If  it does not say "compiling", (and the red button is disabled) then it finished compiling, and it should try to restart.

If it hangs during restart => you can test that by going to Tools > "Configure build lazarus" and  un-check the "restart after building IDE" checkbox. (Then you have to restart yourself at some point).



You can build your IDE with -WC (specified in "Configure build lazarus"). Then do not use --debug-log.
The IDE will now open with a console window, and all logging happens there. This often has less caching going on, so more of the log-output may be seen. But I would check the above things first.



Last not least.
The IDE has a feature to check if it is running. Even if switched off, it still does some check...

If the IDE hangs during startup, check in the task manager how many lazarus.exe and how many startlazarus.exe there are.

You can also locate your temp folder e.g. C:\Users\USERNAME\AppData\Local\Temp
and (when the IDE is NOT running) delete all files *_LazarusMain*
Title: Re: Lazarus Release 2.0.12
Post by: kegge13 on March 01, 2021, 10:45:05 am
Thanks for the good work.

With v2.0.12 I got:
tachartaxis.pas(441,41) Warning: Symbol "OnMarkToText" is deprecated: "Use "OnGetMarkText"
tagraph.pas(635,84) Warning: Symbol "OnBeforeDrawBackground" is deprecated: "Use OnBeforeCustomDrawBackground instead"
taseries.pas(63,42) Warning: Symbol "TBeforeDrawBarEvent" is deprecated
tatools.pas(2135,21) Warning: Symbol "OnDraw" is deprecated: "Use OnCustomDraw"
wellform.pas(2014,32) Warning: Symbol "OnMarkToText" is deprecated: "Use "OnGetMarkText"

When the OnGetMarkText event is set at design-time it will not load anymore in v2.0.10. The other way around setting OnMarkToText at design-time in v2.0.10 would also fail in v2.0.12. The object inspector does not support both events in one of these versions. The workaround is to set the event at runtime in the FormCreate. I could not find anything in the release notes referring to this change.
Title: Re: Lazarus Release 2.0.12
Post by: wp on March 01, 2021, 11:01:48 am
I guess these "deprecated" tags slipped into v2.0.12 by accident. The events that you mention are related to new features which will be in the product in v2.2, and the deprecated events/methods/properties will be removed in Laz 2.3
Title: Re: Lazarus Release 2.0.12
Post by: kegge13 on March 01, 2021, 01:50:14 pm
I guess these "deprecated" tags slipped into v2.0.12 by accident. The events that you mention are related to new features which will be in the product in v2.2, and the deprecated events/methods/properties will be removed in Laz 2.3

I'm sorry to have created some confusion. The now published production version of Laz 2.0.12 only offers the TChartAxis.OnMarkToText event in the Object Inspector. However, the test release one week earlier did only offer OnGetMarkText and not OnMarkToText in the Object Inspector. Therefore I could not open this project anymore in v2.0.10 when I set OnGetMarkText at design time as experiment.

When setting at runtime, OnGetMarkText is available and functional. The only difference at this moment appears te be the added "Sender: TObject;" in the parameter list.
Title: Re: Lazarus Release 2.0.12
Post by: wp on March 01, 2021, 03:20:15 pm
I now looked at it in more detail and cannot find a difference between 2.0.10 and 2.0.12 regarding these events... Both versions do have a TChartAxis.OnMarkToText, but no OnGetMarkText, and there is no "deprecated" message here either.

Did you open your project with  Lazarus trunk in between? It is clear that the new version can introduce new properties and events, and when you return to a release version they can lead to issues.
Title: Re: Lazarus Release 2.0.12 problems.
Post by: Bloodbat on March 01, 2021, 10:52:00 pm
I did some tests with the conditions you mentioned, haven't been able to hang the IDE after building several projects after using Search in files and running under the GDB debugger.
The consistent hang I can reproduce is after rebuilding the IDE: it managed to succesfully exit once, because the process only really linked, when I cleaned it and rebuilt it, it hanged again, I attach, as you requested, the log.txt file, such as it is: it just stops logging mid word.

"it just stops logging mid word"
And that is in the middle of compiling. Unless there is a big chunk of the log, that was not written to disk.

When it happens again, look at the title of the IDE main window (the window with the menu): It should still say "compiling", and the "red square >stop< button" should still be active.

If that happens, and there is no progress in the "messages" windows, then open the task monitor, and check if there is any fpc.exe and/or ppc___.exe (depending on bitness that is ppci386.exe or ppcx86.exe or ...)



If  it does not say "compiling", (and the red button is disabled) then it finished compiling, and it should try to restart.

If it hangs during restart => you can test that by going to Tools > "Configure build lazarus" and  un-check the "restart after building IDE" checkbox. (Then you have to restart yourself at some point).



You can build your IDE with -WC (specified in "Configure build lazarus"). Then do not use --debug-log.
The IDE will now open with a console window, and all logging happens there. This often has less caching going on, so more of the log-output may be seen. But I would check the above things first.



Last not least.
The IDE has a feature to check if it is running. Even if switched off, it still does some check...

If the IDE hangs during startup, check in the task manager how many lazarus.exe and how many startlazarus.exe there are.

You can also locate your temp folder e.g. C:\Users\USERNAME\AppData\Local\Temp
and (when the IDE is NOT running) delete all files *_LazarusMain*

I just found that if I leave it there long enough it will, indeed restart, looking at the process with Process Explorer it shows no processes as children nor is it really pushing the CPU... it's just sitting there until it finally decides to properly kill itself and call startlazarus.exe.
I think the editor is mostly responsive so... I guess all my problems are solved... somehow.
Thanks for all your help.
Title: Re: Lazarus Release 2.0.12
Post by: kegge13 on March 02, 2021, 11:26:24 am
I now looked at it in more detail and cannot find a difference between 2.0.10 and 2.0.12 regarding these events... Both versions do have a TChartAxis.OnMarkToText, but no OnGetMarkText, and there is no "deprecated" message here either.

Did you open your project with  Lazarus trunk in between? It is clear that the new version can introduce new properties and events, and when you return to a release version they can lead to issues.

Yes, on february 21, I pulled the svn of the then pre-production v2.0.12 as my contribution to test it. There I got those deprecated messages. At that moment I created this compiler switch:
Code: Text  [Select][+][-]
  1. {$if declared(TChartGetAxisMarkTextEvent)}
  2.  {$DEFINE LCL_2-0-12_Up}
  3. {$endif}
  4.  
  5. FormCreate:
  6. ...
  7. {$IFDEF LCL_2-0-12_Up}
  8. DataPlot.AxisList[DefChartAxR].OnGetMarkText:= @RightAxisGetMarkText;
  9. {$ELSE}
  10. DataPlot.AxisList[DefChartAxR].OnMarkToText := @AxisMarkToText;
  11. {$ENDIF}
  12. ...
  13.  

Today I stepped though the formcreate in the debugger. It suggests that  "LCL_2-0-12_Up" is defined because the {$ELSE} part is presented as grayed out, but actually @AxisMarkToText is used by the code. So TChartGetAxisMarkTextEvent is not seen as declared in the production build of v2.0.12. Again my apologies for the created confusion.
Title: Re: Lazarus Release 2.0.12
Post by: JuhaManninen on March 02, 2021, 12:00:04 pm
Yes, on february 21, I pulled the svn of the then pre-production v2.0.12 as my contribution to test it.
You accidentally pulled Lazarus trunk (development version). That is my guess anyways.
Title: Re: Lazarus Release 2.0.12
Post by: wittbo on March 02, 2021, 08:07:21 pm
First:  Thanks a lot for this new release and your work done.

When testing my applications with the new release (macOS s.b.), I noticed just these same problems as for 2.0.10:
-  OpenSSL: connect to some websites fails
-  Application does not start from IDE

For 2.0.10 I made a little script containing the necessary modifications (s. attachments). If I apply the same modifications for 2.0.12, everything is working as expected.
Title: Re: Lazarus Release 2.0.12
Post by: Martin_fr on March 02, 2021, 08:40:59 pm
For 2.0.10 I made a little script containing the necessary modifications (s. attachments). If I apply the same modifications for 2.0.12, everything is working as expected.

You might want to make a bug report about that, please.
Title: Re: Lazarus Release 2.0.12
Post by: trev on March 03, 2021, 04:27:31 am
When testing my applications with the new release (macOS s.b.), I noticed just these same problems as for 2.0.10:
-  OpenSSL: connect to some websites fails

I reported this on the BugTracker for FPC here (https://bugs.freepascal.org/view.php?id=37977). It has been fixed in trunk.

Beware that your solution is using the old, insecure and out of date OpenSSL libraries and not the new and more secure and more up-to-date (but still outdated  LibreSSL libraries.

Also note that using the supplied libraries was deprecated by Apple in Mac OS X 10.7 with best practice suggested to be including the needed libraries in your own application bundle (ie you cannot rely on the libraries being included into the future as Apple advocated  using their own Secure Transport API (https://developer.apple.com/documentation/security/secure_transport) which itself has now been deprecated in favour of the macOS 10.14 Network Framework (https://developer.apple.com/documentation/network).

Quote
-  Application does not start from IDE

I reported this in the Lazarus BugTracker here (https://bugs.freepascal.org/view.php?id=36780). It has been fixed in trunk.
Title: Re: Lazarus Release 2.0.12
Post by: Martin_fr on March 04, 2021, 07:32:30 pm
Edited: removed external link - commercial / not pascal related
Title: Re: Lazarus Release 2.0.12
Post by: Martin_fr on March 04, 2021, 07:35:23 pm
Quote
slow editor
32 or 64 bit  / Windows version?

I did install both, rebuild them, and had no trouble.
However I work mainly with trunk, so I have no tests over longer time.
Title: Re: Lazarus Release 2.0.12
Post by: T on March 06, 2021, 06:45:59 pm
BIG Thanks to everyone who took part in the preparation of the new Lazarus release!!!

I have successfully upgraded to v.2.0.12 win64 / on Win10.
Title: Re: Lazarus Release 2.0.12
Post by: cxj on April 02, 2021, 03:44:16 am
Lazarus started from 2.0.10. I reported syntax errors when compiling and installing unidac. I just tried 2.0.12, but the problem still exists. Others also reported that there was a bug from 2.0.10. 2.0.12 also reported an error when installing dock control!
Title: Re: Lazarus Release 2.0.12
Post by: trev on April 02, 2021, 07:32:36 am
Have you reported the UniDac syntax errors to DevArt who claim Lazarus compatility?
TinyPortal © 2005-2018