We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't build the latest version
Successful build
yarn run v1.22.5 $ webpack && gulp build 92% sealing asset processing TerserPlugin <--- Last few GCs ---> [27576:0x2d5ac40] 155381 ms: Mark-sweep 951.6 (1007.4) -> 944.3 (1007.5) MB, 1 500.7 / 0.0 ms (average mu = 0.183, current mu = 0.139) allocation failure scav enge might not succeed [27576:0x2d5ac40] 157049 ms: Mark-sweep 952.0 (1007.8) -> 944.9 (1008.3) MB, 1 441.4 / 0.0 ms (average mu = 0.161, current mu = 0.136) allocation failure scav enge might not succeed <--- JS stacktrace ---> ==== JS stack trace ========================================= 0: ExitFrame [pc: 0x1409219] Security context: 0x191fa66408d1 <JSObject> 1: getArg [0x2275dde87bd1] [/home/misskey/misskey/node_modules/terser-webpac k-plugin/node_modules/terser/node_modules/source-map/lib/util.js:~18] [pc=0x27d2 378b34bf](this=0x14cdb9a45e91 <Object map = 0x253df3f69e9>,0x2591bf876ba1 <Objec t map = 0x129325f63c59>,0x3465edba9dd1 <String[#9]: generated>,0x099e9a7404b1 <u ndefined>) 2: arguments adaptor frame: 2-... FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaS cript heap out of memory 1: 0xa17c40 node::Abort() [/usr/bin/node] 2: 0xa1804c node::OnFatalError(char const*, char const*) [/usr/bin/node] 3: 0xb95a7e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bo ol) [/usr/bin/node] 4: 0xb95df9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, c har const*, bool) [/usr/bin/node] 5: 0xd53075 [/usr/bin/node] 6: 0xd53706 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/bin/node] 7: 0xd5ffc5 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageC ollector, v8::GCCallbackFlags) [/usr/bin/node] 8: 0xd60e75 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v 8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node] 9: 0xd6392c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::A llocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment ) [/usr/bin/node] 10: 0xd2a34b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::All ocationType, v8::internal::AllocationOrigin) [/usr/bin/node] 11: 0x106c91e v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long *, v8::internal::Isolate*) [/usr/bin/node] 12: 0x1409219 [/usr/bin/node] Aborted error Command failed with exit code 134. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm and.
git pull
yarn install
NODE_ENV=production yarn build
Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-121-generic x86_64) 1 thread, 2GB RAM Misskey 12.48.2 Node v12.19.0 Redis 4.0.9 PostgreSQL 10.14
The text was updated successfully, but these errors were encountered:
can you enable swap in build time? build phase using large amount of memory, so may fail if not enough memory.
Sorry, something went wrong.
@rinsuki I forgot to mention it but I have 2GB swap. RAM usage only reaches 1.5GB. Swap is never used.
Please try
NODE_OPTIONS="--max-old-space-size=2048" NODE_ENV=production yarn build
or increase value from 2048
ヒープで怒られるときこれじゃないとダメかも
@mei23 Thanks, that worked
Related to #4826
No branches or pull requests
💡 Summary
I can't build the latest version
🙂 Expected Behavior
Successful build
Log
📝 Steps to Reproduce
git pull
yarn install
NODE_ENV=production yarn build
📌 Environment
Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-121-generic x86_64)
1 thread, 2GB RAM
Misskey 12.48.2
Node v12.19.0
Redis 4.0.9
PostgreSQL 10.14
The text was updated successfully, but these errors were encountered: