6.0 Geography views scrolling problem at maximum zoom

This needs validation testing with Gramps 6.0 on macOS and a Linux box.

Just discovered a problem with the drag scrolling of Maps on Windows. I think it might be due to an unintended increase in the number of zoom levels between Gramps 5.2 and 6.0 versions. The mouse interface breaks at the new levels.

But it needs to be tested on the other OSes.

Tests were performed with 3 mapping services and 3 view modes. All had the same the symptom. So lets test using example.gramps file. In the “Geography: Show all places” view with OpenStreeMap service, choose “Show all places” from the context menu. Zoom all the way out and then all the way in on a Marker.

In 5.2 at maximum zoom (100m/100yd scale), the left-drag correctly shows a filtered Events and Places context menu related to the indicated map pin. If no marker is indicated, then left-drag scrolls the map.

In 6.0 at maximum zoom (20m/80ft scale), the left-drag incorrectly shows ALL Events and Places context menu, losing the context of which map pins are nearby. So scrolling the map with the mouse not possible. If you zoom out 1 level, it starts working again.

I checked the tiling levels in the maps folder.

  • In Gramps 5.2.2 on fedora, the tiles are stored with sub-folders labeled 1 to 18 for each service in .gramps/maps/openstreetmap
  • In Gramps 6.0 on Windows 10, the tiles are stored with sub-folders labeled 1 to 19 for each service in C:\Users\test\AppData\Local\Microsoft\Windows\INetCache\gramps\maps\openstreetmap

Some services (like GoogleHybrid) store 2 extra levels (labeled 1 to 20) and both the extra levels exhibit the problem.

There are hundreds of sets of the following 3 lines of warnings reported to the console too:

(gramps.exe:6048): GdkPixbuf-CRITICAL **: 15:08:46.351: gdk_pixbuf_new_from_data: assertion 'width > 0' failed

(gramps.exe:6048): GdkPixbuf-CRITICAL **: 15:08:46.351: gdk_pixbuf_scale_simple: assertion 'GDK_IS_PIXBUF (src)' failed

(gramps.exe:6048): OsmGpsMap-WARNING **: 15:08:46.351: Error getting missing tile

The path to the map service tiles can be found using the View → Configure… for Geography view modes.

This problem is the same in Mac version using OpenStreetMap. I did not try other mapping services.

The warnings in the console are different:

(Gramps6.0.0.app:6865): OsmGpsMap-**CRITICAL** **: 16:17:39.745: Map source setup called twice

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'OsmGpsMap': NULL pointer

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'GtkBox': NULL pointer

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'GtkPaned': NULL pointer

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'GtkPaned': NULL pointer

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'GtkNotebook': NULL pointer

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'GtkPaned': NULL pointer

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'GtkBox': NULL pointer

(Gramps6.0.0.app:6865): Gtk-**WARNING** **: 16:17:40.076: drawing failure for widget 'GtkApplicationWindow': NULL pointer

(Gramps6.0.0.app:6865): OsmGpsMap-**CRITICAL** **: 16:18:19.276: Map source setup called twice
1 Like

Thanks for checking that. Could you post the path to the map tiles on macOS and verify the labeled folder range in its OpenStreetMap subfolder?

I think that we may need to to add purging the map tile cache when doing an update. The folder path seem to vary between versions. So old, unused tiles might consume a LOT of storage space.

bug filed:
0013780 : [Geography views] extra zoom in levels have broken mouse features

The maps are in a parallel folder with grampsdb and gramps60.

On my Mac, the map tiles are in ~/Library/Application Support/gramps/maps/openstreetmap and are numbered 1-19.

The 5.2 maps are in the same location. In my case, 1-4 are maps from 5.2 and 5-19 are maps from 6.0 .

The total space is less than 17Mb at this time.

This time I got a different set of console messages, repeated many times:

(Gramps6.0.0.app:8927): OsmGpsMap-**WARNING** **: 17:49:18.373: Error getting missing tile
(Gramps6.0.0.app:8927): GdkPixbuf-**CRITICAL** **: 17:49:18.373: gdk_pixbuf_new_from_data: assertion 'width > 0' failed
(Gramps6.0.0.app:8927): GdkPixbuf-**CRITICAL** **: 17:49:18.373: gdk_pixbuf_scale_simple: assertion 'GDK_IS_PIXBUF (src)' failed
1 Like