Opened 11 years ago
Closed 11 years ago
#2019 closed defect (fixed)
v.voronoi Segmentation fault
Reported by: | DmitryKolesov | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.4 |
Component: | Vector | Version: | svn-releasebranch64 |
Keywords: | v.voronoi | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
The next lines cause crash report:
echo "7414297.17458|6180640.72109|242 7414836.48276|6179963.8034|817 " | v.in.ascii in=- out=test_tmp x=1 y=2 cat=3 --o g.region vect=test_tmp v.voronoi -t in=test_tmp out=test_tmp_v --o WARNING: Vector map <test_tmp_v> already exists and will be overwritten Reading sites... Voronoi triangulation... Segmentation fault (core dumped)
The version GRASS GIS is
g.version -r GRASS 6.4.3RC3 (2013) Revision: 50937 Date: 2012-02-25 14:14:51 +0100 (Sat, 25 Feb 2012)
Change History (10)
follow-up: 3 comment:1 by , 11 years ago
comment:2 by , 11 years ago
Keywords: | v.voronoi added |
---|
follow-ups: 4 5 comment:3 by , 11 years ago
Replying to hamish:
is it trying to make a triangle (with area==0) from two points? or were those two points extracted from a larger map having the problem?
Yes, I tryed to create Voronoi diagram from 2 points. But I think (probably wrong): 1) Voronoi diagram of 2 points is possible (the line splits the plain in two half-planes) 2) In any case the module should print a message (the module crashes now).
comment:4 by , 11 years ago
Replying to DmitryKolesov:
Replying to hamish:
is it trying to make a triangle (with area==0) from two points? or were those two points extracted from a larger map having the problem?
Yes, I tryed to create Voronoi diagram from 2 points. But I think (probably wrong):
1) Voronoi diagram of 2 points is possible (the line splits the plain in two half-planes)
I agree, this should be possible, but the algorithm (basically written in 1992) does not support this. I guess that the algorithm also does not support points lying on a straight line.
2) In any case the module should print a message (the module crashes now).
Done for trunk in r57182.
follow-ups: 6 9 comment:5 by , 11 years ago
Replying to DmitryKolesov:
Replying to hamish:
is it trying to make a triangle (with area==0) from two points? or were those two points extracted from a larger map having the problem?
Yes, I tryed to create Voronoi diagram from 2 points. But I think (probably wrong): 1) Voronoi diagram of 2 points is possible (the line splits the plain in two half-planes)
Right, the same applies to any number of points lying on a straight line. Fixed in trunk r57610.
comment:6 by , 11 years ago
comment:7 by , 11 years ago
btw, if it is of interest, I've beeen playing around with some 3D grid creation software lately called Gmsgh, (GPL>=2, standard debian/ubuntu package)
Hamish
follow-up: 10 comment:9 by , 11 years ago
Milestone: | 6.4.3 → 6.4.4 |
---|
comment:10 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | → svn-releasebranch64 |
Replying to neteler: ...
The original crash reported above no longer occurs. Can the ticket be closed?
Closing as fixed.
is it trying to make a triangle (with area==0) from two points? or were those two points extracted from a larger map having the problem?