SriMethan / Lidraughts-Bot-Heroku

The code template to make a Lidraughts Bot and deploy it to heroku server easily.
GNU Affero General Public License v3.0
1 stars 7 forks source link

My bot is crashing frequently #3

Closed techyking07 closed 2 years ago

techyking07 commented 2 years ago

The game links are: https://lidraughts.org/YtpG5S3l/black , https://lidraughts.org/8qakW8Rf/black , https://lidraughts.org/EKbrgH3z/black , https://lidraughts.org/njf7Nh3k/black @SriMethan pls fix this

techyking07 commented 2 years ago

Logs: 2021-10-08T06:50:53.054476+00:00 heroku[worker.1]: Process running mem=688M(133.6%) 2021-10-08T06:50:53.055929+00:00 heroku[worker.1]: Error R14 (Memory quota exceeded) 2021-10-08T06:51:00.192347+00:00 app[worker.1]: 2021-10-08 06:51:00,192:  https://lidraughts.org/8qakW8Rf/black [spectator] SriMethan: b'your bot crashed' 2021-10-08T06:51:02.020467+00:00 app[worker.1]: 2021-10-08 06:51:02,020:  https://lidraughts.org/8qakW8Rf/black [spectator] UnknownStrongPlayer: b'i think, yes' 2021-10-08T06:51:06.342739+00:00 app[worker.1]: 2021-10-08 06:51:06,342:  https://lidraughts.org/8qakW8Rf/black [spectator] UnknownStrongPlayer: b'idk why it is crashing' 2021-10-08T06:51:13.320323+00:00 app[worker.1]: 2021-10-08 06:51:13,320:  https://lidraughts.org/8qakW8Rf/black [spectator] SriMethan: b'some problem' 2021-10-08T06:51:17.034783+00:00 heroku[worker.1]: Process running mem=688M(133.6%) 2021-10-08T06:51:17.064193+00:00 heroku[worker.1]: Error R14 (Memory quota exceeded) 2021-10-08T06:51:17.989682+00:00 app[worker.1]: 2021-10-08 06:51:17,989:  --- https://lidraughts.org/8qakW8Rf/black Game over 2021-10-08T06:51:17.994438+00:00 app[worker.1]: 2021-10-08 06:51:17,994:  +++ Process Free. Total Queued: 0. Total Used: 0

SriMethan commented 2 years ago

@SathyaKarthik1212 as your logs clearly saying that your heroku app's (Memory quota exceeded)

SriMethan commented 2 years ago

Also there is something to do with my repo too

thechipsss commented 2 years ago

I got it @SathyaKarthik1212 restart dynos if that error comes which you posted then you have to delete the repo and fork it again then it will be working

thechipsss commented 2 years ago

@SathyaKarthik1212 Did you did as i told you?

thechipsss commented 2 years ago

Also there is something to do with my repo too

no no it happens sometimes when heroku get tired so yeah no bug happened to me also

thechipsss commented 2 years ago

@SriMethan I am going to try this thing and investigate it in a few mins

thechipsss commented 2 years ago

@SriMethan 2021-10-10T08:11:20.218543+00:00 app[worker.1]: 2021-10-10 08:11:20,218:  move: 5 2021-10-10T08:11:20.218602+00:00 app[worker.1]: 2021-10-10 08:11:20,218:  Searching for wtime 165416 btime 179660 2021-10-10T08:11:20.237600+00:00 app[worker.1]: 2021-10-10 08:11:20,237:  score: {'cp': 0} 2021-10-10T08:11:20.329537+00:00 app[worker.1]: 2021-10-10 08:11:20,329:  Backing off play_game(...) for 12.7s (TypeError: 'Move' object is not iterable) 2021-10-10T08:11:35.007869+00:00 app[worker.1]: 2021-10-10 08:11:35,007:  +++ https://lidraughts.org/RRmoOGZD/white Blitz vs BOT DraughtsBotTest2(1500?) 2021-10-10T08:11:35.102039+00:00 heroku[worker.1]: Process running mem=1262M(246.7%) 2021-10-10T08:11:35.104155+00:00 heroku[worker.1]: Error R15 (Memory quota vastly exceeded) 2021-10-10T08:11:35.105823+00:00 heroku[worker.1]: Stopping process with SIGKILL 2021-10-10T08:11:35.317461+00:00 heroku[worker.1]: Process exited with status 137 2021-10-10T08:11:35.365555+00:00 heroku[worker.1]: State changed from up to crashed

techyking07 commented 2 years ago

Thanks for helping me @thechipsss

thechipsss commented 2 years ago

Thanks for helping me @thechipsss

No prob but in future pls don't ping me