Skip to content
New issue

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

ImportingPals.cmd creating error "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" #8

Open
soultaco83 opened this issue Feb 6, 2024 · 2 comments

Comments

@soultaco83
Copy link

Using version 1.5.7(I also tried the dev version found in issue #3 ) for windows during the importPals process, the Level.sav.json is created. But once it attempts to create the new.Level.sav.json I am presented with the following message:

UESave file. Converting to JSON...
Converted C:\Users\Games\Downloads\Saved\SaveGames\0\07D763118E504690AE0B7E9F76022A9F\Level.sav to JSON.

<--- Last few GCs --->

[39500:0000025F4B1FA060] 151988 ms: Mark-sweep 1976.3 (2096.0) -> 1976.3 (2096.0) MB, 381.3 / 0.0 ms (average mu = 0.132, current mu = 0.000) allocation failure scavenge might not succeed
[39500:0000025F4B1FA060] 152366 ms: Mark-sweep 1976.3 (2096.0) -> 1976.3 (2096.0) MB, 377.0 / 0.0 ms (average mu = 0.071, current mu = 0.000) allocation failure scavenge might not succeed

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x0351096c08d1
0: builtin exit frame: stringify(this=0x0351096dec89 ,0,0x018cac6401b9 ,0x01c05c3d3471 ,0x0351096dec89 )

1: /* anonymous */ [000001DDFB0C2FB1] [C:\Users\Games\Downloads\node_modules\JSONStream\index.js:196] [bytecode=00000004225BE691 offset=28](this=0x01c05c3d33f9 <Stream map = 000000F7011...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF60F69C95F napi_wrap+112799
2: 00007FF60F63CF36 v8::base::CPU::has_sse+55702
3: 00007FF60F63DDC3 v8::base::CPU::has_sse+59427
4: 00007FF60FE59D9E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF60FE41E71 v8::SharedArrayBuffer::Externalize+833
6: 00007FF60FD0E30C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436
7: 00007FF60FD19540 v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312
8: 00007FF60FD16064 v8::internal::Heap::PageFlagsAreConsistent+3204
9: 00007FF60FD0B863 v8::internal::Heap::CollectGarbage+1283
10: 00007FF60FD09ED4 v8::internal::Heap::AddRetainedMap+2452
11: 00007FF60FD31B8F v8::internal::Factory::NewRawTwoByteString+95
12: 00007FF60FA1FE7B v8::internal::StringStream::ClearMentionedObjectCache+9579
13: 00007FF60FC44AA5 v8::internal::TimedHistogram::Stop+2373
14: 00007FF60FC459EB v8::internal::TimedHistogram::Stop+6283
15: 00007FF60FC469B7 v8::internal::TimedHistogram::Stop+10327
16: 00007FF60FC469B7 v8::internal::TimedHistogram::Stop+10327
17: 00007FF60FC483E4 v8::internal::TimedHistogram::Stop+17028
18: 00007FF60FC4741E v8::internal::TimedHistogram::Stop+12990
19: 00007FF60FC469B7 v8::internal::TimedHistogram::Stop+10327
20: 00007FF60FC469B7 v8::internal::TimedHistogram::Stop+10327
21: 00007FF60FC469B7 v8::internal::TimedHistogram::Stop+10327
22: 00007FF60FC469B7 v8::internal::TimedHistogram::Stop+10327
23: 00007FF60FC483E4 v8::internal::TimedHistogram::Stop+17028
24: 00007FF60FC4AFF0 v8::internal::TimedHistogram::Stop+28304
25: 00007FF60FDD3624 v8::internal::Builtins::builtin_handle+84900
26: 00007FF6102A726D v8::internal::SetupIsolateDelegate::SetupHeap+546893
27: 00007FF61022C11C v8::internal::SetupIsolateDelegate::SetupHeap+42748
28: 0000014F10FDB4C1
Import complete
Press any key to continue . . .

@soultaco83
Copy link
Author

SaveGames.zip
Uploaded save

@Makeshift
Copy link

I'm not sure what @CerisWhite is using to compile it into an executable, but I think you should still be able to pass regular NodeJS env vars to it, so this may work to increase node's memory limit:

set NODE_OPTIONS=--max-old-space-size=4096
.\Lantern.exe ExportPals C:\Users\Games\Downloads\Saved\SaveGames\0\07D763118E504690AE0B7E9F76022A9F\Level.sav

(I think the above is correct for Windows CMD)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants