lazarus compiles but doesn't start lazarus / 1-Linux ---------------------------------------------------------------------- andi456 · 2005-06-08 23:10 Hi everybody, to make the cvs sources compile, I needed to comment out two lines corresponding to the following error: Code: [Select]grids.pas(7494,19) Error: Unknown record field identifier "WPARAMLO" grids.pas(7877) Fatal: There were 1 errors compiling module, stopping grids.pas(61,12) Error: Compilation aborted But starting lazarus gives this result:  Code: [Select]FEHLER in der LCLTGtkWidgetSet.DeleteObject invalid GdiObject=2896417192 Erzeuge GDB-fangbaren Fehler: means that gdb can handle the error message TApplication.HandleException Division by zero TApplication.HideAllFormsWithStayOnTop :TSplashForm WARNING: [TGtkWidgetSet.CombineRgn] Invalid HRGN FEHLER in der LCLTGtkWidgetSet.DeleteObject invalid GdiObject=2896421672 Erzeuge GDB-fangbaren Fehler: 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 This is the gdb backtrace corresponding to the above: Code: [Select] 0  0x0000000000438af4 in RAISEGDBEXCEPTION (MSG=Cannot access memory at address 0x8000ffffe1c8 ) at lclproc.pas:591 #1  0x00000000004e4728 in RAISEINVALIDGDIOBJECT (parentfp=Cannot access memory at address 0x8000ffffe258 ) at gtkwinapi.inc:2265 #2  0x00000000004e44da in TGTKWIDGETSET__DELETEOBJECT (GDIOBJECT=Cannot access memory at address 0x8000ffffe298 ) at gtkwinapi.inc:2279 #3  0x00000000004816d8 in TWIDGETSET__RECTVISIBLE (DC=Cannot access memory at address 0x8000ffffe2e8 ) at intfbasewinapi.inc:1119 #4  0x00000000004ed87d in TGTKWIDGETSET__RECTVISIBLE (DC=Cannot access memory at address 0x8000ffffe318 ) at gtkwinapi.inc:6824 #5  0x0000000000521b74 in RECTVISIBLE (DC=Cannot access memory at address 0x8000ffffe348 ) at winapi.inc:611 #6  0x000000000050c984 in TWINCONTROL__PAINTCONTROLS (DC=Cannot access memory at address 0x8000ffffe3a8 ) at wincontrol.inc:1757 #7  0x000000000050c76a in TWINCONTROL__PAINTHANDLER (THEMESSAGE=Cannot access memory at address 0x8000ffffe4a8 ) at wincontrol.inc:1710 #8  0x000000000050fce1 in TWINCONTROL__WMPAINT (MSG=Cannot access memory at address 0x8000ffffe598 ) at wincontrol.inc:3314 #9  0x000000000051c8cb in TCUSTOMCONTROL__WMPAINT (MESSAGE=Cannot access memory at address 0x8000ffffe5b8 ) at customcontrol.inc:94 #10 0x000000000041a17b in SYSTEM_TOBJECT_$__DISPATCH$formal () #11 0x0000000000516a7d in TCONTROL__WNDPROC (THEMESSAGE=Cannot access memory at address 0x8000ffffe648 ) at control.inc:1481 #12 0x000000000050d70d in TWINCONTROL__WNDPROC (MESSAGE=Cannot access memory at address 0x8000ffffe6a8 ) at wincontrol.inc:2135 #13 0x00000000005b3253 in DELIVERMESSAGE (TARGET=Cannot access memory at address 0x8000ffffe798 ) at gtkproc.inc:3364 #14 0x00000000004ee8de in TGTKWIDGETSET__SENDMESSAGE (HANDLEWND=Cannot access memory at address 0x8000ffffe808 ) at gtkwinapi.inc:7664 #15 0x00000000004d201b in TGTKWIDGETSET__HANDLEEVENTS (this=Cannot access memory at address 0x8000ffffe838 ) at gtkobject.inc:1498 #16 0x0000000000430b30 in TCUSTOMFORM__SHOWMODAL (this=Cannot access memory at address 0x8000ffffe948 ) at customform.inc:1813 #17 0x000000000050492b in SHOWPROMPTDIALOG (DIALOGCAPTION=Cannot access memory at address 0x8000ffffea18 ) at promptdialog.inc:367 #18 0x0000000000483ece in TWIDGETSET__PROMPTUSER (DIALOGCAPTION=Cannot access memory at address 0x8000ffffea98 ) at intfbaselcl.inc:487 #19 0x0000000000524163 in PROMPTUSER (DIALOGCAPTION=Cannot access memory at address 0x8000ffffeaf8 ) at lclintf.inc:342 #20 0x0000000000502e4c in MESSAGEDLG (ACAPTION=Cannot access memory at address 0x8000ffffeb58 ) at messagedialogs.inc:164 #21 0x000000000076ecb1 in LOADCODEBUFFER (ACODEBUFFER=Cannot access memory at address 0x8000ffffec48 ) at dialogprocs.pas:145 #22 0x0000000000452ad7 in TMAINIDE__DOOPENUNKNOWNFILE (AFILENAME=Cannot access memory at address 0x8000ffffed98 ) at main.pp:4063 #23 0x0000000000458094 in TMAINIDE__DOOPENEDITORFILE (AFILENAME=Cannot access memory at address 0x8000ffffeec8 ) at main.pp:5276 #24 0x00000000004476f6 in TMAINIDE__SETUPSTARTPROJECT (this=Cannot access memory at address 0x8000ffffefe8 ) at main.pp:1608 #25 0x00000000004443b0 in TMAINIDE__STARTIDE (this=Cannot access memory at address 0x8000fffff018 ) at main.pp:1039 #26 0x000000000040f42d in main () at lazarus.pp:76 The problem appears under gentoo linux amd64. Thanks in advance. Greets Andreas ---------------------------------------------------------------------- matthijs · 2005-06-14 05:59 Current Lazarus CVS needs FPC 2.0.0 Did you install that as well? Oops, just noticed you are using 64 bit Linux so maybe there is something else wrong. ---------------------------------------------------------------------- andi456 · 2005-06-15 08:30 Well, I got fpc-2.0.0 and sources installed, that cannot be the problem, there must be something else. With the latest cvs-update the result remains the same, whereas the backtrace is slightly different: Code: [Select]#0  0x0000000000438af4 in RAISEGDBEXCEPTION (MSG=Cannot access memory at address 0x8000ffffe768 ) at lclproc.pas:592 #1  0x00000000004e48a8 in RAISEINVALIDGDIOBJECT (parentfp=Cannot access memory at address 0x8000ffffe7f8 ) at gtkwinapi.inc:2265 #2  0x00000000004e465a in TGTKWIDGETSET__DELETEOBJECT (GDIOBJECT=Cannot access memory at address 0x8000ffffe838 ) at gtkwinapi.inc:2279 #3  0x0000000000481840 in TWIDGETSET__RECTVISIBLE (DC=Cannot access memory at address 0x8000ffffe888 ) at intfbasewinapi.inc:1119 #4  0x00000000004ed9fd in TGTKWIDGETSET__RECTVISIBLE (DC=Cannot access memory at address 0x8000ffffe8b8 ) at gtkwinapi.inc:6824 #5  0x0000000000521cf4 in RECTVISIBLE (DC=Cannot access memory at address 0x8000ffffe8e8 ) at winapi.inc:611 #6  0x000000000050cb04 in TWINCONTROL__PAINTCONTROLS (DC=Cannot access memory at address 0x8000ffffe948 ) at wincontrol.inc:1757 #7  0x000000000050c8ea in TWINCONTROL__PAINTHANDLER (THEMESSAGE=Cannot access memory at address 0x8000ffffea48 ) at wincontrol.inc:1710 #8  0x000000000050fe61 in TWINCONTROL__WMPAINT (MSG=Cannot access memory at address 0x8000ffffeb38 ) at wincontrol.inc:3314 #9  0x000000000051ca4b in TCUSTOMCONTROL__WMPAINT (MESSAGE=Cannot access memory at address 0x8000ffffeb58 ) at customcontrol.inc:94 #10 0x000000000041a17b in SYSTEM_TOBJECT_$__DISPATCH$formal () #11 0x0000000000516bfd in TCONTROL__WNDPROC (THEMESSAGE=Cannot access memory at address 0x8000ffffebe8 ) at control.inc:1481 #12 0x000000000050d88d in TWINCONTROL__WNDPROC (MESSAGE=Cannot access memory at address 0x8000ffffec48 ) at wincontrol.inc:2135 #13 0x00000000005b3513 in DELIVERMESSAGE (TARGET=Cannot access memory at address 0x8000ffffed38 ) at gtkproc.inc:3366 #14 0x00000000004eea5e in TGTKWIDGETSET__SENDMESSAGE (HANDLEWND=Cannot access memory at address 0x8000ffffeda8 ) at gtkwinapi.inc:7664 #15 0x00000000004d219b in TGTKWIDGETSET__HANDLEEVENTS (this=Cannot access memory at address 0x8000ffffedd8 ) at gtkobject.inc:1498 #16 0x0000000000434b88 in TAPPLICATION__HANDLEMESSAGE (this=Cannot access memory at address 0x8000ffffedf8 ) at application.inc:861 #17 0x0000000000435009 in RUNMESSAGE (parentfp=Cannot access memory at address 0x8000ffffee18 ) at application.inc:969 #18 0x0000000000434f18 in TAPPLICATION__RUN (this=Cannot access memory at address 0x8000ffffef08 ) at application.inc:980 #19 0x000000000040f480 in main () at lazarus.pp:84 Greets, Andreas