Open gigi206 opened 6 years ago
So it seems to be complaining about the invalid ~/.ungitrc
.
This obviously needs more fix from ungit side but for now can you run echo '{}' > ~/.ungitrc
and see if that fixes your problem?
I tried
echo '{}' > ~/.ungitrc
or removed the file, but unfortunatly same behavior
It's strange, I have no problem on Windows but on Linux it crashes only when I try to patch :
<--- Last few GCs --->
[8797:0x2cc46b0] 35321 ms: Mark-sweep 599.4 (607.5) -> 599.4 (607.5) MB, 180.5 / 0.0 ms allocation failure GC in old space requested
[8797:0x2cc46b0] 35506 ms: Mark-sweep 599.4 (607.5) -> 599.3 (606.0) MB, 184.9 / 0.0 ms last resort GC in old space requested
[8797:0x2cc46b0] 35686 ms: Mark-sweep 599.3 (606.0) -> 599.3 (606.0) MB, 180.2 / 0.0 ms last resort GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x1de29dc25529 <JSObject>
1: /* anonymous */(aka /* anonymous */) [/home/gigix/node-v9.9.0-linux-x64/lib/node_modules/ungit/src/git-parser.js:~287] [pc=0x2e4966d44a6e](this=0x3651a7802201 <null>,patchLineList=0x26317d0df789 <JSArray[4]>,text=0x26317d0df6c9 <String[163]\: diff --git a/1.txt b/1.txt\nindex 56a6051..c55eb7a 100644\n--- a/1.txt\n+++ b/1.txt\n@@ -1 +1,3 @@\n-1\n\\ No newline at end of file\n+0\n+1\n+2\n\\...
stderr: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1:
stderr: node::Abort() [/home/gigix/node-v9.9.0-linux-x64/bin/node]
2:
stderr: 0x8cefac [/home/gigix/node-v9.9.0-linux-x64/bin/node]
3:
stderr: v8::Utils::ReportOOMFailure(char const*, bool) [/home/gigix/node-v9.9.0-linux-x64/bin/node]
4:
stderr: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/home/gigix/node-v9.9.0-linux-x64/bin/node]
5:
stderr: v8::internal::Factory::NewUninitializedFixedArray(int) [/home/gigix/node-v9.9.0-linux-x64/bin/node]
6:
stderr: 0xd89393 [/home/gigix/node-v9.9.0-linux-x64/bin/node]
7:
stderr: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/home/gigix/node-v9.9.0-linux-x64/bin/node]
8: 0x2e4966b842fd
Stopped keeping ungit alive
I'm trying to set up a test env and profile the memory usage but is this done in a small vm with <2g ram?
It is not done on a VM but on my computer (I have a dual boot) with 16G memory.
https://stackoverflow.com/a/35650414 :
To solve this issue you need to run your application by increasing the memory limit by using the option --max_old_space_size. By default the memory limit of Node.js is 512 mb.
node --max_old_space_size=2000 server.js
Hello,
I downloaded node-V9.9.0 and I install ungit with npm :
npm install -g ungit
When I want to commit a patch (I click on the filename patch, then commit), the server crash.
From webpage :
From console nodejs :
Error seems to be : JavaScript heap out of memory
I use on my laptop :