Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-02

Project Groups error - "Invalid floating point operation"

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I've just upgrade my Lazarus to the latest trunk revision on my native FreeBSD system, and in a Linux VM. On FreeBSD the IDE seems to work, and I can use Project Groups.

In the VM I get instant IDE crash with the error message "Invalid floating point operation". I know about previous "index out of bounds" errors, which is believed to be caused by various installed packages. I must add that my Lazarus in the Linux VM has a lot more packages installed than the copy on FreeBSD.

In both cases I used 64-bit FPC v2.6.4 to compile Lazarus. I did a 'make clean' before I did a 'make bigide', and then a "Options -> Build IDE..." to get my custom installed packages.

Anybody else see this error yet?

I did some more testing. As soon as I remove "project groups" package, then the IDE runs fine with my collection of installed packages. Install "project groups", and then I get this error again at startup.

========================================================== ERROR in LCL: TIDEMenuSection.UpdateNeedBottomSeparator inconsistency Creating gdb catchable error:

$0000000000AB2533 line 720 of lazloggerbase.pas
$000000000099F48E line 1458 of lclproc.pas
$000000000099C21B line 903 of lclproc.pas
$0000000000F83D21 line 1073 of menuintf.pas
$0000000000F833AE line 1165 of menuintf.pas
$0000000000F83276 line 1148 of menuintf.pas
$0000000000F855DA line 1276 of menuintf.pas
$0000000000F855D1 line 1272 of menuintf.pas
$0000000000F85CE9 line 1352 of menuintf.pas
Hint: (lazarus) [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE Hint: (lazarus) [TMainIDE.Destroy] END
[FORMS.PP] ExceptionOccurred
Sender=EInvalidOp
Exception=Invalid floating point operation
Stack trace:
$000000000099C24C line 904 of lclproc.pas
$0000000000F83D21 line 1073 of menuintf.pas
$0000000000F833AE line 1165 of menuintf.pas
$0000000000F83276 line 1148 of menuintf.pas
$0000000000F855DA line 1276 of menuintf.pas
$0000000000F855D1 line 1272 of menuintf.pas
$0000000000F85CE9 line 1352 of menuintf.pas
$0000000000F85B60 line 1341 of menuintf.pas
$0000000000F80A70 line 523 of menuintf.pas
$0000000001F0526C line 365 of reglazdatadict.pp
$000000000113920E line 5436 of ../packager/packagesystem.pas $0000000001113802 line 1814 of ../packager/packagesystem.pas $000000000170AC80 line 55 of lazaruspackageintf.pas $0000000000A040A7 line 18 of lazdatadict.pas
$000000000113920E line 5436 of ../packager/packagesystem.pas $0000000001138F99 line 5402 of ../packager/packagesystem.pas $0000000001143352 line 1580 of ../packager/pkgmanager.pas TApplication.HandleException Invalid floating point operation Stack trace:
$000000000099C24C line 904 of lclproc.pas
$0000000000F83D21 line 1073 of menuintf.pas
$0000000000F833AE line 1165 of menuintf.pas
$0000000000F83276 line 1148 of menuintf.pas
$0000000000F855DA line 1276 of menuintf.pas
$0000000000F855D1 line 1272 of menuintf.pas
$0000000000F85CE9 line 1352 of menuintf.pas
$0000000000F85B60 line 1341 of menuintf.pas
$0000000000F80A70 line 523 of menuintf.pas
$0000000001F0526C line 365 of reglazdatadict.pp
$000000000113920E line 5436 of ../packager/packagesystem.pas $0000000001113802 line 1814 of ../packager/packagesystem.pas $000000000170AC80 line 55 of lazaruspackageintf.pas $0000000000A040A7 line 18 of lazdatadict.pas
$000000000113920E line 5436 of ../packager/packagesystem.pas $0000000001138F99 line 5402 of ../packager/packagesystem.pas $0000000001143352 line 1580 of ../packager/pkgmanager.pas

==========================================================

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Graeme Geldenhuys
to Mattias Gaertner
Mattias Gaertner wrote
Yes. There seems to be a bug in the IDE menu merging code. It happens only with some combinations of installed packages.

Thanks. Reading old messages from Michael van Canneyt I tried what he suggested, but uninstalling the DataDict packages, but that meant I get an "Exception" a slight change. I then, as a test, backed up my ~/.lazarus/ profile directory and started a completely new one. With the last executable giving me the "Exception" message, using a brand new profile, the IDE started up without problems.

So it seems like configuration settings could also play a roll in this issue.

I'll step by step add my custom configuration settings back in and see what happens.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Jesus Reyes A.
to Graeme Geldenhuys

En Thu, 25 Feb 2016 09:28:47 -0600, Graeme Geldenhuys escribi?:

Show quoted text 20 lines
On 2016-02-25 15:13, Mattias Gaertner wrote: > Yes. There seems to be a bug in the IDE menu merging code. It happens > only with some combinations of installed packages. Thanks. Reading old messages from Michael van Canneyt I tried what he suggested, but uninstalling the DataDict packages, but that meant I get an "Exception" a slight change. I then, as a test, backed up my ~/.lazarus/ profile directory and started a completely new one. With the last executable giving me the "Exception" message, using a brand new profile, the IDE started up without problems. So it seems like configuration settings could also play a roll in this issue. I'll step by step add my custom configuration settings back in and see what happens. Regards, - Graeme -

The combination of packages that triggers this problem is lazdatadict+lazprojectgroups,
the problem appears only when the most recent project groups list is empty (this is when the MRPG submenu is hidden). The problem is an inconsistency on the counts of menu items between some internal list and the physical "project" menu items.

The issue has already a report:
http://bugs.freepascal.org/view.php?id=29675

For myself I fixed the problem here but it has a side effect that prevents me committing the patch, the main menu appears inverted: Help, Windows, Tools, etc... Search, Edit, Files. :)

Jesus Reyes A.

Reply by email

Graeme Geldenhuys
to Jesus Reyes A.
Jesus Reyes A. wrote
The combination of packages that triggers this problem is lazdatadict+lazprojectgroups,

I'll move my previous profile directory back and retest.

The issue has already a report: http://bugs.freepascal.org/view.php?id=29675

Thanks for the reference, I'll monitor the issue.

It seems the Project Groups package has memory leak to boot as well. I've just reported that:

http://bugs.freepascal.org/view.php?id=29725

me committing the patch, the main menu appears inverted: Help, Windows, Tools, etc... Search, Edit, Files. :)

Apply your patch twice, then the menus should be inverted once more - thus back to normal. ;-)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Graeme Geldenhuys
to Jesus Reyes A.: En Thu, 25 Feb 2016 09:28:47 -0600, Graeme Geldenhuys escribi?: The combination of…
Jesus Reyes A. wrote
The combination of packages that triggers this problem is lazdatadict+lazprojectgroups,

Tested again. Same lazarus executable... all my custom packages installed, minus lazdatadict, plus lazprojectgroups. That executable with a new lazarus profile directory works. That same executable with my previous (normal) profile directory... "Exception" way... I really need Project Groups, so going with the new lazarus profile directory and customizing the IDE once again.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email