Bug report #12852

Handle errors in python expressions to avoid crashes

Added by Anita Graser over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20945

Description

QGIS crashes ungracefully when a python expression script contains an error.

I think there should be a warning but the crashes should be avoided.

Crash log from my OSGeo4W install is here:
https://dl.dropboxusercontent.com/u/42637169/qgis-20150530-140918-3584-680-a9aade2.dmp


Related issues

Related to QGIS Application - Bug report #12850: scratch.py under user expression folder in master stops 2... Closed 2015-05-29

Associated revisions

Revision f7401c9b
Added by Salvatore Larosa over 9 years ago

[user expression] Fix crash and add a log message when the expression is not valid, fixes #12852

Revision 96b535b2
Added by Jürgen Fischer over 9 years ago

Merge pull request #2096 from slarosa/fix_crash_user_expressions

[user expression] fixes #12852

Revision 5647056b
Added by Salvatore Larosa over 9 years ago

[user expression] Fix crash and add a log message when the expression is not valid, fixes #12852

(cherry picked from commit f7401c9b272f12fd543c36fe8c2e3217dcede791)

History

#1 Updated by Jürgen Fischer over 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF