Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Péter Gábor
There is already a similar bug report in mantis:
http://bugs.freepascal.org/view.php?id=29198


2016-02-25 16:06 keltezéssel, Graeme Geldenhuys írta:
> 
> Anybody else see this error yet?
> 
> Regards,
>   - Graeme -
> 

-- 
Péter Gábor
p...@freemail.hu


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 15:39, 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" error at start.

Either 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Graeme Geldenhuys
On 2016-02-25 15:39, 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Jesus Reyes A.
En Thu, 25 Feb 2016 09:28:47 -0600, Graeme Geldenhuys  
 escribió:



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" error at start. So 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.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Graeme Geldenhuys
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" error at start. So 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread Mattias Gaertner
On Thu, 25 Feb 2016 15:06:35 +
Graeme Geldenhuys  wrote:

>[...]
> Anybody else see this error yet?

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


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Project Groups error - "Invalid floating point operation"

2016-02-25 Thread 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:

  $00AB2533 line 720 of lazloggerbase.pas
  $0099F48E line 1458 of lclproc.pas
  $0099C21B line 903 of lclproc.pas
  $00F83D21 line 1073 of menuintf.pas
  $00F833AE line 1165 of menuintf.pas
  $00F83276 line 1148 of menuintf.pas
  $00F855DA line 1276 of menuintf.pas
  $00F855D1 line 1272 of menuintf.pas
  $00F85CE9 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:
  $0099C24C line 904 of lclproc.pas
  $00F83D21 line 1073 of menuintf.pas
  $00F833AE line 1165 of menuintf.pas
  $00F83276 line 1148 of menuintf.pas
  $00F855DA line 1276 of menuintf.pas
  $00F855D1 line 1272 of menuintf.pas
  $00F85CE9 line 1352 of menuintf.pas
  $00F85B60 line 1341 of menuintf.pas
  $00F80A70 line 523 of menuintf.pas
  $01F0526C line 365 of reglazdatadict.pp
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01113802 line 1814 of ../packager/packagesystem.pas
  $0170AC80 line 55 of lazaruspackageintf.pas
  $00A040A7 line 18 of lazdatadict.pas
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01138F99 line 5402 of ../packager/packagesystem.pas
  $01143352 line 1580 of ../packager/pkgmanager.pas
TApplication.HandleException Invalid floating point operation
  Stack trace:
  $0099C24C line 904 of lclproc.pas
  $00F83D21 line 1073 of menuintf.pas
  $00F833AE line 1165 of menuintf.pas
  $00F83276 line 1148 of menuintf.pas
  $00F855DA line 1276 of menuintf.pas
  $00F855D1 line 1272 of menuintf.pas
  $00F85CE9 line 1352 of menuintf.pas
  $00F85B60 line 1341 of menuintf.pas
  $00F80A70 line 523 of menuintf.pas
  $01F0526C line 365 of reglazdatadict.pp
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01113802 line 1814 of ../packager/packagesystem.pas
  $0170AC80 line 55 of lazaruspackageintf.pas
  $00A040A7 line 18 of lazdatadict.pas
  $0113920E line 5436 of ../packager/packagesystem.pas
  $01138F99 line 5402 of ../packager/packagesystem.pas
  $01143352 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus