Jump to content

On linux sometimes script fail to perform actions


sudoinit6

Recommended Posts

So as the title says, I run linux VMs that each have 1cpu and 1.5GB RAM. After running for a bit the bot starts acting strangely. I am using a task based script and it will match the right conditions but won't execute the action properly. For example:

Spoiler

[INFO][Bot #1][02/13 03:19:26 PM]: Opening exchange bank
[INFO][Bot #1][02/13 03:19:26 PM]: Open exchange bank.
[INFO][Bot #1][02/13 03:19:32 PM]: PROG  I see 0 coins
[INFO][Bot #1][02/13 03:19:34 PM]: Opening exchange bank
[INFO][Bot #1][02/13 03:19:34 PM]: Open exchange bank.
[INFO][Bot #1][02/13 03:19:48 PM]: Opening exchange bank
[INFO][Bot #1][02/13 03:19:48 PM]: Open exchange bank.
[INFO][Bot #1][02/13 03:20:01 PM]: Opening exchange bank
[INFO][Bot #1][02/13 03:20:01 PM]: Open exchange bank.
[INFO][Bot #1][02/13 03:20:02 PM]: Opening exchange bank
[INFO][Bot #1][02/13 03:20:02 PM]: Open exchange bank.

 

It fails to open the exchange bank multiple times and the one time it does it returns that there are 0 coins when in fact there are several hundred thousand.

And it isn't just opening the bank or counting coins, when it gets in this state it will spin it's wheels on every single action it tries to perform. I went so far as to use conditional sleeps for actions like

open bank ----> cond sleep till bank is open ---> do stuff

But it ignores everything and just matches the condition again and knows it is supposed to open the bank.

If I kill the java process and relaunch it works fine, for awhile. Any insight?

Sound drivers are installed on the system and sound is off on all the bots, so I don't think this is related to the memory leak issue that can happen on linux systems. 

 

Edit: No errors are being thrown.

Edit 2: There is plenty of free CPU and RAM on the system, so it isn't a lack of system resources.

Edited by sudoinit6
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...