Recent

Author Topic: No memory left  (Read 16173 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: No memory left
« Reply #15 on: August 24, 2015, 12:04:22 pm »
Which process eats so much memory, the IDE or ppc386 ?

1. using lazarus IDE on windows is an own process, and so is the compiler (ppc386 or ppcx64)
2. the compiler uses the internal linker, which typically doesn't use more than 250MB.  The high memory values (1GB+) are for external linking, not internal, which is not default on Windows.

Temporarily disabiling smartscreen and/or window defender and other security software might rule out those as problem source.

balazsszekely

  • Guest
Re: No memory left
« Reply #16 on: August 24, 2015, 12:05:17 pm »
Quote
aradeonas
I tested it in a clean 64bit Windows 10 with the last trunk version of FPC and Lazarus.
I'm almost 100% convinced that this is privilege issue. Try the following:
Right click(Lazarus and fpc folder)-->Go to security tab-->Add user "Everyone" to the list then give it full rights.

rvk

  • Hero Member
  • *****
  • Posts: 6163
Re: No memory left
« Reply #17 on: August 24, 2015, 12:07:02 pm »
Are you sure the problem at your end is in Compiling lazarus.exe ??

For me, at the moment, the problem is during Linking.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #18 on: August 24, 2015, 12:17:22 pm »
Which process eats so much memory, the IDE or ppc386 ?

1. using lazarus IDE on windows is an own process, and so is the compiler (ppc386 or ppcx64)
2. the compiler uses the internal linker, which typically doesn't use more than 250MB.  The high memory values (1GB+) are for external linking, not internal, which is not default on Windows.

Temporarily disabiling smartscreen and/or window defender and other security software might rule out those as problem source.
ppc386.
Also changes privileges to full control for user and turned off all security system and now they do nothing but I get error again while compiling lazarus.pp .

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: No memory left
« Reply #19 on: August 24, 2015, 02:00:06 pm »
When changing permissions and ownership changes, a tick box must be selected to recursively update all permissions

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #20 on: August 24, 2015, 03:26:53 pm »
When changing permissions and ownership changes, a tick box must be selected to recursively update all permissions
Iv done that and all the sub folder and files's permissions changed for "Authenticated Users".

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #21 on: September 02, 2015, 05:09:42 pm »
OK it solved.
Today I get last fpcup again and run it and now it works OK,maybe there is a change in it or I repeate a mistake multiple time but now it works and I happy ;)

Thank you.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #22 on: September 08, 2015, 09:10:44 am »
I'v got this problem again with updating with fpcup.
I just run fpcup for updating and after it finishes I cant rebuild my Lazarus and also it gives error like this :
Quote
fpcup: info: InstallerUniversal: error trying to rebuild Lazarus.
Details:
fpcup: info: Error running fpcup. Technical details: error executing sequence suggestedpackages; line: 5, param: suggestedpackages
fpcup: info: Error running fpcup. Technical details: error executing sequence UniversalDefault; line: 2, param: suggestedpackages
fpcup: info: Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 8, param: UniversalDefault
FPCUp failed.
And if i want to clean it it gives :
Quote
fpcup: info: Error: Failed to load sequence :DefaultWin32clean
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- run again with --verbose and check for make, lazbuild errors etc.
- if compiling Lazarus, make sure your lhelp is closed.
- try removing all intermediate files by running fpcup with the --clean option
  and/or manually deleting all *.ppu/*.a/*.o followed by svn up
- if that does not work: use the --uninstall option to remove all files
  including your FPC and Lazarus directories
- remove the files in the bootstrap directory. fpcup will redownload if required

I run fpcup like this :
Quote
fpcup --inifile=mysettings.ini --inisection=TrunkAll
and ini is like this :
Code: [Select]
[TrunkAll]
; Full FPC TRUNK + LAZARUS TRUNK download and compile
installdir=c:\development\TrunkAll
; Here use FPC trunk instead of the default fixes version: (accepts shortcuts: 2.7.1,trunk,fixes,2.6.2,2.6.0)
;fpcurl=http://svn.freepascal.org/svn/fpc/trunk
fpcurl=trunk
;fpcopt="-g -gl -O1"
fpcopt="-gl -O2 -g- -Xs"
; Here use LAZ trunk which is also default: (accepts shortcuts: trunk,1.3,1.0.14,1.0.12)
lazurl=trunk
;lazopt="-g -gl -O1"
lazopt="-gl -O2 -g- -Xs"
; Use our own names to avoid overwiting defaults
fpcuplinkname=UpTrunkAll
lazlinkname=TrunkAll
; Keeps changes you made to the svn checkout:
keeplocalchanges=false
; You can enable/disable modules specified in fpcup.ini:
anchordocking=1
; bgracontrols=1
brookframework=1
codelibrarian=1
dcpcrypt=1
doceditor=1
ecc=1
fblib=1
fpcdocs=1
fpcup=1
; fpspreadsheet=1 <<<<<<<<<< already in lazarus_ccr
glscene=1
greyhound=1
;helpfpc=1
;helplazarus=1
indy=1
; installerlazwin=1 <<<<<<<<<< windows installer not needed
; kzdesktop=1 <<<<<<<<<< anchor docking is more stable
lazarus_ccr=1
;lazbuild=1
lazdatadesktop=1
; lazpackager=1
; lazpaint=1
lazres=1
leptonica=1
lhelp=1
ljgridutils=1
lnet=1
mormot=1
mupdf=1
nxpascal=1
OCRivist=1
pascalsane=1
;pascalscada=1
patchwrangler=1
; rx=1 <<<<<<<<<< already in suggestedpackages
simplegraph=1
;suggestedpackages=1
synapse=1
tesseract=1
tiopf=1
;USERIDE=1
vampyre=1
; vtv=1 <<<<<<<<<< already in lazarus_ccr
;zeos=1
;
abbrevia=1
baregame=1
;bgragames=1
;cm630commons=1
;lazmer=1
turbobird=1
uos=1
wst=1
; notepas=1
; lazradio=1
; zcad=1
; laz4android=1

Fahmy Rofiq

  • Jr. Member
  • **
  • Posts: 83
Re: No memory left
« Reply #23 on: September 11, 2015, 09:57:27 am »
This also happens to me.
Rebuilt lazarus give me error no memory left.
Windows 10 x64, FPC Trunk + Laz Trunk.

So now i'm using FPC 3.0.1 + Laz Trunk, and it's working fine. (with same installed packages)
Lazarus Trunk + FPC Fixes 32bit
Windows 10 x64

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: No memory left
« Reply #24 on: September 11, 2015, 01:24:34 pm »
The problem is Indy, I think !

If Lazarus is recompiled with Indy installed, Lazarus errors out.
The error: IdStreamVCL, checksum changed for IdGlobal.

You are not the only one:
http://lists.lazarus.freepascal.org/pipermail/lazarus/2013-September/083459.html
http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-March/061679.html

I have made a patch for Indy some time ago:
https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/blob/master/componentpatches

But even with this patch, recompilation may fail.

In general, recompiling Lazarus with as many packages as are made available by script TrunkAll may fail due to any of the packages !

A resolution (patch) for the Indy problem would be very welcome.

So, 1) remove Indy through Lazarus and 2) disable Indy for fpcup inside mysettings.ini, and 3) try again !

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: No memory left
« Reply #25 on: September 11, 2015, 03:55:49 pm »
I had some trouble with indy too, and deduplicating the .INC files solved the trouble.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: No memory left
« Reply #26 on: September 22, 2015, 11:12:12 am »
I had some trouble with indy too, and deduplicating the .INC files solved the trouble.
Can you explain more how can I solve this problem?

rodrigogs2

  • Newbie
  • Posts: 2
Re: No memory left
« Reply #27 on: April 05, 2016, 01:16:09 pm »
Hello there!

It's a outdated topic but I had the same issue on these days and I wish to share my experience.

I had downloaded the .7z version of laz4android  (https://sourceforge.net/projects/laz4android/files/laz4android1.5-50093-FPC3.1.1.7z/download and the AndroidModuleWizard http://forum.lazarus.freepascal.org/index.php/topic,21919.0.html created by jmpessoa and shared at this same forum (http://forum.lazarus.freepascal.org/index.php/topic,21919.0.html).

When I was installing the third and last package (amw-tools-ide) I got the message 'No memory left' when the lazarus was rebulding (at the LINKING stage).

The solution I have found was to open lazarus with a administrator account to install this package sucessfully.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: No memory left
« Reply #28 on: April 05, 2016, 03:46:06 pm »
 
An another solution to IDE rebuild  "No memory left'" .... [after try to install new package...]

1. Lazarus IDE menu "Tools" --> Configure "Build Lazarus"...

2. On Form/Dialog:

[Clean up]

-->> check only  "Clean all"

[Common Settings]

-->> check  only "Restart after building IDE"

3.  Build

Thanks to All!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: No memory left
« Reply #29 on: April 05, 2016, 05:10:17 pm »
I don't want to be grumpy, but I have the same too on an 8 G machine.
I suspect that idiotically fragmenting memorymanager is the cause.
Grumpy, because I have said this for years. It is unfit for purpose when many files are involved in the same process. Plz take note ;) (Nobody ever did, but it is somewhat true that this could be the cause)
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018