Bug #997

failed to coerce slice entry of type float to integer

Added by Joel Palmius over 2 years ago. Updated over 2 years ago.

Status:FixedStart date:03/03/2016
Priority:NormalDue date:
Assignee:Jonas Hauquier% Done:

90%

Category:MakeHuman GUI
Target version:MakeHuman 1.1.0

Description

Seems as if there's a crash in poses, see http://www.makehumancommunity.org/forum/viewtopic.php?f=3&t=13187

showing task Pose
Automatically guessed coordinate system for BVH file data/poses/fight02.bvh (Z-up)
Scaling animation fight02 with factor 0.977207375823
Updating baked animation fight02 (1 frames)
Exception during event onFileSelected
Traceback (most recent call last):
  File "./core/events3d.py", line 212, in callEvent
    method(event)
  File "plugins/3_libraries_pose.py", line 93, in onFileSelected
    gui3d.app.do(PoseAction("Change pose", self, self.currentPose, filename))
  File "./core/mhmain.py", line 857, in do
    if action.do():
  File "plugins/3_libraries_pose.py", line 65, in do
    self.library.loadPose(self.after)
  File "plugins/3_libraries_pose.py", line 164, in loadPose
    self.human.setPosed(True)
  File "./apps/human.py", line 1370, in setPosed
    animation.AnimatedMesh.setPosed(self, posed)
  File "./shared/animation.py", line 991, in setPosed
    self.refreshPose(updateIfInRest=True)
  File "./apps/human.py", line 1388, in refreshPose
    super(Human, self).refreshPose(updateIfInRest)
  File "./shared/animation.py", line 1115, in refreshPose
    self._pose(syncSkeleton=syncSkeleton)
  File "./shared/animation.py", line 1047, in _pose
    poseState = self.getPoseState()
  File "./shared/animation.py", line 1025, in getPoseState
    poseState = self.__currentAnim.getAtTime(self.__playTime, noBake)
  File "./shared/animation.py", line 187, in getAtTime
    return data[idx:idx+self.nBones]
IndexError: failed to coerce slice entry of type float to integer

Associated revisions

2016:758f797a2dd4
Added by Jonas Hauquier over 2 years ago

Fix #997: Guard against math.modf woes (returning integer part as float type)

b557cc64
Added by tracker_test_user (Forum User) over 2 years ago

Fix #997: Guard against math.modf woes (returning integer part as float type)

2017:cf3b0685519c
Added by Jonas Hauquier over 2 years ago

Fix #997: Add more guards in AnimationTrack constructor

dbf90064
Added by tracker_test_user (Forum User) over 2 years ago

Fix #997: Add more guards in AnimationTrack constructor

History

#1 Updated by Jonas Hauquier over 2 years ago

  • Status changed from New to Fix exists, needs testing
  • % Done changed from 0 to 90

Applied in changeset commit:makehuman_hg|758f797a2dd4.

#2 Updated by Jonas Hauquier over 2 years ago

Applied in changeset commit:makehuman_hg|cf3b0685519c.

#3 Updated by Jonas Hauquier over 2 years ago

  • Status changed from Fix exists, needs testing to Fixed

Reported as fixed

Also available in: Atom