amilajack / erb-sqlite-example

An example of erb with native dependencies (sqlite3 in this case)
MIT License
47 stars 23 forks source link

Production Mode - FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #4

Closed rahmatkruniawan closed 7 years ago

rahmatkruniawan commented 7 years ago

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I have been change this in package json

"package-win": "npm run build && build --win --x64 --max_old_space_size=8224",

But stil got that error

amilajack commented 7 years ago

Interesting. Are you on macOS? What happens when you npm run package?

rahmatkruniawan commented 7 years ago

@amilajack no, I'm on windows. when I run yarn package still got

[1] 90% recording 0ms recording [1] 91% additional asset processing [1] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

amilajack commented 7 years ago

Hmm that's interesting. What are your node and npm versions? Also how big is your build?

amilajack commented 7 years ago

Also see this bug: https://github.com/chentsulin/electron-react-boilerplate/issues/1045

rahmatkruniawan commented 7 years ago

@amilajack my node version is 6.9.1 and I user yarn version 0.22.0. How big my project ? hmm I don't know to tell how big my project. Can you advise me how to measure my project?

amilajack commented 7 years ago

Sure. If you running npm run build-renderer and then npm run build-main. Webpack should output build sizes immediately after the build finishes.

amilajack commented 7 years ago
screen shot 2017-06-08 at 1 03 44 pm

Here's an example of the main processes's build size

rahmatkruniawan commented 7 years ago

when I run npm run build-renderer still got some error . and command of npm run build-main main-des I think that's size not all of them, becacuse not correctly compiled

amilajack commented 7 years ago

Did you see chentsulin/electron-react-boilerplate#1045?

rahmatkruniawan commented 7 years ago

@amilajack sry I forgot to save my edited file not big project, i think. snapshot_2017-6-9_3-27-59

amilajack commented 7 years ago

But did you try changing to devtool: 'eval'? Please try that

rahmatkruniawan commented 7 years ago

@amilajack sry I forgot to save it. Working fine for now. Thanks for help