lazarus 0.9.12 on ubuntu/x86_64-'invalid floating point op' lazarus / 1-Linux ---------------------------------------------------------------------- lupine · 2006-02-11 12:53 Hi all. I've been gritting my teeth over this one for a while now, lol. I'm running Ubuntu (debian) 5.10 on an AMD 64 processor, and trying to compile http://higgs.co.za/linbmd.html (linBMD). So, I've compiled and installed, from source, fpc 2.0.2 (package name: fpc-2.0.2.x86_64-linux), as well as lazarus 0.9.12 (package name: lazarus-0.9.12-0 -- I've also tried the 10th Feb. snapshot with no success). My problem is that I keep getting floating-point errors whenever I open a window - my first step was to try & open the Environment Options window, to sort out the fpcsrc thing - "invalid floating point operation - ignore or shut down" was the essence of the message I received. Then I tried compiling linBMD - it did (yay), but then on run, it spat out the same error (sulk). My console gave me el stack trace:- Code: [Select] TApplication.HandleException Invalid floating point operation   Stack trace:   $000000000052D99B  GETCHILDMINRESIZE,  line 616 of ./include/wincontrol.inc   $000000000052D31C  TAUTOSIZEBOX__RESIZECHILDS,  line 780 of ./include/wincontrol.inc   $000000000052E428  TAUTOSIZEBOX__RESIZETABLE,  line 807 of ./include/wincontrol.inc   $000000000052E7D8  TAUTOSIZEBOX__ALIGNCONTROLSINTABLE,  line 896 of ./include/wincontrol.inc   $0000000000535FC3  TWINCONTROL__ALIGNNONALIGNEDCONTROLS,  line 4132 of ./include/wincontrol.inc   $000000000052F836  DOALIGNNOTALIGNED,  line 1586 of ./include/wincontrol.inc   $000000000052F644  TWINCONTROL__ALIGNCONTROLS,  line 1639 of ./include/wincontrol.inc   $0000000000536490  TWINCONTROL__ALIGNCONTROL,  line 4254 of ./include/wincontrol.inc   $0000000000535E78  TWINCONTROL__REALIGN,  line 4077 of ./include/wincontrol.inc   $00000000005318D4  TWINCONTROL__ENABLEALIGN,  line 2092 of ./include/wincontrol.inc   $0000000000537E7D  TWINCONTROL__CREATEWND,  line 5101 of ./include/wincontrol.inc   $0000000000537757  TWINCONTROL__CREATEHANDLE,  line 4992 of ./include/wincontrol.inc   $00000000005386CD  TWINCONTROL__HANDLENEEDED,  line 5301 of ./include/wincontrol.inc   $0000000000537D26  TWINCONTROL__CREATEWND,  line 5082 of ./include/wincontrol.inc   $0000000000537757  TWINCONTROL__CREATEHANDLE,  line 4992 of ./include/wincontrol.inc   $00000000005386CD  TWINCONTROL__HANDLENEEDED,  line 5301 of ./include/wincontrol.inc   $0000000000537D26  TWINCONTROL__CREATEWND,  line 5082 of ./include/wincontrol.inc I thought it could be a problem with the compiler (due to it affecting lazarus as well) - but the problem seems to be in a Lazarus include. Anyway - does anyone have any further ideas? Because I *really* want to get this program built, lol. xF, ...Nick[/url] ---------------------------------------------------------------------- lupine · 2006-02-11 13:02 Hrm. Well, the code is:- Code: [Select] 615:            CurScale:=double(Child.MinimumSize[Orientation]) 616:                      /Child.PreferredSize[Orientation]; So if I change it to (say): Code: [Select] 615:            CurScale:=Child.MinimumSize[Orientation] 616:                      /Child.PreferredSize[Orientation]; I wonder if that'll solve the problem? Or something similar? Hmm... BRB xF, ...Nick ---------------------------------------------------------------------- Anonymous · 2006-02-11 13:12 Bah. No joy . xF, ...Nick ---------------------------------------------------------------------- stt · 2006-02-11 14:52 I've the same problem here, on my Ubuntu 5.10 AMD64 box. I've tried all combinations between FPC 2.0.2 and the newest FPC SVN with Lazarus 0.9.12 and the newest Lazarus SVN with different build options. FPC: make all PP=ppcx64 && sudo make install PP=ppcx64 Lazarus : make PP=ppcx64, make PP=ppcx64 LCL_PLATFORM=gtk2, make PP=ppcx64 LCL_PLATFORM=gnome But in every case, there is the same following error message: Code: [Select](lazarus:25909): GLib-GObject-WARNING **: invalid cast from `GtkAdjustment' to `GtkWidget' TApplication.HandleException Invalid floating point operation   Stack trace:   $000000000050FADB  GETCHILDMINRESIZE,  line 616 of ./include/wincontrol.inc   $000000000050F45C  TAUTOSIZEBOX__RESIZECHILDS,  line 780 of ./include/wincontrol.inc   $0000000000510568  TAUTOSIZEBOX__RESIZETABLE,  line 807 of ./include/wincontrol.inc   $0000000000510918  TAUTOSIZEBOX__ALIGNCONTROLSINTABLE,  line 896 of ./include/wincontrol.inc   $000000000051822B  TWINCONTROL__ALIGNNONALIGNEDCONTROLS,  line 4140 of ./include/wincontrol.inc   $0000000000511976  DOALIGNNOTALIGNED,  line 1586 of ./include/wincontrol.inc   $0000000000511784  TWINCONTROL__ALIGNCONTROLS,  line 1639 of ./include/wincontrol.inc   $00000000005186F8  TWINCONTROL__ALIGNCONTROL,  line 4262 of ./include/wincontrol.inc   $00000000005180E0  TWINCONTROL__REALIGN,  line 4085 of ./include/wincontrol.inc   $0000000000513A14  TWINCONTROL__ENABLEALIGN,  line 2092 of ./include/wincontrol.inc   $000000000051DC40  TCONTROL__CHANGEBOUNDS,  line 398 of ./include/control.inc   $0000000000522D22  TCONTROL__SETBOUNDS,  line 2499 of ./include/control.inc   $000000000051B3D6  TWINCONTROL__SETBOUNDS,  line 5553 of ./include/wincontrol.inc   $0000000000526737  TCONTROL__SETBOUNDSKEEPBASE,  line 8296 of ./include/control.inc   $0000000000520178  TCONTROL__SETALIGNEDBOUNDS,  line 1291 of ./include/control.inc   $00000000005124CB  DOPOSITION,  line 1433 of ./include/wincontrol.inc   $0000000000511B78  DOALIGN,  line 1557 of ./include/wincontrol.inc (lazarus:25909): GLib-GObject-WARNING **: gsignal.c:1788: instance `0x1432a30' has no handler with id `6036' TApplication.HandleException: there was another exception during showing the first exception Note: GetTextBuf is overridden for: TApplication.HandleException: there was another exception during showing the first exception lazarus.pp - unhandled exception Lazarus is shutting down, when I open the Environment -> {Environment Options,Editor Options,Debugger Options}. Any suggestions? Thank you very much! Best regards, ---------------------------------------------------------------------- Drewski · 2006-02-11 21:17 This bug afaict is only present on fpc 2.0.2 (64 bit version only). A recent fpc 2.0.3 or 2.1.1 (both are versions from svn) will not have this bug. However there is another bug right now in fpc svn that will not allow lazarus to compile (fpc bug# 4789) I'd say try fpc 2.0.0 if that doesn't work you're sunk untill that bug is fixed. Andrew ---------------------------------------------------------------------- stt · 2006-02-11 21:40 Thanks for the answer Andy. I've installed FPC 2.0.0 (64 bit version), checked out Lazarus revision 8731, but didn't work. Code: [Select]TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 [FORMS.PP] ExceptionOccurred   Sender=EReadError   Exception=Error reading SplashForm.HorzScrollBar.Page: Access violation   Stack trace:   $00000000004AFF92   $00000000004AF33D   $00000000004A4085   $00000000004B0DF2   $000000000057CE7A  INITCOMPONENT,  line 2100 of lresources.pp   $000000000057CC77  INITLAZRESOURCECOMPONENT,  line 2119 of lresources.pp   $000000000042FE1D  INITRESOURCECOMPONENT,  line 1390 of forms.pp   $000000000043624A  TCUSTOMFORM__CREATE,  line 1295 of ./include/customform.inc   $000000000044E133  TSPLASHFORM__CREATE,  line 72 of splash.pp   $0000000000415868  main,  line 80 of lazarus.pp TApplication.HandleException Error reading SplashForm.HorzScrollBar.Page: Access violation   Stack trace:   $00000000004AFF92   $00000000004AF33D   $00000000004A4085   $00000000004B0DF2   $000000000057CE7A  INITCOMPONENT,  line 2100 of lresources.pp   $000000000057CC77  INITLAZRESOURCECOMPONENT,  line 2119 of lresources.pp   $000000000042FE1D  INITRESOURCECOMPONENT,  line 1390 of forms.pp   $000000000043624A  TCUSTOMFORM__CREATE,  line 1295 of ./include/customform.inc   $000000000044E133  TSPLASHFORM__CREATE,  line 72 of splash.pp   $0000000000415868  main,  line 80 of lazarus.pp Runtime error 217 at $00000000004213F5   $00000000004213F5   $0000000000421903   $000000000044E1CA  TSPLASHFORM__CREATE,  line 71 of splash.pp   $0000000000415868  main,  line 80 of lazarus.pp I'll wait untill that bug is fixed. ---------------------------------------------------------------------- stt · 2006-02-11 22:24 Bug #4789 fixed! Checked out FPC and Lazarus, works now!