CerisWhite / Lantern

A Palworld save-splitting tool to make modifications way easier
Other
10 stars 1 forks source link

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

Open soultaco83 opened 5 months ago

soultaco83 commented 5 months ago

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 commented 5 months ago

SaveGames.zip Uploaded save

Makeshift commented 5 months ago

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)