Open mochechan opened 7 years ago
It worked with raspberry in the same node version and I run it for many times. But it didn't show the same error.
You can try this node --max_old_space_size=<size> yourNodeFile.js
to change the memory limit.
Maybe it worked after change it.
==== C stack trace ===============================
(empty)
Hiver IoT starter Kit for BLE Application.
Please key in your option [1-4] and hit enter: 2 2
Welcome to ble-shepherd World...
The server is up and running, press Ctrl+C to stop server.
Please power on your modules.
<--- Last few GCs --->
19634 ms: Mark-sweep 10.4 (247.3) -> 9.3 (241.3) MB, 145.9 / 0.1 ms [allocation failure] [GC in old space requested]. 19770 ms: Mark-sweep 9.3 (466.0) -> 9.3 (466.0) MB, 136.2 / 0.0 ms [allocation failure] [GC in old space requested]. 19912 ms: Mark-sweep 9.3 (690.8) -> 7.8 (687.8) MB, 141.4 / 0.0 ms [last resort gc]. 20039 ms: Mark-sweep 7.8 (687.8) -> 7.6 (685.8) MB, 127.2 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory Aborted
npm ERR! Linux 4.4.38-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start" npm ERR! node v6.9.4 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! hiver-iot-kit-ble@1.0.0 start:
NODE_ENV=production node app
npm ERR! Exit status 134 npm ERR! npm ERR! Failed at the hiver-iot-kit-ble@1.0.0 start script 'NODE_ENV=production node app'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the hiver-iot-kit-ble package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! NODE_ENV=production node app npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs hiver-iot-kit-ble npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls hiver-iot-kit-ble npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /home/pi/hiver-iot-kit-ble/npm-debug.log