nextgis / quickmapservices

QGIS plugin to find and add map services to a project in one click
http://plugins.qgis.org/plugins/quick_map_services/
GNU General Public License v2.0
170 stars 49 forks source link

ZeroDivisionError since QGIS 3.20 #221

Closed s6hebern closed 3 years ago

s6hebern commented 3 years ago

With the new QGIS 3.20, I now get the following error (for any basemap):

An error has occurred while executing Python code: 

ZeroDivisionError: float division by zero 
Traceback (most recent call last):
  File "C:\Users/USERNAME/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\valuetool\valuewidget.py", line 432, in printValue
    ident = self.getValue(layer, pos, activeBands)
  File "C:\Users/USERNAME/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\valuetool\valuewidget.py", line 303, in getRowCol
    extent = layer.dataProvider().extent()
ZeroDivisionError: float division by zero

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.20.0-Odense Odense, decaadbb31 

In reality, it seems to have no effect, all basemaps load and display perfectly fine. Just an annoying message to click away every time.

514ckw4r3 commented 3 years ago

This is an error message of the "valuetool" plugin, not quickmapservices.

s6hebern commented 3 years ago

Oh heck... sorry! Did not realize that, since it only appears when I use QuickMapServices. Nevermind...