SecureSECO / searchSECO-miner

v2 js miner implementation for SearchSECO
https://docs.secureseco.org/searchseco-integration
GNU General Public License v3.0
3 stars 3 forks source link

Javascript parser chokes on waterfall project #67

Open slingerbv opened 3 weeks ago

slingerbv commented 3 weeks ago

npm run execute -- check https://github.com/joenali/waterfall gives "| parser | ParserBase.js 104 | [ DEBUG ] Parsing ./source/js/bundle_pin_5.js"

Problem seems to be here: Logger.Debug(⁠ Parsing ${fileName} ⁠, Logger.GetCallerLocation()); const clearCache = idx == batchSize - 1; const hashes = this.ParseSingle(fileName, data, clearCache); Logger.Debug( ⁠ Finished parsing file ${fileName}. Number of methods found: ${hashes.length} ⁠, Logger.GetCallerLocation() );

Probably a type problem?

slingerbv commented 1 week ago

Probably because process chickens out at 10GB on most computers, although not on Aminul's ;-). Don't know what's wise: why is the parser consuming so much memory? Probably same problem as the large files problem.