Regression: Wavefront OBJ Import Fails With Current Builds #52054

Closed
opened 2017-07-14 12:22:03 +02:00 by Steffen Dünner · 5 comments

System Information
Win10 x64, nVidia GTX 780 3GB

Blender Version
Broken: Current Buildbot builds, own builds
Worked: Official 2.78c

Short description of error
Importing simple OBJ files (e.g. coming from Maya) fails. This error message appears:

Traceback (most recent call last):
  File "H:\blender-git\build\bin\Release\2.78\scripts\addons\io_scene_obj\__init__.py", line 148, in execute
    return import_obj.load(context, **keywords)
  File "H:\blender-git\build\bin\Release\2.78\scripts\addons\io_scene_obj\import_obj.py", line 1258, in load
    unique_material_images, use_image_search, use_cycles, float_func)
  File "H:\blender-git\build\bin\Release\2.78\scripts\addons\io_scene_obj\import_obj.py", line 363, in create_materials
    context_mat_wrap = cycles_material_wrap_map[context_material]
KeyError: None

location: <unknown location>:-1

The same OBJ files open fine in official 2.78c
The OBJ also opens fine in latest builds if I delete the corresponding MTL file

Exact steps for others to reproduce the error

  • Switch to Cycles
  • Try to load attached OBJ file with a current build
  • Fail

Hand.obj

Hand.mtl

**System Information** Win10 x64, nVidia GTX 780 3GB **Blender Version** Broken: Current Buildbot builds, own builds Worked: Official 2.78c **Short description of error** Importing simple OBJ files (e.g. coming from Maya) fails. This error message appears: ``` Traceback (most recent call last): File "H:\blender-git\build\bin\Release\2.78\scripts\addons\io_scene_obj\__init__.py", line 148, in execute return import_obj.load(context, **keywords) File "H:\blender-git\build\bin\Release\2.78\scripts\addons\io_scene_obj\import_obj.py", line 1258, in load unique_material_images, use_image_search, use_cycles, float_func) File "H:\blender-git\build\bin\Release\2.78\scripts\addons\io_scene_obj\import_obj.py", line 363, in create_materials context_mat_wrap = cycles_material_wrap_map[context_material] KeyError: None location: <unknown location>:-1 ``` The same OBJ files open fine in official 2.78c The OBJ also opens fine in latest builds if I delete the corresponding MTL file **Exact steps for others to reproduce the error** - Switch to Cycles - Try to load attached OBJ file with a current build - Fail [Hand.obj](https://archive.blender.org/developer/F666964/Hand.obj) [Hand.mtl](https://archive.blender.org/developer/F666963/Hand.mtl)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Bastien Montagne was assigned by Dalai Felinto 2017-07-14 13:01:27 +02:00

Added subscriber: @dfelinto

Added subscriber: @dfelinto

This issue was referenced by blender/blender-addons@6e8234a541

This issue was referenced by blender/blender-addons@6e8234a541d477e560dea1cd3ab07a73bd3b8813

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
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#52054
No description provided.