Recent

Author Topic: IDE raises "Invalid floating point operation" when using "open/save" dialogues.  (Read 7659 times)

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
That is. I have Kubuntu 9.10 + Lazarus 0.9.28.2-0 beta + FPC 2.2.4 .

Every time the IDE opens an open or save dialogue it closes. I did run it from console and it writes this log:

Code: [Select]
guillermo@gmartinez-desktop:~$ startlazarus
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
TLazarusManager.Run starting /usr/lib/lazarus/0.9.28.2/lazarus ...
[WARNING] Out of OEM specific VK codes, changing to unassigned
[WARNING] Out of unassigned VK codes, assigning $FF
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/home/guillermo/.lazarus"
  SecondaryConfigPath="/etc/lazarus"
NOTE: editor options config file not found - using defaults
NOTA: No se ha encontrado el archivo de configuración de las CodeTools - usando valores predeterminados
NOTE: help options config file not found - using defaults
TPkgManager.GetWritablePkgOutputDirectory APackage=TurboPowerIPro 1.0 AnOutDirectory="/home/guillermo/.lazarus/lib/TurboPowerIPro/i386-linux"
TPkgManager.GetWritablePkgOutputDirectory APackage=SDFLaz 0.1.1 AnOutDirectory="/home/guillermo/.lazarus/lib/SDFLaz/i386-linux"

  ... some dozens of lines similar than previous ones ...

TPkgManager.GetWritablePkgOutputDirectory APackage=SQLDBLaz 1.0.1 AnOutDirectory="/home/guillermo/.lazarus/lib/SQLDBLaz/i386-linux"
TCustomFormEditor.CreateComponent Form1:TForm1 True
TMainIDE.DoNewEditorFile END unit1.pas

Then the IDE appears. I press the "Save" button from the tool-bar (without change anything) and it closes suddently with next lines in the console:

Code: [Select]
TApplication.HandleException Invalid floating point operation
  Stack trace:
  $B692C481
  $B694E020
  $B74CB331
  $B7555EA2
  $B7557971
  $B744D474
  $B72466F9
  $B7248072
  $B725D49E
  $B725E9B8
  $B725EFB6
  $B756995E
  $B7447190
  $B72BB204
  $B72BB1B3
  $B72BB1B3
  $B72DE764

(lazarus:6247): Gtk-CRITICAL **: gtk_style_detach: assertion `style->attach_count > 0' failed
TApplication.HandleException: there was another exception during showing the first exception
  Stack trace:
  $B743EB69
  $B743F2D4
  $B744A5DF
  $B72466F9
  $B7248072
  $B725D49E
  $B725EB2D
  $B725EFB6
  $B7570481
  $B74B0E7F
  $B7254F08
  $B72466F9
  $B7248072
  $B725D0B0
  $B725EB2D
  $B725EFB6
  $B73B99B1
lazarus.pp - unhandled exception
[FORMS.PP] ExceptionOccurred
[FORMS.PP] ExceptionOccurred
[TMainIDE.Destroy] A
[FORMS.PP] ExceptionOccurred
guillermo@gmartinez-desktop:~$

I know my Lazarus and FPC aren't the latest ones, but I hate to use non-stable stuff. I'm using the latest "stable" from the Lazarus' repository, and I'll not change this. :P
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

liewald

  • Full Member
  • ***
  • Posts: 142
I am having exactly the same problem on a vanilla install of SUSE 11.2 (64 bit).

I downloaded the latest FPC and LAZ rpm's and installed

LAZ installed and built on trying to open a file it crashes with this log

TApplication.HandleException Invalid floating point operation
  Stack trace:
  $00007F27DE678428
  $00007F27DE68AC83
  $00007F27DE694927
  $00007F27E40A82AB
TApplication.HandleException: there was another exception during showing the first exception
  Stack trace:
  $000000000072C746
  $00000000009711D3
  $000000000095F64C
  $00000000008344E3
  $0000000000972E41
  $000000000097D794
  $000000000090F21D
  $00007F27E3FB29F8
WARNING: TLCLComponent.Destroy with LCLRefCount>0. Hint: Maybe the component is processing an event?
[TMainIDE.Destroy] A
[TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
[TMainIDE.Destroy] END

Has anyone found an answer to this?

this occurs both using the RPM's and the Suse 1 click install
« Last Edit: August 03, 2010, 04:23:03 pm by liewald »

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
What latest rpm did you use?

If you use the latest release (and not a snapshot), you may try to use a different theme.

liewald

  • Full Member
  • ***
  • Posts: 142
It was the latest release.

I finally got it to work after completely uninstalling, reinstalling using oneclick, and rebuilding the gui after deselecting GTK2, selecting GTK, building, reselecting GTK 2 and building again.

got there eventually

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
It is caused by QT Curve theme of GTK2, used at least under Suse KDE desktop for GTK2 programs.
The solution is to change GTK2 theme or to use the latest Lazarus trunk version.
No need to build Lazarus many times.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018