Meshroom
Meshroom copied to clipboard
ImageViewer QGeoTileProviderOsm [bug]
Describe the bug Meshroom crashes and terminates with
QGeoTileProviderOsm: Tileserver disabled at QUrl("http://maps-redirect.qt.io/osm/5.8/satellite")
when loading image Information in the Image Viewer (with GPS in EXIF).
This is interesting, as the preview map uses the default osm map and not satellite imagery.
The qt plugin requests this as default but the imagery tile server is not available.
This is the response from http://maps-redirect.qt.io/osm/5.8/satellite
{
"Enabled" : false,
"UrlTemplate" : "http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/%z/%y/%x",
"ImageFormat" : "jpg",
"QImageFormat" : "RGB888",
"ID" : "usgs-l7",
"MaximumZoomLevel" : 8,
"MapCopyRight" : "<a href='http://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer'>USGS The National Map: Orthoimagery</a>",
"DataCopyRight" : "<a href='http://landsat.gsfc.nasa.gov/?page_id=2339'>USGS/NASA Landsat</a>"
}
(-->The service is disabled or down)
To Reproduce Steps to reproduce the behaviour:
Test with Monstree dataset
Desktop :
- OS: win 10
- Meshroom version: 2019.2
Solution:
We need to add some code to handle exceptions to avoid crashes when there are problems with the map data.
https://github.com/alicevision/meshroom/blob/develop/meshroom/ui/qml/Viewer/ImageMetadataView.qml