SourceIO icon indicating copy to clipboard operation
SourceIO copied to clipboard

Deadlock model import crashes blender

Open ranidspace opened this issue 5 months ago • 2 comments

On Linux Blender 4.5.0, tested as well with latest RC for 4.5.3. I'm on the latest git version of the addon, marked as 5.5.0. I extracted the models/heroes_wip/doorman_v2/ folder as-is using Source 2 Viewer version 14.1.4764, and imported doorman.vmdl_c. There's a lot longer of a console output, but it ends with

[DEBUG]--[ContentManager:find_file]: Requesting models/heroes_wip/doorman/materials/doorman_door.vmat_c file
ERROR:root:Failed to load material models/heroes_wip/doorman/materials/doorman_door.vmat for doorman!
Print setting normals
[DEBUG]--[ContentManager:find_file]: Requesting models/heroes_wip/doorman/materials/doorman_gundoor_portal.vmat_c file
ERROR:root:Failed to load material models/heroes_wip/doorman/materials/doorman_gundoor_portal.vmat for doorman!
Print setting normals
Print setting normals
Writing: /tmp/blender.crash.txt
zsh: segmentation fault (core dumped)  /usr/local/blender

If I extract models/heroes_wip/doorman/ to the same folder, the same crash occurs at the same point, but without the errors in the log, meaning that doesnt seem to be the issue.

The /tmp/blender.crash.txt has this:

# Python backtrace
  File "/home/ranid/.config/blender/4.5/scripts/addons/SourceIO-master/blender_bindings/source2/vmdl_loader.py", line 620 in import_drawcall
  File "/home/ranid/.config/blender/4.5/scripts/addons/SourceIO-master/blender_bindings/source2/vmdl_loader.py", line 444 in import_scene_object
  File "/home/ranid/.config/blender/4.5/scripts/addons/SourceIO-master/blender_bindings/source2/vmdl_loader.py", line 429 in create_mesh
  File "/home/ranid/.config/blender/4.5/scripts/addons/SourceIO-master/blender_bindings/source2/vmdl_loader.py", line 256 in load_internal_mesh
  File "/home/ranid/.config/blender/4.5/scripts/addons/SourceIO-master/blender_bindings/source2/vmdl_loader.py", line 214 in create_meshes
  File "/home/ranid/.config/blender/4.5/scripts/addons/SourceIO-master/blender_bindings/source2/vmdl_loader.py", line 92 in load_model
  File "/home/ranid/.config/blender/4.5/scripts/addons/SourceIO-master/blender_bindings/operators/source2_operators.py", line 58 in execute

As a test, I imported a model from CS2 with no issues using the same setup.

ranidspace avatar Sep 01 '25 18:09 ranidspace

Unfortunately I have no idea what causing this. In blender 3.6 this model does not crash. Also, current deadlock models have a very-very weird geometry, where they have hundreds of 0-area triangles, this may be breaking modern blender versions.

REDxEYE avatar Sep 02 '25 12:09 REDxEYE

I too encountered a similar crash with blender 4.5., installing a prior version (Blender 4.2) allowed me to open the Deadlock model without issue.

Supercrafter55 avatar Sep 05 '25 08:09 Supercrafter55

Should be fixed now, found a workaround;

REDxEYE avatar Nov 16 '25 16:11 REDxEYE