OBJ import IndexError #53708

Closed
opened 2018-01-07 13:44:25 +01:00 by Megan Rain · 8 comments

Blender Version
Broken: 2.79 5bd8ac9
Worked: (optional)

Short description of error
obj importer crashes when importing a specific obj file with the following error. Note that the object is successfully imported in 3DObjectConverter and Autodesk's FBX Review.

Traceback (most recent call last):
  File "E:\Programs\Blender2.79\2.79\scripts\addons\io_scene_obj\__init__.py", line 148, in execute
    return import_obj.load(context, **keywords)
  File "E:\Programs\Blender2.79\2.79\scripts\addons\io_scene_obj\import_obj.py", line 1273, in load
    for data in split_mesh(verts_loc, faces, unique_materials, filepath, SPLIT_OB_OR_GROUP):
  File "E:\Programs\Blender2.79\2.79\scripts\addons\io_scene_obj\import_obj.py", line 578, in split_mesh
    verts_split.append(verts_loc[i])  # add the vert to the local verts
IndexError: list index out of range

location: <unknown location>:-1

Exact steps for others to reproduce the error
export.7z

**Blender Version** Broken: 2.79 5bd8ac9 Worked: (optional) **Short description of error** obj importer crashes when importing a specific obj file with the following error. Note that the object is successfully imported in 3DObjectConverter and Autodesk's FBX Review. ``` Traceback (most recent call last): File "E:\Programs\Blender2.79\2.79\scripts\addons\io_scene_obj\__init__.py", line 148, in execute return import_obj.load(context, **keywords) File "E:\Programs\Blender2.79\2.79\scripts\addons\io_scene_obj\import_obj.py", line 1273, in load for data in split_mesh(verts_loc, faces, unique_materials, filepath, SPLIT_OB_OR_GROUP): File "E:\Programs\Blender2.79\2.79\scripts\addons\io_scene_obj\import_obj.py", line 578, in split_mesh verts_split.append(verts_loc[i]) # add the vert to the local verts IndexError: list index out of range location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** [export.7z](https://archive.blender.org/developer/F1723940/export.7z)
Author

Added subscriber: @meganrain

Added subscriber: @meganrain
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2018-01-08 17:51:45 +01:00
Member

Can confirm this file wont load, however I have trouble loading it elsewhere, too (which makes me wonder if this is a valid or corrupt file... yes, I've read it reads well in FBX review...), so will look more into it

Can confirm this file wont load, however I have trouble loading it elsewhere, too (which makes me wonder if this is a valid or corrupt file... yes, I've read it reads well in FBX review...), so will look more into it

Added subscriber: @dmarra

Added subscriber: @dmarra

I was able to reproduce this as well. I manually checked the file to see if there were any mismatched faces (not having at least 3 vertices), and I could not find any that were (on the surface) incorrect.

I was able to reproduce this as well. I manually checked the file to see if there were any mismatched faces (not having at least 3 vertices), and I could not find any that were (on the surface) incorrect.

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

There are 3612 vertices, but faces are referencing indices up to 7226 (the file is corrupt)

There are 3612 vertices, but faces are referencing indices up to 7226 (the file is corrupt)
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#53708
No description provided.