Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2787 closed bug (invalid)

Value Tool crashes with GRASS Rasters

Reported by: andre Owned by: ghislainp
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Python plugins and bindings Version: Trunk
Keywords: Value Tool GRASS Cc: Quantum GIS r13619M
Must Fix for Release: No Platform: Linux
Platform Version: Ubuntu 9.10 Awaiting user input: no

Description

When I import a Raster to QGIS through GRASS, with Value Tool Plugin Activated, it gives the following error message

An error has occured while executing Python code:

Traceback (most recent call last):

File "/home/alt-shn/.qgis/python/plugins/valuetool/valuewidget.py", line 134, in printValue

self.ymin=min(self.ymin,cstr.minimumValue())

AttributeError: 'NoneType' object has no attribute 'minimumValue'

Python version: 2.6.4 (r264:75706, Dec 7 2009, 19:02:09) [GCC 4.4.1]

Furthermore, the error message repeats itself everytime I click on the "close" Button and I have no choice but to shut down and restart QGIS

Change History (4)

comment:1 by borysiasty, 14 years ago

Must Fix for Release: YesNo
Owner: changed from borysiasty to ghislainp

comment:2 by lutra, 14 years ago

Resolution: invalid
Status: newclosed

Olá André,

this is unfortunately a known problem. The GRASS raster provider has changed and fixed a few nasty bugs, but had broken a few other things, among them there is the value tool plugin. In any case the plugin is a 3rd party one, so its bugs nust be reported directly to the author and/or to the dev mailing list.

Cheers!

in reply to:  2 ; comment:3 by jef, 14 years ago

Priority: critical: causes crash or data corruptionmajor: does not work as expected

BTW it doesn't crash. valuetool should ignore grass raster layers (at least for now). the error message only appears when you move the mouse pointer inside the map canvas, so you can move it outside, close the error message using the keyboard and disable valuetool in the plugin manager.

in reply to:  3 comment:4 by jef, 14 years ago

Replying to jef:

BTW it doesn't crash. valuetool should ignore grass raster layers (at least for now).

Looks like the current version already does. I made a patch that adds support for grass rasters: http://lists.osgeo.org/pipermail/qgis-user/2010-June/008872.html

Note: See TracTickets for help on using tickets.