[SOLVED] Access Violation when open an existing project in Linux lazarus / 1-Linux ---------------------------------------------------------------------- clauslack · 2009-05-26 00:28 Access Violation when open an existing project in Linux. I can not see the forms in design mode. But the project compiles fine, and the executable runs fine. Linux: Slax 6.0.9 (Slackware 12 based) kernel 2.6.27.8 Lazarus: 0.9.26.3 fpc 2.2.2 Lazarus: 0.9.27 fpc 2.2.4 svn 20135 (20090523) Widgetset: Gtk and Gtk2. ---- ./lazarus --debug-log=debug.txt TMainIDE.ParseCmdLineOptions:   PrimaryConfigPath="/root/.lazarus"   SecondaryConfigPath="/etc/lazarus" NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TCustomFormEditor.CreateComponent Form1:TForm1 True TMainIDE.DoNewEditorFile END unit1.pas TMainIDE.CloseUnitComponent unit1.pas Form1:TForm1 TProject.UpdateUnitComponentDependencies checking properties ... TProject.UpdateUnitComponentDependencies checking designers ... TProject.UpdateUnitComponentDependencies used by designer: unit1.pas TMainIDE.CloseUnitComponent freeing component and designer: unit1.pas Form1:TForm1 TProject.UpdateUnitComponentDependencies checking designers ... TMainIDE.DoLoadLFM A /temp/unit1.pas IsPartOfProject=True QuickCheckLFMBuffer LFMBuffer=/temp/unit1.lfm TApplication.HandleException Access violation   Stack trace:   $40A72090   $B7823C99   $B78232CE   $0811D3B3   $080658A1   $080EECD6   $080EF40B   $0852F17D   $0852F3F8   $0852E214   $0852E38B   $0848191B   $080A53F8   $080A5102   $080ACC0C   $080ACA9B   $080B0805 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 ---- gdb backtrace root@slax:/usr/lib/lazarus# gdb lazarus GNU gdb 6.8 This GDB was configured as "i486-slackware-linux"... (gdb) break fpc_raiseexception Breakpoint 1 at 0x806a216 (gdb) run Starting program: /usr/lib/lazarus/lazarus [Thread debugging using libthread_db enabled] [New Thread 0xb75d6a00 (LWP 8720)] TMainIDE.ParseCmdLineOptions:   PrimaryConfigPath="/root/.lazarus"   SecondaryConfigPath="/etc/lazarus" NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TCustomFormEditor.CreateComponent Form1:TForm1 True TMainIDE.DoNewEditorFile END unit1.pas TMainIDE.CloseUnitComponent unit1.pas Form1:TForm1 TProject.UpdateUnitComponentDependencies checking properties ... TProject.UpdateUnitComponentDependencies checking designers ... TProject.UpdateUnitComponentDependencies used by designer: unit1.pas TMainIDE.CloseUnitComponent freeing component and designer: unit1.pas Form1:TForm1 TProject.UpdateUnitComponentDependencies checking designers ... TMainIDE.DoLoadLFM A /mnt/hda1/lenguajes/lazarus/filtros_.pas IsPartOfProject=True QuickCheckLFMBuffer LFMBuffer=/mnt/hda1/lenguajes/lazarus/filtros_.lfm Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb75d6a00 (LWP 8720)] 0x5ba72090 in ?? () (gdb) bt #0  0x5ba72090 in ?? () #1  0xb7589604 in gconv () from /usr/lib/gconv/ISO8859-1.so #2  0xb784bc99 in __gconv () from /lib/libc.so.6 #3  0xb784b2ce in iconv () from /lib/libc.so.6 #4  0x0811d3b3 in CWSTRING_ANSI2WIDEMOVE$PCHAR$WIDESTRING$LONGINT () #5  0x080658a1 in fpc_ansistr_to_widestr () #6  0x080eecd6 in CLASSES_TPARSER_$__HANDLESTRING () #7  0x080ef40b in CLASSES_TPARSER_$__NEXTTOKEN$$CHAR () #8  0xb611ccd0 in ?? () #9  0x0852eb99 in TLFMTREE__NEXTTOKEN (this=0xb60e5270) at lfmtrees.pas:573 #10 0x0852f17d in TLFMTREE__PROCESSPROPERTY (this=0xb60e5270) at lfmtrees.pas:724 #11 0x0852f3f8 in TLFMTREE__PROCESSOBJECT (this=0xb60e5270) at lfmtrees.pas:775 #12 0x0852e214 in TLFMTREE__PARSE (LFMBUF=0xb5a09b90, this=0xb60e5270) at lfmtrees.pas:415 #13 0x0852e38b in TLFMTREE__PARSEIFNEEDED (this=0xb60e5270) at lfmtrees.pas:435 #14 0x0848191b in QUICKCHECKLFMBUFFER (PASCALBUFFER=0xb5ddda70, LFMBUFFER=0xb5a09b90,     LFMTYPE=0xb598f7d8 'object', LFMCOMPONENTNAME=0xb598f7f8 'Form1', LFMCLASSNAME=0xb598f7b8 'TForm1',     LCLVERSION=0x0, MISSINGCLASSES=0x0) at checklfmdlg.pas:196 #15 0x080a53f8 in TMAINIDE__DOLOADLFM (ANUNITINFO=0xb6146510, LFMBUF=0xb5a09b90,     OPENFLAGS=[OFPROJECTLOADING..OFONLYIFEXISTS, OFMULTIOPEN], CLOSEFLAGS=[CFSAVEDEPENDENCIES],     this=0xb750d5b0) at main.pp:5536 #16 0x080a5102 in TMAINIDE__DOLOADLFM (ANUNITINFO=0xb6146510,     OPENFLAGS=[OFPROJECTLOADING..OFONLYIFEXISTS, OFMULTIOPEN], CLOSEFLAGS=[CFSAVEDEPENDENCIES],     this=0xb750d5b0) at main.pp:5464 #17 0x080acc0c in OPENRESOURCE (parentfp=0xbfe1a7ec) at main.pp:7506 #18 0x080aca9b in TMAINIDE__DOOPENEDITORFILE (     AFILENAME=0xb5af9158 '/mnt/hda1/lenguajes/lazarus/filtros_.pas', PAGEINDEX=-1,     FLAGS=[OFPROJECTLOADING..OFONLYIFEXISTS, OFMULTIOPEN], this=0xb750d5b0) at main.pp:7728 #19 0x080b0805 in TMAINIDE__DOOPENPROJECTFILE (     AFILENAME=0xb60edd98 '/mnt/hda1/lenguajes/lazarus/filtros.lpi', FLAGS=[OFADDTORECENT], this=0xb750d5b0)     at main.pp:8827 #20 0x0809d144 in TMAINIDE__MNUOPENPROJECTCLICKED (SENDER=0xb60c68b0, this=0xb750d5b0) at main.pp:3443 #21 0x083d78a8 in TIDEMENUITEM__MENUITEMCLICK (SENDER=0xb7513b80, this=0xb60c68b0) at menuintf.pas:531 #22 0x083da63a in TIDEMENUCOMMAND__MENUITEMCLICK (SENDER=0xb7513b80, this=0xb60c68b0) at menuintf.pas:1516 ---Type to continue, or q to quit--- #23 0x081b601e in TMENUITEM__CLICK (this=0xb7513b80) at menuitem.inc:74 #24 0x081b6670 in TMENUITEM__DOCLICKED (MSG=void, this=0xb7513b80) at menuitem.inc:265 #25 0x08069669 in SYSTEM_TOBJECT_$__DISPATCH$formal () #26 0x081b6640 in TMENUITEM__GETPARENTCOMPONENT (this=0xb7513b80) at menuitem.inc:255 #27 0x0821954b in DELIVERMESSAGE (TARGET=0xb7513b80, AMESSAGE=void) at gtkproc.inc:3573 #28 0x082b87e0 in GTK2MENUITEMACTIVATE (WIDGET=0x8ff8258, DATA=0xb7513b80) at gtk2wsmenus.pp:108 #29 0xb7adc1df in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #30 0xb7acee69 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #31 0xb7ae361b in ?? () from /usr/lib/libgobject-2.0.so.0 #32 0x08ffe090 in ?? () #33 0x00000000 in ?? () ------ Any idea? Regards ---------------------------------------------------------------------- Vincent Snijders · 2009-05-26 10:08 what are your locale settings? ---------------------------------------------------------------------- clauslack · 2009-05-26 17:30 SOLVED I instaled Slax from a live-cd, and put the spanish language in manual form. I don't installed glibc-i18n-2.7-noarch-17, now Lazarus works fine. Thank you very much!!