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.49k stars 319 forks source link

Export freezes in __search_from_socket #2316

Open huwpascoe opened 3 months ago

huwpascoe commented 3 months ago

Describe the bug Exporting complicated materials with grouped nodes causes blender to freeze indefinitely.

Tracked it down to __search_from_socket, where the stack randomly goes up and down about 60 levels deep. I've managed to temporarily fix it with hack for my own personal use but this is obviously a serious bug that needs fixing.

.blend file/ .gltf (mandatory) mrp.zip

Version Windows 10 Blender 4.2

julienduroure commented 3 months ago

to freeze indefinitely.

Not really. Exported on 37.7s on my computer.

This is a duplicate of #2140 #2278

Root cause is a bad perf on bpy node.links iteration.

Probably the same issue (and same fix can be applied ?) than https://github.com/KhronosGroup/glTF-Blender-IO/commit/35dd7f6b91fb8ebb2dfd03663d1ef35bf835baf3