Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Poke'stop while moving issue #15

Closed
Dragoncat4 opened this issue Jul 31, 2016 · 41 comments
Closed

Poke'stop while moving issue #15

Dragoncat4 opened this issue Jul 31, 2016 · 41 comments
Assignees
Labels

Comments

@Dragoncat4
Copy link

This problem arisen when I was travelling (on skateboard, but probably with going by foot one would get the same problem) and could not see any pokestops (or pokemon for that matter). While application is doing find job locating me and moving 'me' on the map, it looks like it does not have time to upload pokestops near me until I'm moved a little again.
I'd guess that first you take the GPS position and then, based on those position, you try to load surrounding pokestops. However when moving this isn't working at all.
I think you'd have to load temporary positions of pokestops in a little bigger range and then make some of them active based on your location with pokestops data loading not every time gps locations change but from time to time.

@mak3
Copy link

mak3 commented Jul 31, 2016

I think I have similar problem.
Pokestops and Pokemons appear for only a few seconds, then diasppear. I must wait 1-2 minutes near Pokestop until it appear on map. Worse with Pokemons, because I don't know their locations. Maybe it's problem with servers. I came back from second walking today and this time was better

@ST-Apps ST-Apps added the bug label Jul 31, 2016
@ST-Apps ST-Apps added this to the PoGo-UWP 1.1.0 milestone Jul 31, 2016
@ST-Apps ST-Apps self-assigned this Jul 31, 2016
@ST-Apps
Copy link
Owner

ST-Apps commented Jul 31, 2016

I'm lowering update timer to 10s instead of 15s, let's see if this helps.

@ST-Apps
Copy link
Owner

ST-Apps commented Jul 31, 2016

Can you guys test this build and see if it solves your problem? Unfortunately I can't reproduce it so I can't test it myself.

@Dragoncat4
Copy link
Author

Dragoncat4 commented Jul 31, 2016

OK, so I tested the new build and the issue still remains. I tested several scenarios to check when the problem occurs.

If I were just walking and not doing any actions the game worked perfectly, pokemon spawned, pokestops were present.

If I did any actions (visited pokestop or engaged into fight with pokemon) the game remained working for 2-3 second and then situation described by mak3 occured. Each 10s for 1 seconds pokestops were present, then vanished for 9 seconds. Pokemons too.

After that if I rebooted app, the situation went back to normal until next pokemon or pokestop.

@JFouts
Copy link

JFouts commented Jul 31, 2016

Can you try and see if this is fixed now. We corrected some issues with updating the game data that sounds very similar to this issue. #41

@ST-Apps
Copy link
Owner

ST-Apps commented Jul 31, 2016

Here's the link to the release @JFouts is talking about, waiting for your input.

v1.6.0

@Dragoncat4
Copy link
Author

Dragoncat4 commented Jul 31, 2016

Nope, it didn't fix the issue. Now it just does not happen all the time.

Generally I thought the issue is fixed after first few tries, but the it came back again. After visiting the pokestop/figting with wild creature, the maps goes either completely void if no pokemons are present or once in 10 second for the duration of vibrations pokemons and pokestops are present if pokemon is nearby.

Surprisingly holding the "<-" button just to show application history and then selecting PoGo again fixed the 1 second reloading and pokestops/mons remained on map until next action.

@mak3
Copy link

mak3 commented Jul 31, 2016

Now works ok for me

@ST-Apps
Copy link
Owner

ST-Apps commented Jul 31, 2016

At least we're getting closer to a solution. Will have another look soon.

@Dragoncat4
Copy link
Author

I decided to give phone a hard reboot. After that I opened the app and
after first catch (successful) mons and stops were visible just after the fight,
after second catch (successuful) mons and stops vanished for few seconds and then got back,
then I used pokestop and again vanished (this time for ~10seconds) and got back,
then third fight (monster ran away) and everything vanished completely (no poks nearby so not even 1 second which occurred when pok was nearby).
I hope this helps.

@JFouts
Copy link

JFouts commented Jul 31, 2016

That does help and I noticed this too.
The short delay where you leave screen and every disappears for up to 10 secs is actually another issue.

We force a refresh of the data when navigating back to the main screen, but then the timer also causes a refresh. If that refresh is too soon after the forced refresh it will clear all the data. I will see what I can do about that. Probably just need to reset the timer when a forced refresh happens.

JFouts added a commit to JFouts/PoGo-UWP that referenced this issue Jul 31, 2016
Only allow a timed update if we have not just executed a forced update.
Added a mutex as well that will bail out of either update if we are
currently running an update.
ST-Apps added a commit that referenced this issue Aug 1, 2016
Correct the issue with forced update, #15
@ST-Apps
Copy link
Owner

ST-Apps commented Aug 1, 2016

Please try v1.0.7-beta to see if the bug is gone.

@Dragoncat4
Copy link
Author

Dragoncat4 commented Aug 1, 2016

So I managed somehow to get map void 2 times using the app, however after few seconds pokestops came back and it was OK. It seems that you almost got it. The problem might be that after pokestop/pokemon action GPS coordinated are loaded again and it takes some time, this might lead to some problems.

I also have question, do you load pokestop/pokemon data both at the same time and is it possible to set those two data loads for different timesteps? IMO monsters should be loaded more often than pokestops.

However interesting issue occured. It seems that pokestops are loaded in cone rather than in circle, it might lead to strange situation that you have to be exacly on pokestop position in order to load it if you're moving north (I think). I included the screenshot, it might be more descriptive.
wp_ss_20160801_0001

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 1, 2016

The problem might be that after pokestop/pokemon action GPS coordinated are loaded again and it takes some time, this might lead to some problems.

No, GPS coordinates are loaded only every 5 meters, so it's not related to actions. I'm not sure if I really understand what you're meanin, are you having an update delay when you get back from Pokemon/pokestop page which basically leaves your map empty?

I also have question, do you load pokestop/pokemon data both at the same time and is it possible to set those two data loads for different timesteps?

Can't update data more than once every 10s or the server will stop responding, it's something that I can't control and it's a way that Niantic is using to prevent people from spamming their servers. So, to avoid further delays, I'm updating both Pokemon and PokeStops every 10s.

It seems that pokestops are loaded in cone rather than in circle, it might lead to strange situation that you have to be exacly on pokestop position in order to load it if you're moving north (I think).

Can't control this either, I'm just showing the data that the server is returning.

I'm waiting for more input on your main issue, if you could record a GIF it would be cool to actually see how things are going.

@Dragoncat4
Copy link
Author

That's wierd, every time I finish fight with monster or visit a pokestop I get the green screen with "retreaving GPS coordinates".

When I asked about whether updating data is seperate for pokestops/pokemons I was thinking rather about updating pokestops every 30 seconds and pokemons every 10 seconds for data transfer saving. However you're right, first the problem of disappearing items on map needs to be solved.

I'll try to make a GIF, but I first need to find app that will record what's going on screen (if such app even exists).

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 1, 2016

Wait, I think I've spotted it. Updating this post as I have more infos.

@Dragoncat4
Copy link
Author

Dragoncat4 commented Aug 1, 2016

I did several screenshots and then made them into GIF (fps is probably 0.5fps). You can see that the first time I visited pokestop all items disappeared for a while. Later such effect was not observed. It's rare now, so it must be something minor in code.
You can also see the thing with pokestops, untill I rotate the map it's OK.
output_kr2zqy

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 1, 2016

Can you please try v1.0.8-beta ?

@Dragoncat4
Copy link
Author

Dragoncat4 commented Aug 1, 2016

ATM it can't locate me at first (apps place me near street(?) called Yumbi for some reason, its in Africa Republic of Kongo!!!), then after few seconds it moves me somewhere (probably where I am physically), however screen stays near Yumbi and 2-3 seconds later app crash.

Even if I do nothing apps still crashed after 5-6 seconds. It also not always moves me. I think you should have retreiving of GPS coords at least at the beggining of app. After all in original apps logging process takes only first half of the bar, the second half is probably gps locating and pokestops loading.

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 1, 2016

Ok, I'll be waiting for your input.

@Dragoncat4
Copy link
Author

Dragoncat4 commented Aug 1, 2016

It seems that #141 and #144 are describing what happens to me too. Even if nothing is pressed on the map, apps crash.

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 1, 2016

@Dragoncat4 added a proposed solution in #141

@Dragoncat4
Copy link
Author

When I open 1.9 I get black screen (no map) and I have to tap compass icon in order to center the screen on me. However from time to time the map is moving itself to black screen and compass icon need to be pressed again in order to center on the actual gps position.
Visiting pokestops works fine. No 'getting gps coords' is showing. I don't know if they dont disappear, but will check that soon.
And catching a pokemon cause app crash, but that you probably know already. :)

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 2, 2016

v1.0.10

@Dragoncat4
Copy link
Author

Dragoncat4 commented Aug 2, 2016

I'm sorry, but it still seems to be buggy. You start with no map at all until compass is pressed. Then map keeps disappearing from time to time back to 'black screen' (the longer app is running the frequency of such event decrease). Visiting a pokestop seems like reset the whole 'black screen' frequency.
Catching pokemon still cause crash.
It's described in more details in #200

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 2, 2016

v1.0.12

@orangevan
Copy link

orangevan commented Aug 2, 2016

@ST-Apps I am in 1.0.12 and i am sitting still, though i think my gps is wandering some. I am seeing the one pokestop i can see near me, disappear and reappear. the pokemon listed in pokemon near me are disappearing at the same time and reappearing. Though i dont have any actually on screen to capture.

I have timed it with my stops watch they appear for 2 seconds then disappear for 8 seconds. so a 10 second loop.

@heraim
Copy link

heraim commented Aug 2, 2016

i'm in 1.0.12 and the pokeball menu seems broken (maybe normal i think) my character wandering around my position but i see my pokestops well and the pokemons list work good, awesome job done, i hope you good luck and big thank for your job. Waiting for new release 👍

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 2, 2016

@orangevan if you're indoor the GPS takes some time to get a fixed position. Can you please try keeping it opened for a minute and see what happens? Unfortunately they're not disappearing on my end (testing with my phone indoor) so I can't really help you now.

@orangevan
Copy link

@ST-Apps it continued on that loop for a few minutes, my gps was wandering by only by a few meters and was accurate enough. The app eventually crashed just when you send your comment, it was flashing them on and off for a number of minutes. I am not sure how i triggered it, but i will try to recreate. It might be something to do with me clicking the pokestop i am too far from and trying to use it because thats all i did short of rotating the map and zooming in and out and tapping the compass and grid

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 2, 2016

@orangevan seeing from crash report, it may also be related to a server issue since it seems like you've received a bad response. Waiting for the repro steps.

@orangevan
Copy link

okay. i'm trying again, i haven't been able to reproduce so far, but i had left the app open for quite some time first not really doing anything and then i noticed it so maybe something or some amount of time triggered it after first launch of 1.0.12

@Dragoncat4
Copy link
Author

So I tested it for 1.0.12 and it seems almost fine.

  1. After visiting pokestop the stops remained at map.
  2. After capturing the pokemon, items remained on map.
  3. After pokemon flee/escape (btw if pokemon escape from fight the fight should not end, you should just be able to cast another ball) items disappeared for few seconds from map then went back.

Can't test more ATM, no pokemons nearby:)

@orangevan
Copy link

@ST-Apps I left the app running for about 30 minutes it seems and it crashed again on it's own
Seems to be that is the time it takes. Maybe the servers are sending a special authentication packet or something every 30 minutes. Anyhow the timing is very similar and someone in the telegram chat had the same crash at around the same time as me before. Not sure if you get all crash reports but thought i'd let you know it happened again. Also note, this time i did not have the stop and pokemon flashing on and off. was unable to recreate that.

@heraim
Copy link

heraim commented Aug 2, 2016

Same crash here, around 30 minutes too.

@orangevan
Copy link

I've opened a new issue on this. Can you comment in there?

@heraim
Copy link

heraim commented Aug 2, 2016

@orangevan done ^^ thanks all :)

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 2, 2016

Seems like you need to re-authenticate each 30 mins, need to see if there's something in the API.

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 2, 2016

@Dragoncat4 tell me if we can close this.

@Dragoncat4
Copy link
Author

There are still several glitches (for instance #229 describes it), but main issue has been almost fixed and only minor issues remain, so I think it can finally be closed:) Thanks for such intrest in this issue.

@ST-Apps
Copy link
Owner

ST-Apps commented Aug 2, 2016

Great, I feel alive again :D I'll fix the minor issue too, it's just a matter of time :)

@ST-Apps ST-Apps closed this as completed Aug 2, 2016
ST-Apps pushed a commit that referenced this issue Aug 16, 2016
Repos update from ST-Apps
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants