The slaughter task stalls

Bug #596281 reported by Erik Ogenvik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyphesis
Fix Released
Medium
Al Riddoch

Bug Description

This is found in the output from cyphesis:

2010-06-19T16:10:05 WARNING Character::TickOperation: Task slaughter has stalled
2010-06-19T16:10:08 ERROR Python error calling "tick_operation"
2010-06-19T16:10:08 SCRIPT_ERROR Traceback (most recent call last):
2010-06-19T16:10:08 SCRIPT_ERROR File "/home/erik/opt/worldforge/share/cyphesis/rulesets/mason/world/tasks/Slaughter.py", line 45, in tick_operation
2010-06-19T16:10:08 SCRIPT_ERROR self.progress = (self.count - target.mass) / self.count
2010-06-19T16:10:08 SCRIPT_ERROR ZeroDivisionError: float division
2010-06-19T16:10:08 ERROR Script for "26180905" has reported an error processing a tick operation. This entity is probably now inactive.

The message is repeated every three seconds.
It's also impossible for a client to connect to the server.
Cyphesis is built from git 2010-04-06.

Revision history for this message
Al Riddoch (alriddoch) wrote :

This looks like a corner case which occurred when a pig had a very small mass.

Changed in cyphesis:
status: New → Confirmed
Revision history for this message
Al Riddoch (alriddoch) wrote :

I've tweaked the logic to detect and avoid the division by zero.

Changed in cyphesis:
assignee: nobody → Al Riddoch (alriddoch)
importance: Undecided → Medium
status: Confirmed → Fix Committed
Al Riddoch (alriddoch)
Changed in cyphesis:
milestone: none → 0.5.24
Al Riddoch (alriddoch)
Changed in cyphesis:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.