3DS Importer Exception “Object.parent ID type does not support assignment to its self” #57632

Closed
opened 2018-11-05 09:46:46 +01:00 by Lawrence D'Oliveiro · 7 comments

The enclosed archive Kitchen-4ad3c0de.zip (downloaded from archive3d.net triggers several instances of the following exception in Blender’s 3DS importer:

Error: Traceback (most recent call last):

File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/__init__.py", line 104, in execute
  return import_3ds.load(self, context, **keywords)
File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/import_3ds.py", line 994, in load
  global_matrix=global_matrix,
File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/import_3ds.py", line 893, in load_3ds
  process_next_chunk(file, current_chunk, importedObjects, IMAGE_SEARCH)
File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/import_3ds.py", line 831, in process_next_chunk
  ob.parent = object_list[parent]

TypeError: bpy_struct: item.attr = val: Object.parent ID type does not support assignment to its self

location: /home/ldo/sources/blender/blender-build/bin/2.79/scripts/modules/bpy/ops.py:197

For your info, here Kitchen-4ad3c0de.jpg is a preview image for the model.

The enclosed archive [Kitchen-4ad3c0de.zip](https://archive.blender.org/developer/F5382894/Kitchen-4ad3c0de.zip) (downloaded from [archive3d.net ](https://archive3d.net/?a=download&id=4ad3c0de) triggers several instances of the following exception in Blender’s 3DS importer: Error: Traceback (most recent call last): ``` File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/__init__.py", line 104, in execute return import_3ds.load(self, context, **keywords) File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/import_3ds.py", line 994, in load global_matrix=global_matrix, File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/import_3ds.py", line 893, in load_3ds process_next_chunk(file, current_chunk, importedObjects, IMAGE_SEARCH) File "/home/ldo/sources/blender/blender-build/bin/2.79/scripts/addons/io_scene_3ds/import_3ds.py", line 831, in process_next_chunk ob.parent = object_list[parent] ``` TypeError: bpy_struct: item.attr = val: Object.parent ID type does not support assignment to its self location: /home/ldo/sources/blender/blender-build/bin/2.79/scripts/modules/bpy/ops.py:197 For your info, here ![Kitchen-4ad3c0de.jpg](https://archive.blender.org/developer/F5382950/Kitchen-4ad3c0de.jpg) is a preview image for the model.

Added subscriber: @ldo

Added subscriber: @ldo

I have tried the following patch ldo-3ds-importer-parent-hack.patch which prints the error message and continues instead of aborting. The example model seems to come in intact.

I have tried the following patch [ldo-3ds-importer-parent-hack.patch](https://archive.blender.org/developer/F5383015/ldo-3ds-importer-parent-hack.patch) which prints the error message and continues instead of aborting. The example model seems to come in intact.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2018-11-05 09:53:39 +01:00
Member

Can confirm, will have a look...

Can confirm, will have a look...

This issue was referenced by blender/blender-addons@92ebf635ee

This issue was referenced by blender/blender-addons@92ebf635ee2a9ddbc7fbf4a0c06b9732ee555b27
Member

Changed status from 'Open' to: 'Resolved'

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

Sorry this has been lying around for a while, commited blender/blender-addons@92ebf635ee now

Sorry this has been lying around for a while, commited blender/blender-addons@92ebf635ee now
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
3 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#57632
No description provided.