OBJ import is broken #65326

Closed
opened 2019-05-30 22:25:10 +02:00 by Steve Warner · 28 comments

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.71

Blender Version
Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-29 18:17, hash: fee600f479
Worked: 2.79b

Short description of error
OBJ import fails to import file. It works fine in 2.79b.

Exact steps for others to reproduce the error
Import the attached OBJ file in 2.79b. It will load fine.
Attempt to import the same OBJ into 2.80 and it will not load.
jacketfixed.OBJ

**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.71 **Blender Version** Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-29 18:17, hash: `fee600f479` Worked: 2.79b **Short description of error** OBJ import fails to import file. It works fine in 2.79b. **Exact steps for others to reproduce the error** Import the attached OBJ file in 2.79b. It will load fine. Attempt to import the same OBJ into 2.80 and it will not load. [jacketfixed.OBJ](https://archive.blender.org/developer/F7080293/jacketfixed.OBJ)
Author

Added subscriber: @stevewarner

Added subscriber: @stevewarner

blender/blender-addons#65442 was marked as duplicate of this issue

blender/blender-addons#65442 was marked as duplicate of this issue

#65441 was marked as duplicate of this issue

#65441 was marked as duplicate of this issue

#65293 was marked as duplicate of this issue

#65293 was marked as duplicate of this issue

#65423 was marked as duplicate of this issue

#65423 was marked as duplicate of this issue

#65424 was marked as duplicate of this issue

#65424 was marked as duplicate of this issue

#65403 was marked as duplicate of this issue

#65403 was marked as duplicate of this issue

#65339 was marked as duplicate of this issue

#65339 was marked as duplicate of this issue
Member

Added subscriber: @DanielBystedt

Added subscriber: @DanielBystedt
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

Bug report is resolved. I can import the file jacketfixed.obj just fine. I

These are my testing specs

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.80 (sub 73), branch: blender2.7, commit date: 2019-05-30 17:34, hash: 846056de6b
Worked: (optional)

Bug report is resolved. I can import the file jacketfixed.obj just fine. I These are my testing specs **System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67 **Blender Version** Broken: version: 2.80 (sub 73), branch: blender2.7, commit date: 2019-05-30 17:34, hash: `846056de6b` Worked: (optional)
Author

Hmmm... It's still not working for me on the latest build:

version: 2.80 (sub 73), branch: blender2.7, commit date: 2019-05-31 09:19, hash: 8d95dcd87d, type: Release
build date: 31/05/2019, 02:58

I've cleared out my configs so there's no conflict there.

Here's the error that I'm getting:

Traceback (most recent call last):

File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\__init__.py", line 145, in execute
  return import_obj.load(context, **keywords)
File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\import_obj.py", line 1241, in load
  dataname,
File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\import_obj.py", line 689, in create_mesh
  faces_ma_index = tuple(material_mapping[context_material] for (_, _, _, context_material, _, _, _) in faces)
File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\import_obj.py", line 689, in <genexpr>
  faces_ma_index = tuple(material_mapping[context_material] for (_, _, _, context_material, _, _, _) in faces)

KeyError: None

location: :-1

Hmmm... It's still not working for me on the latest build: version: 2.80 (sub 73), branch: blender2.7, commit date: 2019-05-31 09:19, hash: 8d95dcd87dbb, type: Release build date: 31/05/2019, 02:58 I've cleared out my configs so there's no conflict there. Here's the error that I'm getting: Traceback (most recent call last): ``` File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\__init__.py", line 145, in execute return import_obj.load(context, **keywords) File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\import_obj.py", line 1241, in load dataname, File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\import_obj.py", line 689, in create_mesh faces_ma_index = tuple(material_mapping[context_material] for (_, _, _, context_material, _, _, _) in faces) File "C:\Users\steve.warner\Downloads\blender-2.80.0-git.8d95dcd87dbb-windows64\2.80\scripts\addons\io_scene_obj\import_obj.py", line 689, in <genexpr> faces_ma_index = tuple(material_mapping[context_material] for (_, _, _, context_material, _, _, _) in faces) ``` KeyError: None location: <unknown location>:-1
Author

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

Added subscribers: @demonrook, @mont29, @brecht

Added subscribers: @demonrook, @mont29, @brecht
Bastien Montagne was assigned by Brecht Van Lommel 2019-05-31 17:33:47 +02:00

Added subscriber: @DiveMeCarzy

Added subscriber: @DiveMeCarzy

Import OBJ is working for me in the latest MacOS build (31 May)

System Information
Operating system: Mac Pro (Mid 2010) macOs 10.13.3
Graphics card: Radeon RX 580

Import OBJ is working for me in the latest MacOS build (31 May) **System Information** Operating system: Mac Pro (Mid 2010) macOs 10.13.3 Graphics card: Radeon RX 580

Hi again.
Here is the Blend file from the imported Obj, and a copy of the obj file. There may be something in the meta data that is useful?

VanShip from imported Obj file.blend

Vanship.obj

Hi again. Here is the Blend file from the imported Obj, and a copy of the obj file. There may be something in the meta data that is useful? [VanShip from imported Obj file.blend](https://archive.blender.org/developer/F7081499/VanShip_from_imported_Obj_file.blend) [Vanship.obj](https://archive.blender.org/developer/F7081500/Vanship.obj)

Added subscriber: @dan2

Added subscriber: @dan2

fails to import in macOS mojave 10.14.5 in 9bae9b634e

however, if I switch to keep vert order (shouldn't that be the default by the way?) it's importing just fine.

fails to import in macOS mojave 10.14.5 in 9bae9b634ec6 however, if I switch to keep vert order (shouldn't that be the default by the way?) it's importing just fine.

Added subscriber: @Regnas

Added subscriber: @Regnas

Added subscriber: @F4bon3

Added subscriber: @F4bon3

Added subscriber: @Alex_Rom

Added subscriber: @Alex_Rom

Added subscriber: @FlorianMosleh

Added subscriber: @FlorianMosleh

noticed this as well. it was working on the build from may 25. broken as of may 28th as far as i can tell. switching from 'split' to 'keep vert order' appears to be a workaround.

Tested on MacOS 10.14.5

and Windows 10 1809

noticed this as well. it was working on the build from may 25. broken as of may 28th as far as i can tell. switching from 'split' to 'keep vert order' appears to be a workaround. Tested on MacOS 10.14.5 and Windows 10 1809
Member

Added subscriber: @Mike_Punisher

Added subscriber: @Mike_Punisher
Member

Added subscriber: @JesusMarioCamarilloGarcia

Added subscriber: @JesusMarioCamarilloGarcia

This issue was referenced by blender/blender-addons@d79fa2c042

This issue was referenced by blender/blender-addons@d79fa2c042e34e1639030b06ff762673a0a68803

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
9 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#65326
No description provided.