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

Catch geos exception in main event loop #4309

Merged
merged 2 commits into from
Mar 29, 2017
Merged

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Mar 28, 2017

If something fails to catch a geos exception, at least there will be more information in the message box.

I hope to get more information next time I run into this reshape tool shows "Unknown Exception" message possibly related to CRS and snapping but not sure and cannot reproduce error.

I am not sure what exactly the reason was for GEOSException implementing a static lastMsg variable. It looks like this is only assigned but never used and is some really old code.

@nyalldawson
Copy link
Collaborator

Looks good to me... I've also hit random GEOS exceptions which I just can't pinpoint, so anything that gives more clues as to their source is welcome!

@m-kuhn m-kuhn merged commit a71132a into qgis:master Mar 29, 2017
@m-kuhn
Copy link
Member Author

m-kuhn commented Mar 29, 2017

Actually... We should probably update and use QgsException and catch a stacktrace in the constructor when compiled in debug mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants