openstreetmap / merkaartor

Home of Merkaartor, an openstreetmap mapping program.
http://merkaartor.be/
Other
290 stars 79 forks source link

relation list not updated #271

Open fkv1 opened 2 years ago

fkv1 commented 2 years ago

When I click the "Download more" button and a member of a previously not loaded relation is loaded, the relation list sometimes does not get updated. The update happens later at apparently random times, like when I move and edit around, or when I switch to another application and back to Merkaartor.

This is most obvious for multipolygon relations, when a member (border) is loaded but the relation is not; but I believe it happens with other relation types too.

I've experienced this problem since I updated from 0.18.2 to 0.19.

PS: Switching to another application does not work, but switching to another virtual desktop and back does, and minimizing+maximizing Merkaartor works as well. Seems like some refresh is missing on "Download more" but happening when the whole Merkaartor window is redrawn.

Krakonos commented 1 year ago

Thanks for reporting. Could you provide additional info to help me reproduce the problem?

  1. What platform/build do you use (package? from source?)
  2. Example coordinates where it can be seen.
  3. Screenshots/short video of the bug happening.

Definitely sounds like a missing event somewhere, though I don't seem to catch it, maybe I'm looking for the wrong things.

fkv1 commented 1 year ago

1) FreeBSD ports system (compiled trough a framework) 2) Move viewport to way 1004384905 and click "download more". It's a member of a multipolygon relation, but the relation list remains empty. 3) merkaartor_emptyrelationlist

Trying to create the screenshot, I found out an even stranger aspect: If I start Merkaartor, then switch to Gimp on another virtual desktop, fire a screenshot with 10 s delay, then switch back to Merkaartor, then "load more", the relation list does load. I had to have Gimp on the same virtual desktop to create the screenshot with loaded map data and empty relation list.

fkv1 commented 1 year ago

Same if I open Merkaartor, minimize+unminimize the window, then "load more" -> relation list complete.

All I said about the relation list also applies to the "Ways" and "Nodes" tabs. Whenever the relation list is mistakenly empty, the Ways and Nodes lists are also empty.