gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
382 stars 277 forks source link

'Min magnitude' mismatch in job configuration causes exceptions #267

Closed larsbutler closed 13 years ago

larsbutler commented 13 years ago

If a source model defines a source with a 'minMagnitude' which is less than the MINIMUM_MAGNITUDE in the job config file, a celery daemon running the task will throw errors like this:

[2011-06-13 10:47:48,552: ERROR/MainProcess] Task openquake.hazard.tasks.compute_hazard_curve[b5be76a0-7872-4fb2-b642-646d7a1c4154] raised exception: ,))>'. Reason: 'Can't pickle : attribute lookup jpype._jclass.org.opensha.commons.exceptions.DataPoint2DException failed'.>
MaybeEncodingError: Error sending result: ',))>'. Reason: 'Can't pickle : attribute lookup jpype._jclass.org.opensha.commons.exceptions.DataPoint2DException failed'.

This kind of error needs to be handled better. We should add this case to blackbox test suite.

larsbutler commented 13 years ago

Moved to: https://bugs.launchpad.net/openquake/+bug/825044