You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I remember that I click "send" button in OSM Go and the changes were sending (They were disappearing from the list) by then I clicked back button and clicked "send" again because I though something went wrong. Later by accident I saw on iD editor that some nodes are duplicated. I didn't notice it at first. When I tried to move the POI to make it more accurate then I noticed that there were two nodes at the same position with exactly the same tags.
So maybe it's worth adding some check before sending POI to OSM to check if there is already some node in changeset with exactly the same position and tags.
Sorry for pretty vague description. But I thought that this is serious enough bug that it's worth to report event with such laconic description.
Same thing happens to me often. If the OSM Go app is interupted by being sent to the background or crashing or resizing the window (split screen) then you end up uploading the same changes twice.
It also happens sometimes when nothing has gone wrong.
To avoid this issue happening I've developed a procedure before uploading. It only happens if you have a large change set.
Always wait until your battery is over 60% charged before you start.
Always delete data before you upload
Also close and restart the app.
Wait until your are on WiFi to upload
I've been using OSM Go quite extensively in the last month.
There is a reproductible bug. At least I can reproduce it quite easily on my phone and I believe that it would be the same yet depending on memory amount may be.
(1) load a lot of objects, many thousands
(2) create a large change set (on my phone at least 50 POIs, with more than 150 POIs it almost happens all the time).
(3) upload the changes. At the begining the delay between uploading a POI and another is small, but it tends to get larger point after point
(4) at some time (I think that there is a delay of let say 1 mn or so) the application crashes systematically
(5) after restarting the application indicates that there is remaining 70 POIs in the queue. I'm not sure but it seems that if there was initialy 100 in the change set, in broken at 30, just like if the number of points to finalize uploading is computed wrongly. (I can't confirm this arithmetic). I think that these points are those duplicated.
I observed this bug dozen of times.
I also apply a variant of tomothy techniques
(1) if I just forgot to upload POIs (let's say if I have more than 50) I clear data
(2) with no data no need to restart the app.
No difference for me between wifi or phone. I think that there is a timer or something like this, so depending on the phone, memory, networkd, etc, the app crashes at some point. Never tried to measure this but something like one minute, and if it get slower and slower it always crash. Sometime a few second on the last point before crash.
Having said that, OSM go rocks. It is really great and just perfect to complement StreetComplete on the street.
Thanks a lot to developer(s). I'm really having a good time with it.
_
Currently, we send object by object, it works well for a small set of data, but it is not optimal for more than 50 changes...
I will try to send the changes in one time, it will be much faster. On the other hand, if an object is rejected (conflict, etc...) the other changes will also be rejected.
Here is a scenario that reproduced the bug as well as some faulty changeset. I've most screenshots if this helps. (BTW the name of the changeset is wrong, I forgot to change the name of the city :-( )
(1) Loaded 40362 data.
(2) Created exactly 100 lamposts.
(3) Upload.
(4) Count down getting slower and slower.
(5) Crash at 70 creations remaining, 4mn after start of count down.
(6) So far so good. There are not duplicates on OSM.
(6) Restart the application.
(7) The queue indicates that 96 creations are to be upload. BUG: This is wrong, this should be 70.
(8) Checked in OSM : changeset 121786059 has been opened 9mn ago. OSM indicates that 31 nodes were created.
(9) Upload. It crashes at 66 more or less.
(10) OSM indicates that the changeset has 62 nodes.
(11) Restart the application.
(12) Now there is 92 creations in the queue.
(13) Crash about 60 (after 3 mn more or less)
(14) Restart. Clear data. 88 uploads in less that 1 mn.
(15) Everything ok. OSM Go readdy to map :-)
(16) OSM indicates that 181 nodes are in the changese. 81 nodes are duplicates since there were 100 at the begining.
If the bug is complicated to fix an acceptable workaround would be to limitate the number of POIs in the queue and/or the size of data. I never seen the bug for queue < 50. I guess that the idea is to make it possible for offline mapping to create many objects. For me a gentle reminder "you have 50 POIs to upload ... ". Alternatively or at the same time it could make sense to limit the size of data. Quite often on forget to clear a zone when moving from one zone to another one, but it is quite acceptable IMHO to limit this.
Finally I would strongly recommend NOT sending groups of objects. It is really common for edits to fails so I would stop making edits if this kill a whole contributions. As a user I don't care to much waiting a bit. I just don't want to loose all my work just for a few edits.
I had quite some fun with OSM Go this afternoon. Thanks ! !-)
First of all, sorry for this bug which is very annoying.
In my opinion, it is caused by 3 reasons:
The fact of sending the changes object by object
Solution:
Use a diff to send the changes in one request
There are too many objects to load. At each data loading, those are compared to each other and there are heavy space operations (merging new data with old data), especially for our phones...
Solution:
Limit the amount of data that Osm Go keeps in memory.
Optimize the computation
Modifying an object while data is being downloaded/processed can cause a conflict
Solution:
Disable the possibility to edit an object during the download phase, or queue them during this phase
For the first point, I just deployed this feature : b91a28c
But don't worry, if the upload fails, your changes are safe. You will just have to undo the problematic change before trying again.
I've added a button to make it as easy as possible in the interface
I will try to work on points 2 and 3 during the next few days
Activity
timothywashere commentedon Feb 9, 2022
Same thing happens to me often. If the OSM Go app is interupted by being sent to the background or crashing or resizing the window (split screen) then you end up uploading the same changes twice.
It also happens sometimes when nothing has gone wrong.
zhik commentedon Apr 20, 2022
Bumping this issue. https://www.openstreetmap.org/changeset/119967097
Sometimes it adds two features or five. Not sure why.
Example - Different nodes but some POI
9680843018
9680846818
timothywashere commentedon Apr 20, 2022
To avoid this issue happening I've developed a procedure before uploading. It only happens if you have a large change set.
Always wait until your battery is over 60% charged before you start.
Always delete data before you upload
Also close and restart the app.
Wait until your are on WiFi to upload
Fix (maybe?) Duplicate POI nodes sent. #102
xcriptus commentedon May 30, 2022
Bumping this "duplicate POI" issue. Version 1.5.0
I've been using OSM Go quite extensively in the last month.
There is a reproductible bug. At least I can reproduce it quite easily on my phone and I believe that it would be the same yet depending on memory amount may be.
I observed this bug dozen of times.
I also apply a variant of tomothy techniques
(1) if I just forgot to upload POIs (let's say if I have more than 50) I clear data
(2) with no data no need to restart the app.
No difference for me between wifi or phone. I think that there is a timer or something like this, so depending on the phone, memory, networkd, etc, the app crashes at some point. Never tried to measure this but something like one minute, and if it get slower and slower it always crash. Sometime a few second on the last point before crash.
Having said that, OSM go rocks. It is really great and just perfect to complement StreetComplete on the street.
Thanks a lot to developer(s). I'm really having a good time with it.
_
Binnette commentedon May 31, 2022
Maybe fixed in 7e1e217
DoFabien commentedon May 31, 2022
Thank you for the very complete report! I was not able to reproduce this behavior.
I'm not sure if 7e1e217 fixes the problem.
Currently, we send object by object, it works well for a small set of data, but it is not optimal for more than 50 changes...
I will try to send the changes in one time, it will be much faster. On the other hand, if an object is rejected (conflict, etc...) the other changes will also be rejected.
I try to do this before the end of the week
xcriptus commentedon Jun 1, 2022
Bonsoir,
Here is a scenario that reproduced the bug as well as some faulty changeset. I've most screenshots if this helps. (BTW the name of the changeset is wrong, I forgot to change the name of the city :-( )
(1) Loaded 40362 data.
(2) Created exactly 100 lamposts.
(3) Upload.
(4) Count down getting slower and slower.
(5) Crash at 70 creations remaining, 4mn after start of count down.
(6) So far so good. There are not duplicates on OSM.
(6) Restart the application.
(7) The queue indicates that 96 creations are to be upload. BUG: This is wrong, this should be 70.
(8) Checked in OSM : changeset 121786059 has been opened 9mn ago. OSM indicates that 31 nodes were created.
(9) Upload. It crashes at 66 more or less.
(10) OSM indicates that the changeset has 62 nodes.
(11) Restart the application.
(12) Now there is 92 creations in the queue.
(13) Crash about 60 (after 3 mn more or less)
(14) Restart. Clear data. 88 uploads in less that 1 mn.
(15) Everything ok. OSM Go readdy to map :-)
(16) OSM indicates that 181 nodes are in the changese. 81 nodes are duplicates since there were 100 at the begining.
If the bug is complicated to fix an acceptable workaround would be to limitate the number of POIs in the queue and/or the size of data. I never seen the bug for queue < 50. I guess that the idea is to make it possible for offline mapping to create many objects. For me a gentle reminder "you have 50 POIs to upload ... ". Alternatively or at the same time it could make sense to limit the size of data. Quite often on forget to clear a zone when moving from one zone to another one, but it is quite acceptable IMHO to limit this.
Finally I would strongly recommend NOT sending groups of objects. It is really common for edits to fails so I would stop making edits if this kill a whole contributions. As a user I don't care to much waiting a bit. I just don't want to loose all my work just for a few edits.
I had quite some fun with OSM Go this afternoon. Thanks ! !-)
Refactoring the way to send changes to Openstreetmap
DoFabien commentedon Jun 2, 2022
First of all, sorry for this bug which is very annoying.
In my opinion, it is caused by 3 reasons:
Solution:
Use a diff to send the changes in one request
Solution:
Limit the amount of data that Osm Go keeps in memory.
Optimize the computation
Solution:
Disable the possibility to edit an object during the download phase, or queue them during this phase
For the first point, I just deployed this feature : b91a28c
But don't worry, if the upload fails, your changes are safe. You will just have to undo the problematic change before trying again.
I've added a button to make it as easy as possible in the interface
I will try to work on points 2 and 3 during the next few days
Limiting the number of objects in memory
No more changes can be made while the data is being generated