Giter VIP home page Giter VIP logo

Comments (7)

raziel420 avatar raziel420 commented on July 30, 2024 1

AH there's my problem, I'm an idiot and didn't realize contractor.js.solver.js was a separate file entirely. Consider this my request for a installer script.

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

from bitburner-scripts.

raziel420 avatar raziel420 commented on July 30, 2024

Maybe because daemon is using it all for attacks?

[home ~/]> top

Script PID Threads RAM Usage

daemon.js 1 1 5.50GB

stats.js 8 1 3.10GB

/Remote/weak-target.js 1851 10 17.50GB

/Remote/weak-target.js 1855 10 17.50GB

/Remote/weak-target.js 1859 10 17.50GB

/Remote/weak-target.js 1863 10 17.50GB

/Remote/weak-target.js 1867 10 17.50GB

/Remote/weak-target.js 1871 10 17.50GB

/Remote/weak-target.js 2178 130 227.50GB

/Remote/weak-target.js 2179 7 12.25GB

/Remote/weak-target.js 2204 129 225.75GB

/Remote/weak-target.js 2205 7 12.25GB

/Remote/weak-target.js 2216 64 112.00GB

/Remote/weak-target.js 2217 7 12.25GB

/Remote/weak-target.js 2221 161 281.75GB

/Remote/grow-target.js 2222 10 17.50GB

/Remote/weak-target.js 2223 1 1.75GB

/Remote/grow-target.js 2224 13 22.75GB

/Remote/weak-target.js 2225 2 3.50GB

/Remote/weak-target.js 2232 104 182.00GB

/Remote/weak-target.js 2233 7 12.25GB

/Tasks/run-with-delay.js: Failed to spawn "/Tasks/contractor.js.solver.js" with args: [{"contract":"contract-76006-Netburners.cct","hostname":"rothman-uni","type":"Find Largest Prime Factor","data":935542566},{"contract":"contract-858219.cct","hostname":"stormtech","type":"Array Jumping Game","data":[3,6,8,8,3,7,5,0,5,0,2,0,10,3,6,7]},{"contract":"contract-561671.cct","hostname":"b-and-a","type":"Algorithmic Stock Trader II","data":[50,1,81,12,191,147,147,54,39,3,75,16,170,90,47,192,86]},{"contract":"contract-721112-NiteSec.cct","hostname":"ecorp","type":"Array Jumping Game","data":[0,10,2,9,7,0,0,0,9,2,9,0,4,9,7,2,0]},{"contract":"contract-301103-TianDiHui.cct","hostname":"infocomm","type":"Algorithmic Stock Trader III","data":[142,160,129,188,154]},{"contract":"contract-945133-Volhaven.cct","hostname":"infocomm","type":"Sanitize Parentheses in Expression","data":")(((((aa((()(()())(("},{"contract":"contract-434380.cct","hostname":"aerocorp","type":"Algorithmic Stock Trader II","data":[46,181,20,180,72]},{"contract":"contract-470092.cct","hostname":"zeus-med","type":"Find Largest Prime Factor","data":115559195}] (bad file name or insufficient RAM?)

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

Daemon has a setting ['reserved-ram', 32] which defaults to leaving 32 GB of RAM free on home make sure not to lower that too much if you want to be able to run a bunch of sporadic scripts.

Aside from that, I've never seen any issues with spawning this, I use it all day every day on two accounts.

Instead of running "top" when it fails run "free" and see how much free ram there is on home. It has to be more than 11.6 GB + 2.6GB for "run with delay" - total 14.2 GB.

If it was just a temporary issue due to e.g. a lot of other sporadic scripts spawning at the same time, perhaps I can add an auto-retry logic to the "run-with-delay" helper.

You can verify that it's sporadic by manually running /Tasks/contractor.js (which spawns run-with-delay + contract.js.solver.js once it's done collecting contract info) and seeing if it works.

from bitburner-scripts.

raziel420 avatar raziel420 commented on July 30, 2024

I'm not great with code, but I knew it wasn't a memory issue. Even right after killing everything, same error.

[home ~/]> killall

Killing all running scripts

[home ~/]> run /Tasks/contractor.js

Running script with 1 thread(s), pid 17359 and args: [].

/Tasks/run-with-delay.js: Failed to spawn "/Tasks/contractor.js.solver.js" with args: [{"contract":"contract-133841-CentralIntelligenceAgency.cct","hostname":"silver-helix","type":"Subarray with Maximum Sum","data":[1,7,-10,0,8,4,-3,-3,-7,-7,5,1,10,-4,2,-9,1,9,-10,-2,8,3,-1,3,8,0,4,-6]}] (bad file name or insufficient RAM?)

To be fair, I just started this game a couple days ago, can't code for crap, and have no sources unlocked so far, so I know i'm getting a few errors because of source files.

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

from bitburner-scripts.

alainbryden avatar alainbryden commented on July 30, 2024

I've updated git-pull.js now to automatically get all files in the target repository by default, so folks shouldn't have this same issue in the future. Thanks for sharing!

from bitburner-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.