Bug report #11489
crash with force point inside polygon in centroid fill style
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||Yes||Copied to github as #:||19759|
as object qgis 2.5 master build fad44d0 running in XP chashes trying to apply 'force point into polygon' in 'centroid fill' style
I attach shp data to replicate issue that appens loading PRG_crash.qml as style in properties dialog.
Fix #11489 (crash with force point inside polygon in centroid fill style)
This isn't actually a very good fix. The issue in the "maptopixel" simplification
is still there, it is just less obvious, while sacrificing a bit of QgsGeometry correctness
(like the fact that linear ring should have >= 4 points)
Along the way I have added some comments that may help others decode why the code does things it does.
#4 Updated by Giovanni Manghi over 5 years ago
confirmed on Linux
Warning: "GEOS exception: TopologyException: Input geom 1 is invalid: Self-intersection at or near point 355.28866615062884 728.20000000000005 at 355.28866615062884 728.20000000000005"
Warning: "GEOS exception: TopologyException: Input geom 1 is invalid: Self-intersection at or near point 355.28866615050498 728.19999999983077 at 355.28866615050498 728.19999999983077"
Warning: "GEOS exception: TopologyException: Input geom 1 is invalid: Self-intersection at or near point 184.16133016218487 728.20000000296932 at 184.16133016218487 728.20000000296932"
QGIS died on signal 11Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
gdb returned 0