Closed SterlingVix closed 3 years ago
Sounds a bit like #217
@mirh - it does sound very similar. I think the main differences between #217 and this are:
It may be the same underlying problem. I don't work with memory allocation / threading / garbage collection / etc. enough for me to hazard a guess, unfortunately.
Your call if you'd like to close this and work on #217 canonically. Thanks.
I tried dumping again today with a smaller subset of files.
You can see a steady climb in memory; it's hit 100% but hasn't stalled.
What I have noticed is, at this point, most of the files are stuck open. They aren't moving; the remaining files are (2 or 3 of the entries here) are opening files, processing them, closing them, and the hung files remain hung.
The process nearly hung on these last 4 files (one of them just cleared):
These don't appear to be unusually large files:
BioD_KroPrL_300HospEnt.pcc
is under 9MBioP_HorCr1.pcc
is just under 19MBioD_TwrMwA_207HangarAFight4.pcc
is about 10MI tried dumping the individual files that failed:
BioD_KroPrL_300HospEnt.pcc
started running up memory and didn't finish. Just this one file was clearly on its way to eating up all my resources without completing.BioP_HorCr1.cpp
BioD_TwrMwA_207HangarAFight4.cpp
.So the memory leak appears to be file-specific, which makes me think that a parser or something is choking unexpectedly.
The files listed above ^^^ are all stock from LE2, copied directly from the CookedPC dir into a backup dir I'm using for modding. All the other files copied in this same way processed OK.
I'm attaching BioD_KroPrL_300HospEnt.pcc
, which is the smallest of the files in question (zipped so Github will accept the upload).
Yea this is a definite memory leak. We haven't got around to doing leak checks yet. From my preliminary tests this doesn't seem to happen on LE3 dump for me, at least in debug mode. We will probably look into this this weekend.
Thanks for investigating further and finding problem files! It was trying to use to the wrong decompiler for unrealscript functions, which blew up fairly spectacularly. That's fixed in the latest nightly. I'm leaving this issue open for now though as I want to do more thorough testing of the PackageDumper to confirm there's no more issues, and maybe speed it up a bit.
Sped PackageDumper up a bit, and it seems to work fine now. I'll close this, but if you're still having issues, let us know!
Sped PackageDumper up a bit, and it seems to work fine now. I'll close this, but if you're still having issues, let us know!
Amazing, thanks @SirCxyrtyx , all!!! I'll try dumping the problem files today and update you.
🎉 The 3 problem files all dumped! Thanks all!
ME3Tweaks tool: Legendary Explorer (from Beta nightlies, Jul 4) -> Package Dumper
ME game: LE2
Bug
When trying to dump all of LE2 using the Package Dumper the process consistently hangs a little over half way through. I cancelled the first attempt and tried again; memory is maxed out but HD seems to still have activity. Pic attached:
To Reproduce
Expected behavior
The package dumper should dump all game files to .txt files in the designated output directory. The process should complete after all files are written.
Version information:
Sorry, I'm not on my gaming PC right now, but this is the nightly build from July 4th.
Stack trace
No error or trace
Other information
None, but I can provide more if asked. My system specs should be adequate to complete this process.
Mgamerz confirmed there is a mem leak on Discord (also suggested a thread cap of 6):