Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node tool on PostGIS table with null geometry causes crash #20909

Closed
qgib opened this issue May 22, 2015 · 7 comments
Closed

Node tool on PostGIS table with null geometry causes crash #20909

qgib opened this issue May 22, 2015 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Digitizing Related to feature digitizing map tools or functionality High Priority

Comments

@qgib
Copy link
Contributor

qgib commented May 22, 2015

Author Name: Simon Casley (Simon Casley)
Original Redmine Issue: 12813
Affected QGIS version: master
Redmine category:digitising


Hi,

When using the node tool to edit features from a PostGIS table, I was getting an 'Unknown Exception' error whenever I tried to move a node or add a new one. I’m then unable to display nodes on this layer – clicking on a feature brings up the message “Node tool: could not snap to a segment on the current layer”. QGIS then crashes when I try to remove that layer, open a new project, or close QGIS.

Looks like it only happens on PostGIS layers that contain a feature with null geometry. Node tool works fine on the same data as a shapefile.

I could edit the same PostGIS layer without any issue in 2.6.

Cheers
Simon


@qgib
Copy link
Contributor Author

qgib commented May 22, 2015

Author Name: Giovanni Manghi (@gioman)


could you please qgis master and report back?


  • category_id was configured as Digitising
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 25, 2015

Author Name: Simon Casley (Simon Casley)


I've just tried it on 2.9.0-Master (on Windows) 32 and 64 bit versions, and I get the same error.

Also, noticed that the extents of the layer shown in Metadata are initially: xMin,yMin 574694.62,474760.06 : xMax,yMax 1344737.38,926735.31, but after clicking 'Update extents', they become: xMin,yMin -179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.00,-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.00 : xMax,yMax 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.00,179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.00

Cheers
Simon

@qgib
Copy link
Contributor Author

qgib commented May 26, 2015

Author Name: Giovanni Manghi (@gioman)


please provide sample data.


  • version was changed from 2.8.2 to master

@qgib
Copy link
Contributor Author

qgib commented May 29, 2015

Author Name: Simon Casley (Simon Casley)


Hi - here are sample data: a (sql) dump from postgresql and the same data saved as a shapefile. There is one feature (objectid 641) which has empty geometry.
I'm using postgresql 9.1.15, postgis 2.0
Thanks!


  • 8757 was configured as stream_ln.backup
  • 8758 was configured as stream_ln.zip

@qgib
Copy link
Contributor Author

qgib commented May 29, 2015

Author Name: Giovanni Manghi (@gioman)


Simon Casley wrote:

Hi - here are sample data: a (sql) dump from postgresql a

no crash whatsoever here on qgis master, pg 9.3 postgis 2.1

@qgib
Copy link
Contributor Author

qgib commented Jun 13, 2015

Author Name: Giovanni Manghi (@gioman)


Simon Casley wrote:

Hi - here are sample data: a (sql) dump from postgresql and the same data saved as a shapefile. There is one feature (objectid 641) which has empty geometry.
I'm using postgresql 9.1.15, postgis 2.0
Thanks!

I cannot replicate this on multiple systems and qgis/postgis versions. I would appreciate if you could test on other systems, so we can exclude that is a local issue (as it is likely to be).

@qgib
Copy link
Contributor Author

qgib commented Dec 19, 2015

Author Name: Giovanni Manghi (@gioman)


closing for lack of feedback.


  • resolution was changed from to worksforme
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Digitizing Related to feature digitizing map tools or functionality Crash/Data Corruption labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Ailurupoda pushed a commit to SIRS-CLS/QGIS that referenced this issue Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Digitizing Related to feature digitizing map tools or functionality High Priority
Projects
None yet
Development

No branches or pull requests

1 participant