Recent

Author Topic: Lazarus Release 2.0.12  (Read 22006 times)

funlw65

  • Jr. Member
  • **
  • Posts: 70
    • Visual Pin Configurator for Nucleo-L152RE
Re: Lazarus Release 2.0.12
« Reply #30 on: February 27, 2021, 01:28:45 pm »
No, it finishes compiling and restarts.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7098
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.0.12
« Reply #31 on: February 27, 2021, 01:41:34 pm »
Ah, ok. I also checked the log, you did not smart link.
Strange...


funlw65

  • Jr. Member
  • **
  • Posts: 70
    • Visual Pin Configurator for Nucleo-L152RE
Re: Lazarus Release 2.0.12
« Reply #32 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.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7098
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.0.12
« Reply #33 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.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7098
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.0.12 problems.
« Reply #34 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*

kegge13

  • New Member
  • *
  • Posts: 41
    • the BistroMath project
Re: Lazarus Release 2.0.12
« Reply #35 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.

wp

  • Hero Member
  • *****
  • Posts: 8410
Re: Lazarus Release 2.0.12
« Reply #36 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
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

kegge13

  • New Member
  • *
  • Posts: 41
    • the BistroMath project
Re: Lazarus Release 2.0.12
« Reply #37 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.

wp

  • Hero Member
  • *****
  • Posts: 8410
Re: Lazarus Release 2.0.12
« Reply #38 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.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

Bloodbat

  • New member
  • *
  • Posts: 7
Re: Lazarus Release 2.0.12 problems.
« Reply #39 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.

kegge13

  • New Member
  • *
  • Posts: 41
    • the BistroMath project
Re: Lazarus Release 2.0.12
« Reply #40 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.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4002
  • I like bugs.
Re: Lazarus Release 2.0.12
« Reply #41 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.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

wittbo

  • Full Member
  • ***
  • Posts: 144
Re: Lazarus Release 2.0.12
« Reply #42 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.
-wittbo-
MBAir with MacOS 10.14.6 / Lazarus 2.0.10
iMac with MacOS 10.13.6 / Lazarus 2.0.2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7098
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.0.12
« Reply #43 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.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1444
  • Former Delphi 1-7, 10.2 user
Re: Lazarus Release 2.0.12
« Reply #44 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. 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 which itself has now been deprecated in favour of the macOS 10.14 Network Framework.

Quote
-  Application does not start from IDE

I reported this in the Lazarus BugTracker here. It has been fixed in trunk.
« Last Edit: March 20, 2021, 04:48:48 am by trev »
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65070 FPC 3.3.1 r49223 macOS 11.2.3 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

 

TinyPortal © 2005-2018