KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.48k stars 316 forks source link

Exporter crashes on imported glTF model #748

Closed dirkk0 closed 4 years ago

dirkk0 commented 4 years ago

Describe the bug I imported a model from Sketchfab into Blender 2.8 and tried to export it; the exporter crashes.

To Reproduce Steps to reproduce the behavior:

  1. Download the model from here: https://sketchfab.com/3d-models/wr-sales-space-e7051b98e3a749968a0c1497fa6026e4
  2. Import into Blender 2.8 (OSX)
  3. Export with default settings.
  4. Crash (with many glt2_blender_gather_cache.py errors)

Expected behavior The downloaded model works great in A-Frame; my expectation was that I could import a model in Blender and export it again.

.blend file/ .gltf The zip can be obtained from Sketchfab with the link above.

Version

julienduroure commented 4 years ago

Hello, Can you please test again with 2.81 beta that you can download here : builder.blender.org ? Thanks

dirkk0 commented 4 years ago

Sure thing. Now it doesn't crash but saves forever, and never returns. Tried it with both glb and gltf+bin.

Selecting just a part of the asset seems to work but results in a near empty file:

{
    "asset" : {
        "generator" : "Khronos glTF Blender I/O v1.0.4",
        "version" : "2.0"
    },
    "scene" : 0,
    "scenes" : [
        {
            "name" : "Scene"
        }
    ]
}

Any other suggestions? Thanks for looking into this.

julienduroure commented 4 years ago

I am currently at the blender conference for the entire week, but I will look into it next week.

dirkk0 commented 4 years ago

Ah great! Have fun, and thanks!

julienduroure commented 4 years ago

Hello, I don't have any issue exporting it. Are you sure that you didn't check "selection only" option and select nothing it you scene? I can export it, and reopen in online viewer: image

dirkk0 commented 4 years ago

Ok, then I must be doing very stupid here :/ - could you do me the favour to tell me what it is? https://youtu.be/U44hZA544As

julienduroure commented 4 years ago

Is you exported test.glb file still empty? Looks like it take some time to export, so it should have exported something, but you cut the video before the end of export, and without displaying test.glb size

dirkk0 commented 4 years ago

... ah ok - that was the problem.

The export took over two minutes; CleanMyMac (wrongly) implied that Blender froze. Exporting to FBX, DAE or OBJ takes around 5 seconds, so I followed this implication.

Great! I don't care how long it takes, as long as it works. And it does! Thank you very much for your work and your help!

On Mon, Oct 28, 2019 at 7:04 PM Julien Duroure notifications@github.com wrote:

Is you exported test.glb file still empty? Looks like it take some time to export, so it should have exported something, but you cut the video without the end

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/KhronosGroup/glTF-Blender-IO/issues/748?email_source=notifications&email_token=AAEYV4UDCOEYZNWGLDT4PALQQ4STTA5CNFSM4JEOV5IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECN3CVI#issuecomment-547074389, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEYV4VMCQE3I5PEXWEBJRTQQ4STTANCNFSM4JEOV5IA .

ariahiro64 commented 1 month ago

i know that this is closed however this reoccurred and I'm making n64 models (like literal models that are exported to libdragon) so the poly count shouldn't be the issue. i also found that all of libdragon users are having this issue post 4.0.x. and its not fast64 as people all across the internet are having this issue that don't know what an n64 or fast64 even is. https://projects.blender.org/blender/blender-addons/issues/98356 https://www.reddit.com/r/blenderhelp/comments/1bc0bmp/glb_export_crash_issue/ https://forum.babylonjs.com/t/blender-crashes-when-exporting-to-glb-cause-of-unoptimized-model-or-weak-pc/6006/7 https://projects.blender.org/blender/blender/issues/83685 https://github.com/KhronosGroup/glTF-Blender-IO/issues/748 https://projects.blender.org/blender/blender/issues/119887

and also i cannot legally send specific files because my files are under nda so i apologize i cant help more.