PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.87k stars 1.54k forks source link

Bot stops responding after ~10 minutes #4164

Closed Z3r0byte closed 8 years ago

Z3r0byte commented 8 years ago

The bot stops encountering any pokemon after ~10 minutes and a few minutes later it stops walking. Its still doing the output of the stats. I've had this issue multiple times.

EDIT: I have this issue on both master and dev branch.


2016-08-17 17:24:17,318 [ SpinFort] [INFO] [spun_pokestop] Spun pokestop Santa Monica Clocktower. Experience awarded: 50. Items awarded: {u'Pokeball': 2, u'Greatball': 1}
2016-08-17 17:24:19,396 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.10km
2016-08-17 17:24:21,375 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.10km
2016-08-17 17:24:23,496 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.10km
2016-08-17 17:24:25,608 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.10km
2016-08-17 17:24:27,305 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.09km
2016-08-17 17:24:29,251 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.09km
2016-08-17 17:24:30,755 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.08km
2016-08-17 17:24:41,158 [UpdateLiveStats] [INFO] [log_stats] NblablaR | Uptime : 0:10:42 | Earned 1,600 Stardust | +2,920 XP | 16,385 XP/h | Visited 13 stops
2016-08-17 17:24:45,131 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 2.25 km
2016-08-17 17:24:50,439 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop Puma Statue - 0.08km
Stops working here
2016-08-17 17:25:14,156 [UpdateLiveStats] [INFO] [log_stats] NblablaR | Uptime : 0:11:15 | Earned 1,600 Stardust | +2,920 XP | 15,584 XP/h | Visited 13 stops
2016-08-17 17:25:47,040 [UpdateLiveStats] [INFO] [log_stats] NblablaR | Uptime : 0:11:47 | Earned 1,600 Stardust | +2,920 XP | 14,859 XP/h | Visited 13 stops

MiniWire commented 8 years ago

Can you tell where it is not responding anymore? it creates a new line every ~5-10secs?

The problem i have is, that it stops running and doesnt respond anymore (no new log-lines and not running anymore). I can fix it by typing a spacebar or any key to the cmdline (Win10). Cant provide any logs right now, will do it when it happens next time.

EDIT:

2016-08-17 19:54:17,318 [PokemonCatchWorker] [INFO] [pokemon_appeared] A wild Eevee appeared! [CP 44] [Potential 0.64] [A/D/S 15/1/13] 2016-08-17 19:54:20,223 [PokemonCatchWorker] [INFO] [threw_pokeball] Used Pokeball, with chance 96.16 (175 left) 2016-08-17 19:54:20,661 [PokemonCatchWorker] [INFO] [pokemon_caught] Captured Eevee! [CP 44] [Potential 0.64] [15/1/13] [+150 exp] 2016-08-17 19:54:21,109 [PokemonCatchWorker] [INFO] [gained_candy] You now have 24 Eevee candy! 2016-08-17 19:54:26,127 [MoveToFort] [INFO] [moving_to_fort] Moving towards pokestop ######### - 0.05km

--AFTER 5 MINUTES IDLING CTRL-C--

2016-08-17 19:58:32,756 [PokemonGoBot] [INFO] [bot_interrupted] Bot caught SIGINT. Shutting down. 2016-08-17 19:58:33,072 [ cli] [INFO] 2016-08-17 19:58:33,073 [ cli] [INFO] Ran for 0:06:59 2016-08-17 19:58:33,075 [ cli] [INFO] Total XP Earned: 1050 Average: 9020.06/h 2016-08-17 19:58:33,078 [ cli] [INFO] Travelled 0.02km 2016-08-17 19:58:33,081 [ cli] [INFO] Visited 4 stops 2016-08-17 19:58:33,085 [ cli] [INFO] Encountered 6 pokemon, 6 caught, 5 released, 0 evolved, 0 never seen before 2016-08-17 19:58:33,094 [ cli] [INFO] Threw 6 pokeballs 2016-08-17 19:58:33,098 [ cli] [INFO] Earned 600 Stardust 2016-08-17 19:58:33,102 [ cli] [INFO] 2016-08-17 19:58:33,104 [ cli] [INFO] Highest CP Pokemon: Spearow [CP: 59] [IV: 5/5/8] Potential: 0.4 2016-08-17 19:58:33,108 [ cli] [INFO] Most Perfect Pokemon: Eevee [CP: 45] [IV: 15/14/4] Potential: 0.73

Z3r0byte commented 8 years ago

@MiniWire I updated my post. EDIT: Looks like we're having the same issue.

MiniWire commented 8 years ago

@Z3r0byte Now I see, I still haven't found out why. But it behaves quite differntly as it seems, My problem occurs on 2 different Windows 10 machines. Yours is atleast calling UpdateLiveStats.

Z3r0byte commented 8 years ago

@MiniWire I'm using Ubuntu, so its not platform specific.

MiniWire commented 8 years ago

@Z3r0byte I would like to debug things, but I'm a newbie in Python. Problem occured for me since the first versions of the bot, but thought that would be a problem related with my connection/Windows10.

Faithu commented 8 years ago

Mine stops after 30 mins

bimahp commented 8 years ago

Same here. Mine stops after 8 ~ 10 mins

sohje commented 8 years ago

Check amount of pokestops on your UI map. Maybe all of them cached and bot just stand still? I got this situation once cause only few pokestops on botting area. Bot already visited all of them and put them into cache and was standing on same spot without single move.

Faithu commented 8 years ago

@sohje Naw its on it's way to a pokestop and then just stops doesn't turn up to the pokestop

Z3r0byte commented 8 years ago

@sohje How do I enable that UImap? And I'm botting in LA, so there are enough pokestops :)

tomorrowplusone commented 8 years ago

do you have the never_catch flag active?

Z3r0byte commented 8 years ago

@tomorrowplusone Nope, iets configured tot catch all pokémon

MiniWire commented 8 years ago

I just ran my bot on a debian x86_64 machine with python-dev. It ran 8 hrs without hanging up. Maybe our problem has to do with the python version? But I could also be completely wrong, just saying.

Z3r0byte commented 8 years ago

I just noticed the bot stopper after it logged about ten times it found two lured pokemon. That was the only thing it logged. Then it just hang

bimahp commented 8 years ago

i disabled liveStats and bot running fine for 8+ hours, dunno if its the problem

dextercai commented 8 years ago

l found this problem about 2 weeks ago, but l found that although there are no new lines, the bot is still running after some mins.

k4n30 commented 8 years ago

@Z3r0byte please update your OP with the detail requested in the issue template so that the proper assistance can be provided

MiniWire commented 8 years ago

Just wanted to add that it works on Debian fine, but still idles on Windows10 after a random time with the same config(sometimes minutes, sometimes hours; no network disconnect or anything related to standby/energysaving) . I suppose that it has something to do with Python itself or the encrypt lib?