Recent

Author Topic: Lazarus Release 2.0.0  (Read 75756 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5635
    • wiki
Re: Lazarus Release 2.0.0
« Reply #60 on: February 08, 2019, 05:10:19 pm »
Yes then it happens. Working on it.

piola

  • New Member
  • *
  • Posts: 32
Re: Lazarus Release 2.0.0
« Reply #61 on: February 08, 2019, 08:00:21 pm »
In 2.0, I am observing severe problems when debugging. Is there someone else having problems?

My setup is Win x64, using Lazarus x64, cross-compiling to Win32.

In the 2.0 release, the "evaluate/watch" windows (as well as the tooltip when hovering over a variable) shows only rubbish data for strings. Records are displayed as "no symbol in current context". Only very basic types (integer, float) seem to be ok. This hasn't occured in the release candidates. (I already tried various dwarf2/dwarf3 settings, but without success.)

In addition to that, the debugger crashes very frequently. It is enough to have a single breakpoint at which the program execution is paused and then removing that breakpoint. Setting or removing breakpoints while the program is running is a no-go and almost always crashes the debugger. These problems have occured only rarely in 1.8, but were already present in the 2.0 release candidates.

Is there something more I can try?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5635
    • wiki
Re: Lazarus Release 2.0.0
« Reply #62 on: February 08, 2019, 09:55:34 pm »
In 2.0, I am observing severe problems when debugging. Is there someone else having problems?

My setup is Win x64, using Lazarus x64, cross-compiling to Win32.

In the 2.0 release, the "evaluate/watch" windows (as well as the tooltip when hovering over a variable) shows only rubbish data for strings. Records are displayed as "no symbol in current context". Only very basic types (integer, float) seem to be ok. This hasn't occured in the release candidates. (I already tried various dwarf2/dwarf3 settings, but without success.)

In addition to that, the debugger crashes very frequently. It is enough to have a single breakpoint at which the program execution is paused and then removing that breakpoint. Setting or removing breakpoints while the program is running is a no-go and almost always crashes the debugger. These problems have occured only rarely in 1.8, but were already present in the 2.0 release candidates.

Is there something more I can try?
I can't think of any change that would have introduced this. Not on the gdb based debugger.


It would be good if you can get a log of some of the errors.
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session

If watches/locals are botched, you can also open the history window, and export the history. This will allow me to see the watches in my IDE, as you had seen them in yours.

Both, log and history, contain data from your app. In case you have sensitive data, we can discuss sending them privately.

A short sample code may also help.

Also do problems (for each case of problem) apply to:
global var
fields of self
class fields of other classes: foo.somestring
local vars
local vars but accessed from a nested procedure
params
var params

You do not need to test them all, just specify for those that fail in your code.




You can try to use alternative gdb versions.
For 32 bit (including cross compiled to 32 bits) https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Alternative%20GDB/

You can also try to make sure that packages, if they have debug info, use the same type as your project.
GDB's stabs support is declining. But fpc on win32 still defaults to that. And if you change your project settings, packages may still use stabs, and that can be an issue.
Either edit Tools > Configure build IDE: and add -gw for dwarf
Or go to additions and overrides, and create an entry for all package, except project (IIRC *,-#project or similar, search our wiki) and set it to -gw or to -g- if you need no debug info for packages.

LPCVOID

  • Newbie
  • Posts: 1
Re: Lazarus Release 2.0.0
« Reply #63 on: February 09, 2019, 05:23:57 pm »
Thanks a lot, great work guys!

Soob

  • Newbie
  • Posts: 2
Re: Lazarus Release 2.0.0
« Reply #64 on: February 09, 2019, 05:49:06 pm »
I downloaded the new version and I keep getting an error that the file graphtype.pp hasn't been found. On other PC I get message that the file lmessaage.pp is not found. I found them on the internet but the program won't run either.

Does anybody have the same problem? I'm using 64-bit version of Windows 10.

Edit: // I've attached the error so you can see it. Maybe it'll help
« Last Edit: February 09, 2019, 05:57:35 pm by Soob »

m.abudrais

  • New Member
  • *
  • Posts: 42
Re: Lazarus Release 2.0.0
« Reply #65 on: February 09, 2019, 06:20:53 pm »
you have incompatible ppu , i thank that means the file is compiled with different fpc version.
what is the previous  version of lazarus that you installed?
i suggest rebuilding lazarus ide,
or uninstall lazarus and deleting all content of the folder C:\lazarus and then install it again.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3634
  • I like bugs.
Re: Lazarus Release 2.0.0
« Reply #66 on: February 09, 2019, 06:43:50 pm »
Soob, you have leftover units from an old installation.
You must uninstall the old one before installing a new major version. Minor dot release update may succeed without it.

Soob

  • Newbie
  • Posts: 2
Re: Lazarus Release 2.0.0
« Reply #67 on: February 09, 2019, 06:48:10 pm »
Yes, I re-installed Lazarus and it works perfectly now :) thank you

hillfolk

  • Newbie
  • Posts: 1
Re: Lazarus Release 2.0.0
« Reply #68 on: February 10, 2019, 02:53:43 pm »
 :) Thank you for Lazarus Team

scribly

  • Jr. Member
  • **
  • Posts: 68
Re: Lazarus Release 2.0.0
« Reply #69 on: February 10, 2019, 05:35:39 pm »
After some cleanup and only minor adjustments here and there I managed to compile my project(CE) without any issues, and everything seems to be looking fine so far.  No flashing listviews, no instant crashes, po files that don't start with hundreds KB of random garbage

So well done. I'll have to do some testing but I might finally be able to move from 1.6.4 with custom patches to an official build again
(Still have to launch lazarus itself with DPI disabled because it does 'something' to the existing controls when loading a project designed on 96 dpi)

Still hoping to see FPC updated someday as well
Code: [Select]
Fatal: (1018) Compilation aborted
An unhandled exception occurred at $0000000100021F3D:
EListError: List index exceeds bounds (1)
  $0000000100021F3D
  $000000010016712B
  $0000000100167A36
  $00000001001675B3
  $0000000100167832
  $000000010016712B
  $0000000100167A36
  $00000001001675B3
  $0000000100167832
  $000000010016712B
  $0000000100167A36
  $00000001001675B3
  $0000000100167832
  $000000010016712B
  $0000000100167A36
  $00000001001675B3
  $0000000100167832

Error: C:\lazarus200\fpc\3.0.4\bin\x86_64-win64\ppcx64.exe returned an error exitcode
(I heard it was already fixed several years ago, but hasn't made it to the fpc version used here)
« Last Edit: February 11, 2019, 07:58:12 am by scribly »

jamie

  • Hero Member
  • *****
  • Posts: 1993
Re: Lazarus Release 2.0.0
« Reply #70 on: February 10, 2019, 06:45:54 pm »
I just installed the 32 bit version on my W2k machine, it works perfectly!  :D

Thank you men!

VTwin

  • Hero Member
  • *****
  • Posts: 775
  • Former Turbo Pascal 3 user
Re: Lazarus Release 2.0.0
« Reply #71 on: February 11, 2019, 02:58:24 am »
I just installed 2.0.0 Mac and can not run a default program to display a form. Nothing displays, and I can not stop the program, so am forced to to do a hard quit. I installed it in a clean directory.

lazarus-2.0.0-i686-macosx.dmg

The 2.0.0 (now 2.0.1) fixes on svn was running fine.

Anyone having better luck?
« Last Edit: February 11, 2019, 03:29:01 am by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

macOS 10.13.6: Lazarus 2.0 fixes svn 61930 (64 bit Cocoa)
Ubuntu 18.04.3: Lazarus 2.0.4 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.0.4 (64 bit on VBox)
fpc 3.0.4

BeanzMaster

  • Full Member
  • ***
  • Posts: 182
Re: Lazarus Release 2.0.0
« Reply #72 on: February 11, 2019, 01:46:36 pm »
Hi, just downloaded Lazarus 2.0 for windows
Impossible to install Zeos DB components missing ZComponent. Impossible to install SQLite component since have the DLL in system folder  :'(

Have you plane to make an installer for macos 64bits with QT, or do you plane to make one, only when Cocoa will be stable ?

Cheers good work ! ;)

Zoran

  • Hero Member
  • *****
  • Posts: 1460
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Lazarus Release 2.0.0
« Reply #73 on: February 11, 2019, 02:51:51 pm »
Hi, just downloaded Lazarus 2.0 for windows
Impossible to install Zeos DB components missing ZComponent. Impossible to install SQLite component since have the DLL in system folder  :'(

Have you plane to make an installer for macos 64bits with QT, or do you plane to make one, only when Cocoa will be stable ?

Cheers good work ! ;)

There must be some specific problem in your system. I have no problem with Zeos installation in Windows 8 and 10, and Linux (mint xfce, 18.3, 19.1).

I don't use SQLite, so I have no idea about it.

How did you install Zeos? Maybe some locations are messed up from previous install. Try this:

1. First, make sure zeos is not installed (in main menu go to Package->Install/Uninstall packages and make sure to remove all five zeos packages -- that is zcore, zplain, zdbc, zparsesql and zcomponent).
2. Make Lazarus "forget" these packages (go to Package->Package links and search for zeos, then check all five zeos packages and click on "Delete selected" button). You might see more than five links there (if you tried different version of Zeos) -- that will make problem, IDE might mix packages with different versions -- just remove them all here.
3. Rebuild the IDE.
4. Go to Package->Open package file. Open five zeos packages from the same directory in the ide. In the zcomponent window click on install button and rebuild Lazarus again.

Did it help?

avra

  • Hero Member
  • *****
  • Posts: 1689
    • Additional info
Re: Lazarus Release 2.0.0
« Reply #74 on: February 11, 2019, 03:09:07 pm »
Impossible to install SQLite component since have the DLL in system folder  :'(
Put sqlite3.dll of propper bitness into directory of your Lazarus executable.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib