Math::Quaternion::fromMatrix(): the matrix is not orthogonal
See original GitHub issueHabitat-Lab and Habitat-Sim versions
Habitat-Lab: master Habitat-Sim: master
❓ Questions and Help
I am running the rearrange task with a custom interface in order to use SAC from another repo. I am using the same yaml configuration, just with smaller RGB inputs (64x64). Everything works fine for a while and then I get the following error
W0729 05:21:54.534488 3717050 PhysicsManager.cpp:251] ::addObject : newObjectHandle : 003_cracker_box_:0003
Math::Quaternion::fromMatrix(): the matrix is not orthogonal:
Matrix(nan, nan, nan,
nan, nan, nan,
nan, nan, nan)
This happens always after 3188 steps, and always with newObjectHandle : 003_cracker_box_:0003
. I am not setting any seed in my script (the policy is randomly initialized, and the actions are different across runs), but I am not sure how Habitat seeding is set.
Also, the robot can pick 003_cracker_box_:0003
many times in past iterations, and I am sure I passing correct actions (7-dim actions in [0,1] and last action in [-1,1]).
I am not sure if there is some code error, of if the robot is trying to do some impossible things and thus it crashes. If this is the case, is there a way to prevent the whole code from crashing? Like simply ending the episode, resetting the robot and giving a negative reward to the agent.
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (3 by maintainers)
Top GitHub Comments
Hello, I am also experiencing the same issue. Below I included a more detailed trace of the error by running with
PYTHONFAULTHANDLER=1
. I think this is actually a bug in Habitat Sim, not Habitat Lab. This error happens randomly for me, it will happen on some machines but not others and some methods but not others. For example, I am able to train a SAC policy for 1M steps on the Reacher environment (will be release in this PR https://github.com/facebookresearch/habitat-lab/pull/685) but when I try custom imitation learning algorithms, it fails.I actually also occasionally encountered this error in the working / non-release version with the motion planning approaches specifically. I had not seen this issue in a while so I assumed it was gone, but now I am seeing it often.
This PR fixes the issue in my repository (https://github.com/ethanabrooks/habitat-sim-issue).