Closed wolfviking0 closed 4 years ago
Does this happen on import or when you load in-game? Also, have you tried in the non-Mono version?
Hi @vnen, the crash happen during the import. And it happen with both version mono and non-mono.
The same big model is loading fine with the three.js viewer.
@vnen is it possible to run godot directly from Xcode to breakpoint and try to give you more information about the crash ?
@wolfviking0 yes, it's possible. You need to set up the command line arguments to run the editor directly and not the project manager. There's a doc page about configuring Xcode, though I'm not sure if it's up to date: http://docs.godotengine.org/en/latest/development/cpp/configuring_an_ide.html#xcode
@vnen I was able to configure the project to start with Xcode and breakpoint, unfortunately the loading of the path directly do not seem to work for me, any suggestion ?
@wolfviking0 looks like it can't find nor create the config file. I'm not sure why this is a problem but you can try to put a blank file called ._sc_
in the same directory as the executable which will the run in self-contained mode (it will create settings and needed files in the same directory).
@vnen I can see the issue of the loading the config file is gone, but still Godot is not launching directly the project using --path.
@vnen, finally here more information I was able to catch, the crash happen in the line 1743 of the file editor_scene_importer_gltf.cpp
The p_parent_bones size is 3, but the index request is 3 too. So the operator [] crash of course.
I am not sure why it's happening in Godot, as I say before this model load fine with three.js.
I don't know about glTF, but maybe it could be fixed by checking the actual size of vector in the condition: https://github.com/godotengine/godot/blob/c32b24da70ebf345a2c6aa4092ee7b96c1a2a6ac/editor/import/editor_scene_importer_gltf.cpp#L1742-L1744
@vnen right if I add something like,
if (i >= 0 && i< p_parent_bones.size()) { s->set_bone_parent(bone_index, p_parent_bones[i]); }
Godot it's not crashing anymore, but the model is incorrect, is missing one big part (The head ...)
@vnen I wanted to try another model a little bit simpler, but with a similar structure, I try to load this model https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/CesiumMan And it seems the animation is not working, it seems the mesh is not attached properly to the squeleton. It the same issue with other gltf model with squeleton.
There have been improvements to GLTF2 loading. Please try your test models.
Can we close this bug after two weeks?
Yes. Please comment if you can still reproduce the issue, and share the affected model.
Hi,
I am trying to find the best way to load GLTF model, so far after comparing Unity / Unreal / JMonkey only Godot has a support of blend shape.
I first test loading a basing AnimatedCube from the official Khronos Model repository, everything is fine.
But now I want to try on a bigger model with around 55 blend shape. But each time I try I have a crash of Godot.
I add the stack trace I was able to grab from the console.
Godot version: Godot_v3.0.2-stable_mono_osx64
Issue log:
Bugsquad edit: formatting
Native stacktrace:
0 Godot 0x000000010df39911 mono_handle_native_crash + 257 1 Godot 0x000000010df47cce mono_sigill_signal_handler + 46 2 libsystem_platform.dylib 0x00007fff57aeff5a _sigtramp + 26 3 ??? 0x000000011205da00 0x0 + 4597340672 4 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 5 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 6 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 7 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 8 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 9 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 10 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 11 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 12 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 13 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 14 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 15 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 16 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 17 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 18 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 19 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 20 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 21 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 22 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 23 Godot 0x000000010ee669d0 _ZN23EditorSceneImporterGLTF14_generate_boneERNS_9GLTFStateEiR6VectorIP8SkeletonERKS2_IiEP4Node + 1424 24 Godot 0x000000010ee65f59 _ZN23EditorSceneImporterGLTF14_generate_nodeERNS_9GLTFStateEiP4NodeS3_R6VectorIP8SkeletonE + 1753 25 Godot 0x000000010ee65f8e _ZN23EditorSceneImporterGLTF14_generate_nodeERNS_9GLTFStateEiP4NodeS3_R6VectorIP8SkeletonE + 1806 26 Godot 0x000000010ee65f8e _ZN23EditorSceneImporterGLTF14_generate_nodeERNS_9GLTFStateEiP4NodeS3_R6VectorIP8SkeletonE + 1806 27 Godot 0x000000010ee65f8e _ZN23EditorSceneImporterGLTF14_generate_nodeERNS_9GLTFStateEiP4NodeS3_R6VectorIP8SkeletonE + 1806 28 Godot 0x000000010ee65f8e _ZN23EditorSceneImporterGLTF14_generate_nodeERNS_9GLTFStateEiP4NodeS3_R6VectorIP8SkeletonE + 1806 29 Godot 0x000000010ee6b121 _ZN23EditorSceneImporterGLTF15_generate_sceneERNS_9GLTFStateEi + 961 30 Godot 0x000000010ee6bdc7 _ZN23EditorSceneImporterGLTF12import_sceneERK6StringjiP4ListIS0_16DefaultAllocatorEP5Error + 1495 31 Godot 0x000000010ee93f02 _ZN21ResourceImporterScene6importERK6StringS2_RK3MapI10StringName7Variant10ComparatorIS4_E16DefaultAllocatorEP4ListIS0_S8_ESE_ + 2226 32 Godot 0x000000010ead3d44 _ZN16EditorFileSystem14_reimport_fileERK6String + 2628 33 Godot 0x000000010eaccdf2 _ZN16EditorFileSystem14reimport_filesERK6VectorI6StringE + 1410 34 Godot 0x000000010eacba20 _ZN16EditorFileSystem20_update_scan_actionsEv + 1936 35 Godot 0x000000010ead0832 _ZN16EditorFileSystem13_notificationEi + 802 36 Godot 0x000000010ead8edc _ZN16EditorFileSystem14_notificationvEib + 76 37 Godot 0x000000010fe79426 _ZN6Object12notificationEib + 22 38 Godot 0x000000010f199059 _ZN9SceneTree19_notify_group_pauseERK10StringNamei + 473 39 Godot 0x000000010f19951a _ZN9SceneTree4idleEf + 394 40 Godot 0x000000010e129db6 _ZN4Main9iterationEv + 870 41 Godot 0x000000010e105542 _ZN6OS_OSX3runEv + 402 42 Godot 0x000000010e1083c2 main + 866 43 libdyld.dylib 0x00007fff5786e115 start + 1Debug info from gdb:
``` (lldb) command source -s 0 '/tmp/mono-gdb-commands.u2Fur4' Executing commands in '/tmp/mono-gdb-commands.u2Fur4'. (lldb) process attach --pid 40945 Traceback (most recent call last): File "", line 1, in