I have 256M of memory and I tried to compile lazarus wit FPC 1.19 to see if this could solve the problem.
Now, I've compiled Lazarus with FPC 1.0.11 these are the steps that I follow:
$ LANG=es
$ lazarus
Gdk-WARNING **: locale not supported by C library
[FORMS.PP] ExceptionOccurred
Sender=EACCESSVIOLATION
Exception=Access violation
TApplication.HandleException Access violation
TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM [FORMS.PP] ExceptionOccurred
[FORMS.PP] ExceptionOccurred
But if I set LANG to en_US Lazarus return the following error:
$ LANG=en_US
$ lazarus
[FORMS.PP] ExceptionOccurred
Sender=EACCESSVIOLATION
Exception=Access violation
TApplication.HandleException Access violation
[FORMS.PP] ExceptionOccurred
[TgtkObject.Destroy] WARNING: There are 1 unreleased DCs, a detailed dump follows:
[TgtkObject.Destroy] DCs: 08590334
[TgtkObject.Destroy] WARNING: There are 7 unreleased GDIObjects, a detailed dump follows:
[TgtkObject.Destroy] GDIOs: BF224224 BF2241D4 08590464 BF221444 BF2213F4 BF2233E4 BF2212C4
[TgtkObject.Destroy] gdiBitmap: 1
[TgtkObject.Destroy] gdiFont: 4
[TgtkObject.Destroy] gdiPen: 2
I've tried to make a backtrace following the steps that the other day Marc explained me:
gdb lazarus
break TAPPLICATION__HANDLEEXCEPTION
run
bt
This is what gdb shows on screen:
Starting program: /home/raul/Compilar/lazarus/lazarus
Program received signal SIGSEGV, Segmentation fault. $082c433c in TDYNHASHARRAY__ADD (ITEM=$bf0f9024, this=$8553b74) at dynhasharray.pp:481
481 dynhasharray.pp: No such file or directory. in dynhasharray.pp
(gdb) bt
#0 $082c433c in TDYNHASHARRAY__ADD (ITEM=$bf0f9024, this=$8553b74) at dynhasharray.pp:481
#1 $0831b5d6 in TGTKOBJECT__NEWGDIOBJECT (GDITYPE=GDIFONT, this=$8553294)
at gtkobject.inc:7809
#2 $0831b6a1 in TGTKOBJECT__CREATEDEFAULTFONT (this=$8553294) at gtkobject.inc:7856
#3 $0831b556 in TGTKOBJECT__CREATEDCFORWIDGET (THEWIDGET=$0, THEWINDOW=$0,
WITHCHILDWINDOWS=false, this=$8553294) at gtkobject.inc:7782 #4 $08323653 in TGTKOBJECT__GETDC (HWND=0, this=$8553294) at gtkwinapi.inc:3993
#5 $08323701 in TGTKOBJECT__GETDEVICECAPS (DC=0, INDEX=88, this=$8553294)
at gtkwinapi.inc:4020
#6 $0832423f in TGTKOBJECT__GETOBJECT (GDIOBJ=140051604, BUFSIZE=84, BUF=$bf20cfd4, this=$8553294) at gtkwinapi.inc:4390 #7 $082f4ece in GETOBJECT (GDIOBJECT=140051604, BUFSIZE=84, BUF=$bf20cfd4)
at winapi.inc:508
#8 $082fec3b in TBITMAP__SETHANDLE (VALUE=140051604, this=$bf20cf64) at bitmap.inc:830
#9 $082fe188 in READXPMSTREAM () at bitmap.inc:461 #10 $082fe273 in TBITMAP__READSTREAM (STREAM=$bf209e44, SIZE=298099, this=$bf20cf64) at bitmap.inc:497
#11 $082fdade in TBITMAP__LOADFROMSTREAM (STREAM=$bf209e44, this=$bf20cf64)
at bitmap.inc:289
---Type <return> to continue, or q <return> to quit--- #12 $082fda89 in TBITMAP__LOADFROMLAZARUSRESOURCE (RESNAME=$849d51e, this=$bf20cf64) at bitmap.inc:281
#13 $0829ce6c in TSPLASHFORM__CREATE (AOWNER=$0, this=$bf20c8a4) at splash.pp:75
#14 $083630c4 in main () at lazarus.pp:66
My knowledge isn't enough big for debug this problem, I hope you could debug and correct it.
Thanks
PS: Feel free to correct me if I have mistakes in my english ;)
Marc Weustink wrote 88 lines
At 01:25 18-11-2003, Raúl Moratalla wrote:
>I'm trying to debug the program but I don't know why happen this. Could
>you help me?
>I would like to run lazarus and begin writting code wiht it, and in a
>future I would like to contribute to lazarus development.
>Thanks
How much memory do you have ?
Marc
>El dom, 16-11-2003 a las 21:08, Raúl Moratalla escribió:
> > Hi, I've downloaded again the source code of Lazarus from CVS and I'm
> > still getting problems with it :(
> >
> > [FORMS.PP] ExceptionOccurred
> > Sender=EOutOfMemory
> > Exception=Out of memory
> > TApplication.HandleException Out of memory
> > Runtime error 217 at 0x0836B468
> > 0x0836B468
> > 0x0836B800
> > 0x082AABE4 TLRESOURCELIST__ADD, line 305 of lresources.pp
> > 0x0835910D SPLASH_init, of splash.pp
> > 0x0836D1DB
> > 0x08373DDB main, line 61 of lazarus.pp
> > 0x080529F7
> >
> > I'm compiling it with FPC 1.9 under Fedora Core 1.
> >
> > El sáb, 15-11-2003 a las 16:34, Marc Weustink escribió:
> > > At 15:33 15-11-2003, Bob Wingard wrote:
> > > > >
> > > >Marc,
> > > > I am getting a range exception message as well when I do a
> debug
> > > > build
> > > >of lazarus.
> > >
> > > :(
> > >
> > > I don't like rangechecks when I ment it that way
> > >
> > > OK, I added a cast, so I guess it is fixed now.
> > >
> > >
> > > >I have traced it to the KeySymToKeyArray function. In the function on
> > > >line 1234 K := AKeySym shr 16 is where the exception is happening. At
> > > >the point where the error happens AKeySym is equal to 269024801. I am
> > > >still looking but I think the problem is in the return from
> > > >XKeyCodeToKeySym in the InitKeyBoardTables routine when n=63, m=1, then
> > > >a little further down the call to KeySymToKeyArray fails.
> > >
> > > Thanks for trace. It easier to find it this way.
> > >
> > > the line K := AKeySym shr 16 is the problem when you have rangechecks
> > > turned on.
> > >
> > > K is a Byte, AKeysym shr 16 is larger than a byte so this causes a
> > > rangechek error. (I only needed the lower byte)
> > >
> > > Marc
> > >
> > >
> > > _________________________________________________________________
> > > To unsubscribe: mail with
> > > "unsubscribe" as the Subject
> > > archives at
http://www.lazarus.freepascal.org/mailarchives
> > >
> >
> > _________________________________________________________________
> > To unsubscribe: mail with
> > "unsubscribe" as the Subject
> > archives at
http://www.lazarus.freepascal.org/mailarchives
> >
>
>_________________________________________________________________
> To unsubscribe: mail with
> "unsubscribe" as the Subject
> archives at
http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail with
"unsubscribe" as the Subject
archives at
http://www.lazarus.freepascal.org/mailarchives