Recent

Author Topic: Lazarus Release 2.0.12  (Read 41700 times)

funlw65

  • Full Member
  • ***
  • Posts: 148
    • Visual Pin Configurator for Nucleo 64pin boards
Re: Lazarus Release 2.0.12
« Reply #30 on: February 27, 2021, 01:28:45 pm »
No, it finishes compiling and restarts.
FreePascal 3.2.2, C 10.2.1, D 1.24 under Linux(init,musl,glibc), DragonflyBSD, NetBSD
gui: gtk2, qt5, raylib4.x+raygui3.x, nanovg 
tui: freevision, tvision2, termbox2+widgets, finalcut
db: typhoon-1.11...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • 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

  • Full Member
  • ***
  • Posts: 148
    • Visual Pin Configurator for Nucleo 64pin boards
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.
FreePascal 3.2.2, C 10.2.1, D 1.24 under Linux(init,musl,glibc), DragonflyBSD, NetBSD
gui: gtk2, qt5, raylib4.x+raygui3.x, nanovg 
tui: freevision, tvision2, termbox2+widgets, finalcut
db: typhoon-1.11...

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • 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: 9754
  • 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: 45
    • 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: 11830
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

kegge13

  • New Member
  • *
  • Posts: 45
    • 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: 11830
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.

Bloodbat

  • New Member
  • *
  • Posts: 11
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: 45
    • 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: 4458
  • 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: 150
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.2.4
MacStudio with MacOS 13.0.1 / Lazarus 2.2.4

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • 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: 2020
  • 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 »

 

TinyPortal © 2005-2018