Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-11

Problems with lazarus CVS

18 messages · 7 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Raúl Moratalla
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

This is what gdb shows:

Starting program: /usr/local/bin/lazarus

Program received signal SIGSEGV, Segmentation fault. $082c313c in TDYNHASHARRAY__ADD (ITEM=$bf2150b4, this=$85512a4) at dynhasharray.pp:481
481 dynhasharray.pp: No such file or directory. in dynhasharray.pp
(gdb) bt
#0 $082c313c in TDYNHASHARRAY__ADD (ITEM=$bf2150b4, this=$85512a4) at dynhasharray.pp:481
#1 $0831a316 in TGTKOBJECT__NEWGDIOBJECT (GDITYPE=GDIBRUSH, this=$85509c4)
at gtkobject.inc:7809
#2 $0831a371 in TGTKOBJECT__CREATEDEFAULTBRUSH (this=$85509c4) at gtkobject.inc:7839
#3 $0831a2c5 in TGTKOBJECT__CREATEDCFORWIDGET (THEWIDGET=$8ea3cd8, THEWINDOW=$8eb1620,
WITHCHILDWINDOWS=false, this=$85509c4) at gtkobject.inc:7789 #4 $08322393 in TGTKOBJECT__GETDC (HWND=149568728, this=$85509c4) at gtkwinapi.inc:3993
#5 $082f3998 in GETDC (HWND=149568728) at winapi.inc:431 #6 $082e5e78 in TWINCONTROL__GETDEVICECONTEXT (WINDOWHANDLE=0, this=$bf1fd7c4)
at wincontrol.inc:3034
#7 $082e12de in TCONTROLCANVAS__CREATEHANDLE (this=$bf1fdb74) at controlcanvas.inc:90
#8 $083012d1 in TCANVAS__REQUIREDSTATE (REQSTATE=[CSHANDLEVALID, CSBRUSHVALID],
this=$bf1fdb74) at canvas.inc:1138
#9 $082fff69 in TCANVAS__COPYRECT (DEST=
{LEFT = 0, TOP = 0, RIGHT = 429, BOTTOM = 341, TOPLEFT = {X = 0, Y = 0}, BOTTOMRIGHT = {X = 429, Y = 341}}, CANVAS=$bf214e14, SOURCE= {LEFT = 0, TOP = 0, RIGHT = 429, BOTTOM = 341, TOPLEFT = {X = 0, Y = 0}, BOTTOMRIGHT = {X = 429, Y = 341}}, this=$bf1fdb74) at canvas.inc:75
#10 $0829beaa in TSPLASHFORM__PAINT (this=$bf1fd7c4) at splash.pp:126 #11 $08361e0e in main () at lazarus.pp:69
(gdb) quit

I hope that this could help you to debug it and find the problem ;)

Marc Weustink wrote 32 lines
At 13:29 15-11-2003, Raúl Moratalla wrote: >Thanks, It sould work ok now, but it gives the next error: > >[FORMS.PP] ExceptionOccurred > Sender=EACCESSVIOLATION > Exception=Access violation >TApplication.HandleException Access violation >TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM >[FORMS.PP] ExceptionOccurred [snip] >A few days ago, I downloaded the rpm package for lazarus and it worked >good. I removed the package and compiled lazarus from CVS but now I >can't execute the binary compiled :( Can you run lazarus from gdb and create a backtrace like : gdb lazarus break TAPPLICATION__HANDLEEXCEPTION run bt Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Raúl Moratalla
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

Thanks, It sould work ok now, but it gives the next error:

[FORMS.PP] ExceptionOccurred
Sender=EACCESSVIOLATION
Exception=Access violation
TApplication.HandleException Access violation
TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM [FORMS.PP] ExceptionOccurred
[TgtkObject.Destroy] WARNING: There are 2 unreleased DCs, a detailed dump follows:
[TgtkObject.Destroy] DCs: BF1E1D84 0858DA74
[TgtkObject.Destroy] WARNING: There are 9 unreleased GDIObjects, a detailed dump follows:
[TgtkObject.Destroy] GDIOs: BF209A94 BF1E1E44 BF209014 BF208FC4 BF208F74 0858DB34 BF055004
[TgtkObject.Destroy] gdiBitmap: 2
[TgtkObject.Destroy] gdiBrush: 2
[TgtkObject.Destroy] gdiFont: 3
[TgtkObject.Destroy] gdiPen: 1
An unhandled exception occurred at 0x00000000 :
EACCESSVIOLATION : Access violation
0x00000000
0x08553BF0 main, line 352 of ./include/picture.inc 0x0000D7B2

A few days ago, I downloaded the rpm package for lazarus and it worked good. I removed the package and compiled lazarus from CVS but now I can't execute the binary compiled :(

Marc Weustink wrote 45 lines
At 12:48 15-11-2003, Raúl Moratalla wrote: >Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of >lazarus from CVS. >I've compiled and installed it bu when I try to execute it, gives the >next error: > >[WARNING] ******************************************************* >[WARNING] ** ** >[WARNING] ** Multibyte character encodings (like UTF8) are not ** >[WARNING] ** supported at the moment. ** >[WARNING] ** For full keyboard event support, make sure that ** >[WARNING] ** the LANG environment var has no UTF8 ** >[WARNING] ** ** >[WARNING] ******************************************************* I'm happy I put that warning in :-) At the moment, the gtk interface can't handle multibyte character encodings very well. By default, RH9 and up ship with a multibyte language setting like LANG=en_US.UTF-8. Before running Lazarus reset it to en_US (or whatever language you prefer) I'm not sure if the next exeptions are the result of previous message (It should normally work, only some keypressed events aren't fired) >[FORMS.PP] ExceptionOccurred > Sender=EACCESSVIOLATION > Exception=Access violation >TApplication.HandleException Access violation >TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM >[FORMS.PP] ExceptionOccurred >[FORMS.PP] ExceptionOccurred >[FORMS.PP] ExceptionOccurred > >Anybody could solve this problem? If it still happens, let me know. Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Marc Weustink
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
Ra�l Moratalla wrote 13 lines
Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS. I've compiled and installed it bu when I try to execute it, gives the next error: [WARNING] ******************************************************* [WARNING] ** ** [WARNING] ** Multibyte character encodings (like UTF8) are not ** [WARNING] ** supported at the moment. ** [WARNING] ** For full keyboard event support, make sure that ** [WARNING] ** the LANG environment var has no UTF8 ** [WARNING] ** ** [WARNING] *******************************************************

I'm happy I put that warning in :-)

At the moment, the gtk interface can't handle multibyte character encodings very well. By default, RH9 and up ship with a multibyte language setting like LANG=en_US.UTF-8.
Before running Lazarus reset it to en_US (or whatever language you prefer)

I'm not sure if the next exeptions are the result of previous message (It should normally work, only some keypressed events aren't fired)

Show quoted text 10 lines
[FORMS.PP] ExceptionOccurred Sender=EACCESSVIOLATION Exception=Access violation TApplication.HandleException Access violation TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM [FORMS.PP] ExceptionOccurred [FORMS.PP] ExceptionOccurred [FORMS.PP] ExceptionOccurred Anybody could solve this problem?

If it still happens, let me know.

Marc

Reply by email

Raúl Moratalla

Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
I've compiled and installed it bu when I try to execute it, gives the next error:

[WARNING] ******************************************************* [WARNING] ** ** [WARNING] ** Multibyte character encodings (like UTF8) are not ** [WARNING] ** supported at the moment. ** [WARNING] ** For full keyboard event support, make sure that ** [WARNING] ** the LANG environment var has no UTF8 ** [WARNING] ** ** [WARNING] ******************************************************* [FORMS.PP] ExceptionOccurred
Sender=EACCESSVIOLATION
Exception=Access violation
TApplication.HandleException Access violation
TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM [FORMS.PP] ExceptionOccurred
[FORMS.PP] ExceptionOccurred
[FORMS.PP] ExceptionOccurred

Anybody could solve this problem?
Thanks

Reply by email

Marc Weustink
to Raúl Moratalla
Ra�l Moratalla wrote 8 lines
Thanks, It sould work ok now, but it gives the next error: [FORMS.PP] ExceptionOccurred Sender=EACCESSVIOLATION Exception=Access violation TApplication.HandleException Access violation TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM [FORMS.PP] ExceptionOccurred

[snip]

A few days ago, I downloaded the rpm package for lazarus and it worked good. I removed the package and compiled lazarus from CVS but now I can't execute the binary compiled :(

Can you run lazarus from gdb and create a backtrace like :

gdb lazarus
break TAPPLICATION__HANDLEEXCEPTION
run
bt

Marc

Reply by email

Bob Wingard
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
Marc Weustink wrote 25 lines
At 13:29 15-11-2003, Ra�l Moratalla wrote: >Thanks, It sould work ok now, but it gives the next error: > >[FORMS.PP] ExceptionOccurred > Sender=EACCESSVIOLATION > Exception=Access violation >TApplication.HandleException Access violation >TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM >[FORMS.PP] ExceptionOccurred [snip] >A few days ago, I downloaded the rpm package for lazarus and it worked >good. I removed the package and compiled lazarus from CVS but now I >can't execute the binary compiled :( Can you run lazarus from gdb and create a backtrace like : gdb lazarus break TAPPLICATION__HANDLEEXCEPTION run bt Marc

Marc,
I am getting a range exception message as well when I do a debug build of lazarus.

[FORMS.PP] ExceptionOccurred
Sender=ERANGEERROR
Exception=Range check error
TApplication.HandleException Range check error
TApplication.HandleException: there was another exception during showing the first exception
[TgtkObject.Destroy] WARNING: There are 1 unreleased DCs, a detailed dump follows:
[TgtkObject.Destroy] DCs: 404FC0A4
[TgtkObject.Destroy] WARNING: There are 4 unreleased GDIObjects, a detailed dump follows:
[TgtkObject.Destroy] GDIOs: 404FF734 404FFCA4 404FFE84 404FFED4 [TgtkObject.Destroy] gdiBrush: 1
[TgtkObject.Destroy] gdiFont: 1
[TgtkObject.Destroy] gdiPen: 1
[TgtkObject.Destroy] gdiRegion: 1

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.

Bob

Show quoted text 6 lines
_________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Marc Weustink
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
Bob Wingard wrote 5 lines
> 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.

Show quoted text 6 lines
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

Reply by email

Raúl Moratalla
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

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.

Marc Weustink wrote 37 lines
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

Reply by email

Raúl Moratalla
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

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

Raúl Moratalla wrote 62 lines
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

Reply by email

Vincent Snijders
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
Show quoted text 5 lines
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

Why don't you use fpc 1.0.10? That is still more stable for lazarus.

Show quoted text 20 lines
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. >

Regards,
Vincent.

Reply by email

Unknown author
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

Citeren Florian Klaempfl :

Show quoted text 15 lines
Vincent Snijders wrote: > On Tue, 18 Nov 2003 01:25:53 +0100 > 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 > > Why don't you use fpc 1.0.10? That is still more stable for lazarus. Hey, don't tell the people to use 1.0.10, we want as much as possible feedback about 1.9.0 :)

I just wanted to make sure this is a lazarus/lcl/gtk problem and not related to fpc 1.9, before giving a link to the fpc bug report pages. ;-)

_____________________________________________________________________ Snel en voordelig ADSL nu voor iedereen bereikbaar. Zon Breedband Budget voor EUR 14,95 per maand. Nu tijdelijk geen aansluitkosten. Bestel snel op zonnet.nl/breedband

Reply by email

Marc Weustink
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
Ra�l Moratalla wrote 9 lines
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

thats true, LANG=es is to short. It needs a country. See "locale -a" for all possible

[Snip]

Show quoted text 17 lines
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

Catch !! and fixed (and probably lots of other strange errors)

The default index (or key) generator of TDynHashArray could return negative indexes. I've fixed it and I've added some extra checks to make sure valid indexes are used.

Marc

Reply by email

Marc Weustink
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
Ra�l Moratalla wrote 5 lines
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

Show quoted text 69 lines
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

Reply by email

Unknown author
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

Citeren Ra�l Moratalla :

My knowledge isn't enough big for debug this problem, I hope you could debug and correct it. Thanks

I don't know what the cause of your problem is. Can you compile and run the examples?

Vincent.

_____________________________________________________________________ Snel en voordelig ADSL nu voor iedereen bereikbaar. Zon Breedband Budget voor EUR 14,95 per maand. Nu tijdelijk geen aansluitkosten. Bestel snel op zonnet.nl/breedband

Reply by email

Florian Klaempfl
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.
Vincent Snijders wrote 11 lines
On Tue, 18 Nov 2003 01:25:53 +0100 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 Why don't you use fpc 1.0.10? That is still more stable for lazarus.

Hey, don't tell the people to use 1.0.10, we want as much as possible feedback about 1.9.0 :)

Reply by email

Raúl Moratalla
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

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

Reply by email

Raul Moratalla
to Raúl Moratalla: Hi! I'm using Fedora Core and I've downloaded the latest sourcce code of lazarus from CVS.

It works great now!

El Mi�rcoles 19 Noviembre 2003 01:48, Marc Weustink escribi�:

Show quoted text 47 lines
At 11:59 18-11-2003, Ra�l Moratalla wrote: >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 thats true, LANG=es is to short. It needs a country. See "locale -a" for all possible [Snip] >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 Catch !! and fixed (and probably lots of other strange errors) The default index (or key) generator of TDynHashArray could return negative indexes. I've fixed it and I've added some extra checks to make sure valid indexes are used. Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email