Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

crashed after running a while #62

Closed
jingfengsama opened this issue Feb 2, 2023 · 14 comments
Closed

crashed after running a while #62

jingfengsama opened this issue Feb 2, 2023 · 14 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jingfengsama
Copy link

version:1.3.2
mc server version: 1.19.3

log:
image
crashed after running a while (at most 1 hour )

settings:
{
"bot-account": {
"username": "silenpen_jf",
"password": "",
"type": "mojang"
},

"server": {
"ip": "dx.coreages.com",
"port": 25565,
"version": "1.19.3"
},

"position": {
"enabled": false,
"x": 0,
"y": 0,
"z": 0
},

"utils": {
"auto-auth": {
"enabled": true,
"password": "whitealbum2"
},

"anti-afk": {
  "enabled": true,
  "sneak": false,
  "jump": false,
  "rotate": false,

  "hit": {
    "enabled": true,
    "delay": 1000,
    "attack-mobs": true
  },

  "circle-walk": {
    "enabled": false,
    "radius": 2
  }
},

"chat-messages": {
  "enabled": false,
  "repeat": false,
  "repeat-delay": 60,

  "messages": [
    "I'm an afk bot",
    "My owner is jf",
    "I want be alone "
  ]
},

"chat-log": false,
"auto-reconnect": true,
"auto-reconnect-delay": 5000

}
}

crashed on cloud server too. (The only difference is that "hit" is not enabled)

@jingfengsama jingfengsama added the bug Something isn't working label Feb 2, 2023
@jingfengsama
Copy link
Author

1.2 version not crash

@urFate
Copy link
Owner

urFate commented Feb 2, 2023

Did you use it on AFK farm or something else? It's very difficult to say what is the root of your problem. If it's applicable, you can just disable mob hit feature.

It would be great if you sent a list/screenshot of the nearest mobs to the bot within a radius of 6 blocks, but I don't think this is already possible.

@urFate urFate added the help wanted Extra attention is needed label Feb 2, 2023
@jingfengsama
Copy link
Author

jingfengsama commented Feb 3, 2023 via email

@jingfengsama
Copy link
Author

Did you use it on AFK farm or something else? It's very difficult to say what is the root of your problem. If it's applicable, you can just disable mob hit feature.

It would be great if you sent a list/screenshot of the nearest mobs to the bot within a radius of 6 blocks, but I don't think this is already possible.

one used on afk farm but another just stay at home

@jingfengsama
Copy link
Author

i mean both of them crashed with the same crash log.

@jingfengsama
Copy link
Author

{
"bot-account": {
"username": "jfmiao",
"password": "",
"type": "mojang"
},

"server": {
"ip": "dx.coreages.com",
"port": 25565,
"version": "1.19.3"
},

"position": {
"enabled": false,
"x": 0,
"y": 0,
"z": 0
},

"utils": {
"auto-auth": {
"enabled": true,
"password": "whitealbum2"
},

"anti-afk": {
  "enabled": false,
  "sneak": false,
  "jump": false,
  "rotate": false,

  "hit": {
    "enabled": false,
    "delay": 1000,
    "attack-mobs": false 
  },

  "circle-walk": {
    "enabled": false,
    "radius": 2
  }
},

"chat-messages": {
  "enabled": false,
  "repeat": false,
  "repeat-delay": 60,

  "messages": [
    "I'm a regular player ",
    "My owner is urFate_ ",
    "I want be alone ",
    "Visit my GitHub page! (urFate/Afk-Bot)"
  ]
},

"chat-log": false ,
"auto-reconnect": true,
"auto-reconnect-delay": 5000

}
}

cloud server 's setting ,crashed too

@Minionguyjpro
Copy link

I think I got the same error, the bot was working first but since a few days it randomly leaves after like 8 hours.

@Minionguyjpro
Copy link

I think it is an issue with the Node.js modules, and not the repo itself. But I am not sure...

@urFate
Copy link
Owner

urFate commented Feb 3, 2023

I think it is an issue with the Node.js modules, and not the repo itself. But I am not sure...

Seems like it is. I'm really can't figure out what happened from this logs. E.g. somewhere in mineflayer, some entity is null, and blah, blah, blah...

So i've recommend to create new issue in mineflayer repo, idk...

@jingfengsama
Copy link
Author

I think it is an issue with the Node.js modules, and not the repo itself. But I am not sure...

Seems like it is. I'm really can't figure out what happened from this logs. E.g. somewhere in mineflayer, some entity is null, and blah, blah, blah...

So i've recommend to create new issue in mineflayer repo, idk...

some clues here:
crash periodically whether hit mobs is on nor off.

certainly not work while rebirth in the main town

I have not joined other servers to find if the afk bot runs well.

bot of 1.2 version do not crash while 1.3 crashes no matter what configuration.

@jingfengsama
Copy link
Author

jingfengsama commented Feb 4, 2023

find that two bots crashed at the same time on different windows servers.
may related to the data transmission between certain mc server and users.

you could check these by login this server(only need to regist).

@urFate
Copy link
Owner

urFate commented Feb 4, 2023

I think it is an issue with the Node.js modules, and not the repo itself. But I am not sure...

Seems like it is. I'm really can't figure out what happened from this logs. E.g. somewhere in mineflayer, some entity is null, and blah, blah, blah...
So i've recommend to create new issue in mineflayer repo, idk...

some clues here: crash periodically whether hit mobs is on nor off.

certainly not work while rebirth in the main town

I have not joined other servers to find if the afk bot runs well.

bot of 1.2 version do not crash while 1.3 crashes no matter what configuration.

1.2 Version have outdated mineflayer, and outdated dependencies. So this bug could appear in latest releases of mineflayer. As temporary solution you can downgrade mineflayer in package.json to 4.1.0 which is used in 1.2 release. But you will lose 1.19.3 support.

@urFate urFate pinned this issue Feb 4, 2023
@jingfengsama
Copy link
Author

I think it is an issue with the Node.js modules, and not the repo itself. But I am not sure...

Seems like it is. I'm really can't figure out what happened from this logs. E.g. somewhere in mineflayer, some entity is null, and blah, blah, blah...
So i've recommend to create new issue in mineflayer repo, idk...

some clues here: crash periodically whether hit mobs is on nor off.
certainly not work while rebirth in the main town
I have not joined other servers to find if the afk bot runs well.
bot of 1.2 version do not crash while 1.3 crashes no matter what configuration.

1.2 Version have outdated mineflayer, and outdated dependencies. So this bug could appear in latest releases of mineflayer. As temporary solution you can downgrade mineflayer in package.json to 4.1.0 which is used in 1.2 release. But you will lose 1.19.3 support.

thx, that do ues

@urFate
Copy link
Owner

urFate commented Feb 12, 2023

Updated mineflayer to 4.8.1 which can fix this issue.

@urFate urFate closed this as completed Mar 12, 2023
@urFate urFate unpinned this issue Mar 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants