Export obj error #95295

Closed
opened 2022-01-28 21:06:47 +01:00 by Hanna Bondarenko · 10 comments

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.47

Blender Version
Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: blender/blender@dc2d180181
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Wavefront OBJ format (3, 8, 1)
Author: Campbell Barton, Bastien Montagne

Short description of error
Error after export, obj file is saving, but empty. After the error project does not open up. Tried to append it to another, the same reaction.
Report
Python: Traceback (most recent call last):

File "D:\blender\3.0\scripts\addons\io_scene_obj\__init__.py", line 378, in execute
  return export_obj.save(context, **keywords)
File "D:\blender\3.0\scripts\addons\io_scene_obj\export_obj.py", line 770, in save
  _write(context, filepath,
File "D:\blender\3.0\scripts\addons\io_scene_obj\export_obj.py", line 713, in _write
  write_file(full_path, objects, depsgraph, scene,
File "D:\blender\3.0\scripts\addons\io_scene_obj\export_obj.py", line 530, in write_file
  key = material_names[f_mat], None  # No image, use None instead.

IndexError: list index out of range

location: :-1

Exact steps for others to reproduce the error

  1. Export-obj-
  2. Python error
  3. Obj. file is empty baba3.blend
    [Based on the default startup or an attached .blend file (as simple as possible)]
**System Information** Operating system: Windows-10-10.0.19042-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.47 **Blender Version** Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: `blender/blender@dc2d180181` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Wavefront OBJ format (3, 8, 1) Author: Campbell Barton, Bastien Montagne **Short description of error** Error after export, obj file is saving, but empty. After the error project does not open up. Tried to append it to another, the same reaction. **Report** Python: Traceback (most recent call last): ``` File "D:\blender\3.0\scripts\addons\io_scene_obj\__init__.py", line 378, in execute return export_obj.save(context, **keywords) File "D:\blender\3.0\scripts\addons\io_scene_obj\export_obj.py", line 770, in save _write(context, filepath, File "D:\blender\3.0\scripts\addons\io_scene_obj\export_obj.py", line 713, in _write write_file(full_path, objects, depsgraph, scene, File "D:\blender\3.0\scripts\addons\io_scene_obj\export_obj.py", line 530, in write_file key = material_names[f_mat], None # No image, use None instead. ``` IndexError: list index out of range location: <unknown location>:-1 **Exact steps for others to reproduce the error** 1. Export-obj- 2. Python error 3. Obj. file is empty [baba3.blend](https://archive.blender.org/developer/F12831636/baba3.blend) [Based on the default startup or an attached .blend file (as simple as possible)]

Added subscriber: @trishtimh

Added subscriber: @trishtimh

blender/blender#99050 was marked as duplicate of this issue

blender/blender#99050 was marked as duplicate of this issue

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm the problem.
However Blender 3.1.0 has a new much faster obj exporter (you can download at https://builder.blender.org/download/)
As the old exporter might be discontinued at some point, I'm not sure if it will get fixes.

I can confirm the problem. However Blender 3.1.0 has a new much faster obj exporter (you can download at https://builder.blender.org/download/) As the old exporter might be discontinued at some point, I'm not sure if it will get fixes.

Added subscriber: @Raimund58

Added subscriber: @Raimund58
Member

Added subscribers: @Hrofti, @PratikPB2123, @ThomasDinges

Added subscribers: @Hrofti, @PratikPB2123, @ThomasDinges

Added subscriber: @aras_p

Added subscriber: @aras_p

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'

The new OBJ exporter (since Blender 3.1) exports the file correctly. The old python based exporter is likely to get removed soon, and very unlikely to get fixes.

The new OBJ exporter (since Blender 3.1) exports the file correctly. The old python based exporter is likely to get removed soon, and very unlikely to get fixes.
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 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#95295
No description provided.