Memory problems while generating

my PC has 32 Gig RAM.
PHP.INI is set to:

max_execution_time = 3600

; Maximum amount of time each script may spend parsing request data. It’s a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 2048

; Maximum input variable nesting level
; http://php.net/max-input-nesting-level
max_input_nesting_level = 256

; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 20000

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 1024M

but I get errors when generating:

[B]Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 43546541 bytes) in C:\Program Files\NetMake\v91\wwwroot\scriptcase\devel\lib\php \functions.open.inc.php on line 2324

[ATTACH=JSON]{“data-align”:“none”,“data-size”:“full”,“title”:“2018-09-26 20_33_15-ScriptCase - Development - admin.jpg”,“data-attachmentid”:84911}[/ATTACH]

any clue ?[/B]

2018-09-26 20_33_15-ScriptCase - Development - admin.jpg

Good morning Frogie!

Your PC has more than enough RAM, but you are limiting your SC IDE RAM to 1024M bytes. (that is 1GB RAM).

Your Fatal Error shows you this, but it is a bit confusing. 1073741824 bytes is equal to 1.073741824GB. Look those up in Google :slight_smile: “how many gigs is 1073741824 bytes”

So you need to simply allocate more RAM in your memory limit.
I am on a machine with 32Gb RAM and I have my limit set to: [TABLE]
[TR]
[TD]memory_limit[/TD]
[TD]15000M[/TD]
[/TR]
[/TABLE]
That is 15GB. It allows the SC IDE to use up to that much memory for big things , like generating a lot of complex apps or doing an conversion to a newer SC version. That is mainly why mine is set so high. Going from SC8.2 to 9.2 would not work on less RAM for me. But I have like 300 apps in each project.

Anyway, let all of us SC users know what you tried and what worked :slight_smile:
Jamie

hi Frogie, for memory limit try "memory_limit = -1"in place of “memory_limit = 1024” it should be better,
Nicolas

This worked for smaller project (about 200 Apps), but it does not for another one. My largest projects has 450+ Apps.
Tierd everything possible (inclouding your -1 suggestion) but keep getting memory error.

I am having the exact same error all of a sudden. I changed my php.ini file to 1500M as suggested, but still indicates the same amount of ‘allowed memory’. Is there something we need to do to get Scriptcase to see it has 15Gig instead of 1Gig?
I am using Windows 10 if that makes a difference.
[ATTACH=JSON]{“alt”:“Click image for larger version Name: Scriptcase_Error-15gig.PNG Views: 1 Size: 38.6 KB ID: 87121”,“data-align”:“none”,“data-attachmentid”:“87121”,“data-size”:“full”}[/ATTACH]

Scriptcase_Error-15gig.PNG

Update for anyone else looking for this information. I’m not sure of any repercussions (haven’t had any yet) but I ended up changing the following line in the following 2 files:

~\NetMake\v9\components\php\php.ini-development
~\NetMake\v9\components\php\php.ini-production

Changed FROM: memory_limit = 128M
TO: memory_limit = 1500M

Then had to reboot my computer (still didn’t work until after a reboot).

Now everything is working again. Not sure if both of the file edits are necessary, but it was critical that I was able to build my project for deployment and I didn’t want to ‘test’ anything in fear I might break something. It must have been a recent Scriptcase update that caused the problem because I had made no changes to my primary project. I simply copied the project under a different name and made tweaks to the new copied project…then started having issues. So tried to deploy my primary/initial project (where I had made no changes) and had the same issue. Can build again, so all good.

On a side note, the project has ~250 applications in it.

If you’ve ever var_dump()'ed the $_SESSION variable, you’d realise why having only 1024M (i.e. 1 Gb) of available memory isn’t a whole lot. Scriptcase goes to town on things in $_SESSION, surpassing only Chrome in being RAM hungry. Perhaps an idea for the dev team to add an option in the global/server settings to change this variable from within the UI, as it’s wholly unclear what is and what isn’t being overwritten on a Scriptcase update.

Two PHP ini flies? Is that an SC on Windows thing?

On my Linux server I only have one:

/opt/NetMake/v9/components/apache/conf/php.ini

I have a problem in the production step. I’m doing the step test from a virtual centos to another virtual centos. All good, but when placing the connector to the database, it is done but after refreshing the page it disappears. Being such a delicate process, I did not find anywhere to fix it. Do you have any idea of ​​what happens to me?

There is mention of this being fixed in the latest release 9.3.009. They mention tar.gz but maybe also for .zip?

I had this issue on Mac and the latest release has fixed it for me.