Serverless Framework: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory - aws-lambda

When trying to deploy my application with Serverless Framework using the properties:
package:
individually: true
i got the follow error:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
My NodeJS version is 10..

Some people said to enhance the NodeJS memory with the code:
export NODE_OPTIONS="--max-old-space-size=8192"
But i had no happy result.
I just ended up this error installing a newer version of NodeJS. In my case v14.15.4

Related

Wikibase installation Trouble

During installing Wikibase based on the guideline (https://www.mediawiki.org/wiki/Wikibase/Installation), the following error was occurred. As I know, Wikibase 1.37 is not released yet. Any there any solutions?
$php maintenance/update.php
'''
PHP Fatal error: Uncaught ExtensionDependencyError: WikibaseRepository is not compatible with the current MediaWiki core (version 1.36.2), it requires: >= 1.37.
in /usr/local/var/www/w/includes/registration/ExtensionRegistry.php:406
'''
Thanks in advance.
H.L

After composer update Laravel project, getting VirtualAlloc() failed: [0x00000008] Not enough memory error [duplicate]

This question already has answers here:
Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted
(39 answers)
Closed 2 years ago.
I am working on a laravel project and after taking clone of files from Github.
When Running Composer update command bellow error is coming
VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.
VirtualAlloc() failed: [0x00000008] Not enough memory resources are available to process this command.
PHP Fatal error: Out of memory (allocated 868220928) (tried to allocate 58720256 bytes) in phar://C:/composer/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 90
Fatal error: Out of memory (allocated 868220928) (tried to allocate 58720256 bytes) in phar://C:/composer/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 90
you should set your memory_limit = -1 in your php config php.ini, but do not forget in production to let the default memory_limit and only do a composer install --no-dev.
This way, composer will do the install of your vendors based on composer.lock file.
You should also do the composer install --no-dev on your local machine to make sure that you have no developpement dependencies not compatible with the production environnement.

npm run build error - malloc: error for object 0x1023e9fd0: pointer being freed was not allocated

node version: 8.10.0
npm -v: 5.6.0
system: mac
on running npm run build, system throws following error
67% building modules 2081/2181 modules 100 active
...ent/completed-shipment.component.scssng(85928,0x70000312e000)
malloc: *** error for object 0x1023e9fd0: pointer being freed was not
allocated
Clearly this is because of css and probably related to variables/functions in css. But not sure where the issue lies. This was working clean 2 days earlier but started to fail now. Any known issues recently on node-sass/libsass?

Golang: panic before malloc heap initialized

I run go build in the $GOPATH of my arch Vagrant box.
But it prints out
runtime: panic before malloc heap initialized
fatal error: runtime: cannot allocate heap metadata
And the box is 3.10.9-1-ARCH x86_64, memory 242M.
Why I can't build go files in the box?
Thanks in advance.
Looks like this is caused by not enough virtual memory
$ ulimit -v 242000
$ go build prog.go
runtime: panic before malloc heap initialized
fatal error: runtime: cannot allocate heap metadata
64bit go needs lots of virtual memory space but not necessarily that much real memory.
You could fix this by allocating more memory to the container.
You could also play with the setting of /proc/sys/vm/overcommit_memory.
You could also try allocating swap to the container (if possible).

dbx: internal warning writable memory segment of size 0

While trying to load a core file using dbx I get the following warning:
dbx: internal warning: writable memory segment 0xfa8b0000[16384] of size 0 in core
There doesn't seem to be an explanation in:
(dbx) help core
What does this message mean?
EDIT
The rest of the output:
core file header read successfully
Reading ld.so.1
dbx: internal error: signal SIGBUS (invalid address alignment)
dbx's coredump will appear in /tmp
Abort (core dumped)
And dbx exits without loading the core.
Got solved by upgrading Solaris Studio to version 12.3 and using the newer dbx from there.
One of the reasons why this could happen is because dbx expects the absolute path to get the object files, try giving the
dbx <PATHTOBINARY>/binaryfile
Of course, you can upgrade dbx to the latest version to fix the same.

Resources