Bug #5179
Under Ubuntu 11.10 plugin causes crash
| Status: | New | Start Date: | 03/14/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | - | |||
| Must fix: | Resolution: | |||
| Platform: | Patch supplied: | No | ||
| Platform version: | Causes crash or corruption: | Yes | ||
| Status info: |
Description
R libraries installed with the cran2deb repository, R 2.14, clean Ubuntu install
When running MCP on the sample dataset I get
Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_en_US]
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
Warning: QHttp: empty path requested is invalid -- using '/'
{'methods': {'mcp': {'percent': 95}}, 'io': {'subset': u'id', 'layer': u'sample20120314190647612', 'selection': 0, 'outputfolder': u'/tmp', 'outputview': True, 'layerpointer': <qgis.core.QgsVectorLayer object at 0x5fedcb0>, 'mode': u'global', 'layername': u'sample', 'overwrite': True}}
Loading required package: adehabitat
Loading required package: ade4
Attaching package: ‘ade4’
The following object(s) are masked from ‘package:base’:
within
Loading required package: tkrplot
Loading required package: tcltk
Loading Tcl/Tk interface ... done
Loading required package: shapefiles
Loading required package: foreign
Attaching package: ‘shapefiles’
The following object(s) are masked from ‘package:foreign’:
read.dbf, write.dbf
Be careful: it is now recommended to use the newpackages adehabitatMA, adehabitatLT, adehabitatHR, and adehabitatHS.
These 4 packages are intended to become the future of adehabitat.
The "classical" version of adehabitat will still be maintained for some
time, but no new method will be added to the package.
Loading required package: rgdal
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.3, released 2010/11/10
Path to GDAL shared files: /usr/share/gdal/1.7
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: (autodetected)
[1] "MCP calculation running... should be fast"
Loading required package: gpclib
General Polygon Clipper Library for R (version 1.5-1)
Type 'class ? gpc.poly' for help
[1] "Done."
Segmentation fault
When running LSCV on the sample dataset I get
Warning: loading of qgis translation failed [/usr/share/qgis/i18n//qgis_en_US]
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]
Warning: QHttp: empty path requested is invalid -- using '/'
{'methods': {'lscv': {'percent': 50}}, 'io': {'subset': u'id', 'layer': u'sample20120314191101871', 'selection': 0, 'outputfolder': u'/tmp', 'outputview': True, 'layerpointer': <qgis.core.QgsVectorLayer object at 0x52b2cb0>, 'mode': u'global', 'layername': u'sample', 'overwrite': True}}
Loading required package: adehabitat
Loading required package: ade4
Attaching package: ‘ade4’
The following object(s) are masked from ‘package:base’:
within
Loading required package: tkrplot
Loading required package: tcltk
Loading Tcl/Tk interface ... done
Loading required package: shapefiles
Loading required package: foreign
Attaching package: ‘shapefiles’
The following object(s) are masked from ‘package:foreign’:
read.dbf, write.dbf
Be careful: it is now recommended to use the newpackages adehabitatMA, adehabitatLT, adehabitatHR, and adehabitatHS.
These 4 packages are intended to become the future of adehabitat.
The "classical" version of adehabitat will still be maintained for some
time, but no new method will be added to the package.
Loading required package: rgdal
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.3, released 2010/11/10
Path to GDAL shared files: /usr/share/gdal/1.7
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: (autodetected)
[1] "Kernel LSCV calculation..."
[1] "Done."
Warning messages:
1: In kernelUD(dd[, c("X", "Y")], dd[, "ID"], h = "LSCV", grid = grid) :
The algorithm did not converge
within the specified range of hlim: try to increase it
2: In kernelUD(dd[, c("X", "Y")], dd[, "ID"], h = "LSCV", grid = grid) :
The algorithm did not converge
within the specified range of hlim: try to increase it
3: In kernelUD(dd[, c("X", "Y")], dd[, "ID"], h = "LSCV", grid = grid) :
The algorithm did not converge
within the specified range of hlim: try to increase it
4: In kernelUD(dd[, c("X", "Y")], dd[, "ID"], h = "LSCV", grid = grid) :
The algorithm did not converge
within the specified range of hlim: try to increase it
5: In kernelUD(xy, id, h, grid, same4all, hlim, kern, extent) :
The algorithm did not converge
within the specified range of hlim: try to increase it
6: In kernelUD(xy, id, h, grid, same4all, hlim, kern, extent) :
The algorithm did not converge
within the specified range of hlim: try to increase it
7: In kernelUD(xy, id, h, grid, same4all, hlim, kern, extent) :
The algorithm did not converge
within the specified range of hlim: try to increase it
8: In kernelUD(xy, id, h, grid, same4all, hlim, kern, extent) :
The algorithm did not converge
within the specified range of hlim: try to increase it
Segmentation fault
same for the other methods.
The only Ubuntu environment that works for me at the moment seems to be 10.10, R 2.10 with R libraries installed from the cran2deb repository.
History
Updated by Giovanni Manghi about 1 year ago
- Causes crash or corruption set to Yes
Updated by Anne Ghisla about 1 year ago
Hello Giovanni,
a segmentation fault is unlikely to come from the plugin's Python code. It is either a Python language bug (very unlikely), either a QGIS one.
Which version of QGIS are you using? Was the plugin working with previous/stable QGIS versions under Ubuntu 11.10?
Thanks for feedback! I hope to get this solved asap.
Updated by Giovanni Manghi about 1 year ago
Anne Ghisla wrote:
Hello Giovanni,
a segmentation fault is unlikely to come from the plugin's Python code. It is either a Python language bug (very unlikely), either a QGIS one. Which version of QGIS are you using? Was the plugin working with previous/stable QGIS versions under Ubuntu 11.10?
Thanks for feedback! I hope to get this solved asap.
Hi Anne you are right. Is a QGIS problem. The crash occour in QGIS-master, while under 1.7.4 it works fine.