IndexError: index out of bounds when producing hazard maps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Critical
|
Lars Butler |
Bug Description
Running the "california only" or South East Asia calculations provided by Damiano, the calculation runs to 100% but then fails during the post-processing phase with the following error:
[2012-12-05 10:42:13,714 #27 gemcontrol.ethz.ch PROGRESS MainProcess/19933 root] ** > hazard 99% complete
[2012-12-05 10:42:42,330 #27 gemcontrol.ethz.ch PROGRESS MainProcess/19933 root] ** > hazard calculation 100% complete
[2012-12-05 10:42:42,338 #27 gemcontrol.ethz.ch PROGRESS MainProcess/19933 root] ** post_executing (hazard)
[2012-12-05 10:42:42,469 #27 gemcontrol.ethz.ch PROGRESS MainProcess/19933 root] ** post_processing (hazard)
[2012-12-05 10:41:31,993 #27 gemsun02.ethz.ch CRITICAL PoolWorker-9/8219 root] Error occurred in task: index out of bounds
[2012-12-05 10:41:31,994 #27 gemsun02.ethz.ch ERROR PoolWorker-9/8219 root] index out of bounds
Traceback (most recent call last):
File "/usr/local/
task_
File "/usr/local/
imls = hazard_maps[i]
IndexError: index out of bounds
[2012-12-05 10:42:42,994 #27 gemcontrol.ethz.ch CRITICAL MainProcess/19933 root] Calculation failed with exception: 'index out of bounds'
Traceback (most recent call last):
File "./bin/openquake", line 465, in <module>
main()
File "./bin/openquake", line 445, in main
args.
File "./bin/openquake", line 219, in run_hazard
completed_job = engine2.
File "/usr/local/
return _run_calc(job, log_level, log_file, exports, calc, 'hazard')
File "/usr/local/
_do_
File "/usr/local/
calc.
File "/usr/local/
post_
File "/usr/local/
utils_
File "/usr/local/
for result in results:
File "/usr/lib/
propagate=
File "/usr/lib/
interval=
File "/usr/lib/
raise self.exception_
IndexError: index out of bounds
Changed in openquake: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Lars Butler (lars-butler) |
status: | Confirmed → In Progress |
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
This bug can be reproduced with any classical hazard calculation using the following parameters:
number_ of_logic_ tree_samples = 1 hazard_ curves =
mean_hazard_curves = false
quantile_
poes_hazard_maps = at least one PoE
This is issue is caused by an uncommitted transaction in https:/ /github. com/gem/ oq-engine/ blob/ccdb6713b8 a2365ba7414b25f ef836453248457b /openquake/ calculators/ hazard/ classical/ core.py# L267.
I have submitted this patch to address the issue: https:/ /github. com/gem/ oq-engine/ pull/971
Note: https:/ /github. com/gem/ oq-engine/ pull/968 also includes a different fix for the same issue, but 971 address the issue more directly.