Moguri / panda3d-gltf

glTF utilities for Panda3D
BSD 3-Clause "New" or "Revised" License
82 stars 19 forks source link

gltf-viewer and gltf2bam crashes while loading character model #136

Open Yonnji opened 3 months ago

Yonnji commented 3 months ago

Model file: https://github.com/murasaqi/ZONKO_3D_OPEN_SOURCE_PROJECT_MurasaqiExample/blob/main/Unity_ZONKO_3D_OPEN_SOURCE_PROJECT/Assets/Zone_LiveDemo/Models/znk/znk_221107/vrm/znk.vrm It's just a GLB with an extra metadata and could be imported into Blender after renamed as .glb.

Panda3D 1.10.14

panda3d-gltf 0.13 can import and display the character just fine. The node tree is wrong and unusable (has a lot of Character's), but that's another story.

panda3d-gltf 1.1.0 crashes on:

:gobj(warning): Dropping empty array from GeomVertexFormat.
Assertion failed: fi != _formats.end() at line 1050 of panda/src/gobj/geomVertexFormat.cxx
Assertion failed: !is_registered() at line 75 of panda/src/gobj/geomVertexFormat.cxx

panda3d-gltf master crashes on:

AttributeError: 'NoneType' object has no attribute 'fullpath'
Because it couldn't find gltf/hdri/512_cg_0.hdr file

Panda3D master

panda3d-gltf 0.13 work the same way as with older panda3d

panda3d-gltf 1.1.0 crashes with:

:gobj(warning): Dropping empty array from GeomVertexFormat.
munmap_chunk(): invalid pointer
Aborted (core dumped)

coredumpctl trace:

                Stack trace of thread 39797:
                #0  0x00007fa057ca8664 __pthread_kill_implementation (libc.so.6 + 0x99664)
                #1  0x00007fa057c4fc4e raise (libc.so.6 + 0x40c4e)
                #2  0x00007fa057c37902 abort (libc.so.6 + 0x28902)
                #3  0x00007fa057c38767 __libc_message_impl.cold (libc.so.6 + 0x29767)
                #4  0x00007fa057cb27e5 malloc_printerr (libc.so.6 + 0xa37e5)
                #5  0x00007fa057cb2abc munmap_chunk (libc.so.6 + 0xa3abc)
                #6  0x00007fa057cb759a free (libc.so.6 + 0xa859a)
                #7  0x00007fa0485d7d01 n/a (libpanda.so.1.11.0 + 0x3d7d01)
Kupoman commented 3 months ago

+1

The Duck sample glb file encounters the missing 512_cg_0.hdr file error too: https://github.com/KhronosGroup/glTF-Sample-Models/blob/main/2.0/Duck/glTF-Binary/Duck.glb

Moguri commented 4 weeks ago

The 512_ch_0.hdr issue is fixed with v1.2.1, but this issue was limited to gltf-viewer, so I still need to see why the model doesn't work with gltf2bam.