Tried to invert singular LMatrix4 error

Hi there!

I’m trying to attach a model to a joint like it’s described here: https://docs.panda3d.org/1.10/python/programming/models-and-actors/attaching-objects-to-joints

The model is okay until an animation is started. In that moment I’m getting such an error:

Traceback (most recent call last):
  File "E:\Panda3D-1.10.5-x64\direct\showbase\ShowBase.py", line 2020, in __igLoop
:linmath(warning): Tried t    oself.graphicsEngine.renderFrame()
 iAssertionErrornvert singu: lahas_mat() at line 461 of c:\buildslave\sdk-windows-amd64\build\built1.10\include\transformState.Ir
LMatrix4.
:task(error): Exception occurred in PythonTask igLoop
AssertiTraceback (most recent call last):
o  File "E:\Python37\lib\runpy.py", line 193, in _run_module_as_main
n failed:     "__main__", mod_spec)has
_  File "E:\Python37\lib\runpy.py", line 85, in _run_code
mat()     atexec(code, run_globals) l
i  File "c:\Users\ilyaf\.vscode\extensions\ms-python.python-2020.5.86398\pythonFiles\lib\python\debugpy\wheels\debugpy\__main__.py", line 45, in <module>
ne 461     cli.main()o
f  File "c:\Users\ilyaf\.vscode\extensions\ms-python.python-2020.5.86398\pythonFiles\lib\python\debugpy\wheels\debugpy/..\debugpy\server\cli.py", line 430, in main
 c:\b    run()
  File "c:\Users\ilyaf\.vscode\extensions\ms-python.python-2020.5.86398\pythonFiles\lib\python\debugpy\wheels\debugpy/..\debugpy\server\cli.py", line 267, in run_file
uildslave    \runpy.run_path(options.target, run_name=compat.force_str("__main__"))sd
k  File "E:\Python37\lib\runpy.py", line 263, in run_path
-windows-amd64\    bupkg_name=pkg_name, script_name=fname)il
d\b  File "E:\Python37\lib\runpy.py", line 96, in _run_module_code
uilt1.10    \mod_name, mod_spec, pkg_name, script_name)in
c  File "E:\Python37\lib\runpy.py", line 85, in _run_code
lude\tra    nsexec(code, run_globals)fo
r  File "e:\git_reps\ForwardOnly\main.py", line 126, in <module>
mState.I
    ForwardOnly().run()Assertion fai
  File "E:\Panda3D-1.10.5-x64\direct\showbase\ShowBase.py", line 3152, in run
led: has_mat() at line 461     oself.taskMgr.run()f 
c:  File "E:\Panda3D-1.10.5-x64\direct\task\Task.py", line 537, in run
\buildslave    \self.step()sdk
-w  File "E:\Panda3D-1.10.5-x64\direct\task\Task.py", line 491, in step
indows-amd    64self.mgr.poll()\b
uil  File "E:\Panda3D-1.10.5-x64\direct\showbase\ShowBase.py", line 2020, in __igLoop
d\built1.10\include\t    raself.graphicsEngine.renderFrame()ns
fAssertionErroror: mShas_mat() at line 461 of c:\buildslave\sdk-windows-amd64\build\built1.10\include\transformState.Ita
te.I
:linmath(warning): Tried to invert singular LMatrix4.
Assertion failed: has_mat() at line 461 of c:\buildslave\sdk-windows-amd64\build\built1.10\include\transformState.I
Assertion failed: has_mat() at line 461 of c:\buildslave\sdk-windows-amd64\build\built1.10\include\transformState.I
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "E:\Panda3D-1.10.5-x64\direct\showbase\ShowBase.py", line 54, in exitfunc
    builtins.base.destroy()
  File "E:\Panda3D-1.10.5-x64\direct\showbase\ShowBase.py", line 546, in destroy
    self.aspect2d.node().removeAllChildren()
AssertionError: has_mat() at line 461 of c:\buildslave\sdk-windows-amd64\build\built1.10\include\transformState.I

I’ve looked through several similar topics, zero scales and so on, but nothing helps me. Any thoughts?