Blender (silently) fails when importing Sketchup Collada File #55519

Open
opened 2018-06-18 07:48:20 +02:00 by Matthew Moore · 17 comments

System Information
Mid-2014 MacBook Pro with Intel Iris Pro 1536 MB Graphics

Blender Version
Broken: Version 2.79 (2.79 2017-09-11, Blender Foundation)

Short description of error
Tried to import a .dae file downloaded from Sketchup, and nothing happened after selecting the file from the Import dialog.

Exact steps for others to reproduce the error

On the command line, I see the following:

Read prefs: /Users/myuser/Library/Application Support/Blender/2.79/config/userpref.blend
Color management: display "sRGB" used by scene not found, setting to default ("sRGB / BT.709").
Color management: scene view "Default" not found, setting default "sRGB EOTF".
Color management: sequencer colorspace "sRGB" not found, will use default instead.
found bundled python: /Applications/blender.app/Contents/Resources/2.79/python
drop file /Users/myuser/Downloads/model.dae
Writing node id='ID4', name='skpC9F6'
Writing node id='ID5', name='instance_1'
Cannot find object for node referenced by <instance_node name="">.
Writing node id='ID6', name='_5299-RA'
Writing node id='', name='SketchUp'
Writing node id='', name='skp_camera_Last_Saved_SketchUp_View'
Writing node id='ID3', name='instance_0'
create <instance_node> under node id=ID3 from node id=ID4
got 25 library nodes to free

The line Cannot find object for node referenced by <instance_node name="">. being output does make me wonder if something is going wrong. However, I can see the file OK in a https:*threejs.org/ based Collada viewer (and the associated https:*threejs.org/examples/js/loaders/ColladaLoader.js )

threejs-colladaloader.png

Has anyone else seen this problem in 2.79b?

**System Information** Mid-2014 MacBook Pro with Intel Iris Pro 1536 MB Graphics **Blender Version** Broken: Version 2.79 (2.79 2017-09-11, Blender Foundation) **Short description of error** Tried to import a .dae file downloaded from Sketchup, and nothing happened after selecting the file from the Import dialog. **Exact steps for others to reproduce the error** - Went to https://3dwarehouse.sketchup.com/model/f680c75e-0308-4976-ad1a-59c61eb84faf/K-5299-RA-Highline-Classic-10-gpf-Comfort-Height-two-piece-elongated-toilet-with-Class-Five-flush-technology-and-right-hand-trip-lever - Downloaded the Collada File from the page; also uploaded here: [model.dae](https://archive.blender.org/developer/F3731237/model.dae) - Opened blender from the command line - Selected menu: File > Import > Collada (Default) (.dae) - Selected the model.dae in the dialog. The dialog closed, but see an empty scene still. I expected to see an error or something if it couldn't import it. On the command line, I see the following: ``` Read prefs: /Users/myuser/Library/Application Support/Blender/2.79/config/userpref.blend Color management: display "sRGB" used by scene not found, setting to default ("sRGB / BT.709"). Color management: scene view "Default" not found, setting default "sRGB EOTF". Color management: sequencer colorspace "sRGB" not found, will use default instead. found bundled python: /Applications/blender.app/Contents/Resources/2.79/python drop file /Users/myuser/Downloads/model.dae Writing node id='ID4', name='skpC9F6' Writing node id='ID5', name='instance_1' Cannot find object for node referenced by <instance_node name="">. Writing node id='ID6', name='_5299-RA' Writing node id='', name='SketchUp' Writing node id='', name='skp_camera_Last_Saved_SketchUp_View' Writing node id='ID3', name='instance_0' create <instance_node> under node id=ID3 from node id=ID4 got 25 library nodes to free ``` The line `Cannot find object for node referenced by <instance_node name="">.` being output does make me wonder if something is going wrong. However, I can see the file OK in a https:*threejs.org/ based Collada viewer (and the associated https:*threejs.org/examples/js/loaders/ColladaLoader.js ) ![threejs-colladaloader.png](https://archive.blender.org/developer/F3731326/threejs-colladaloader.png) Has anyone else seen this problem in 2.79b?
Author

Added subscriber: @MatthewMoore

Added subscriber: @MatthewMoore

#96383 was marked as duplicate of this issue

#96383 was marked as duplicate of this issue
Member

Added subscribers: @GaiaClary, @lichtwerk

Added subscribers: @GaiaClary, @lichtwerk
Gaia Clary was assigned by Philipp Oeser 2018-06-18 13:01:43 +02:00
Member

Hm, looking at this part of the code , I can observe:

  • importer wont find node id="ID6" (seems it hasnt been added to the object_map because it is defined after the node that is actually trying to instance it...)
  • to get around this I changed the .dae and put the ID6 before the node that is actually trying to instance it [and tada: it partially works...] see modified model.dae
  • but then again, it doesnt pick up all 24 instance_geometry defined in ID6 (name="_5299-RA"), but only takes one (but apparently tried 24 times -- I'm ending up with something called "_5299-RA**.024**")

Anyways, before I sink more time into this, I would kindly ask @GaiaClary about the known status here [regarding instance_node]...

Hm, looking at [this part of the code ](https://developer.blender.org/diffusion/B/browse/master/source/blender/collada/DocumentImporter.cpp;579631819f0136ab0fbb0f6c7c21265b468940dc$607), I can observe: - importer wont find `node id="ID6"` (seems it hasnt been added to the `object_map` because it is defined **after** the node that is actually trying to instance it...) - to get around this I changed the .dae and put the ID6 **before** the node that is actually trying to instance it [and tada: it partially works...] see modified [model.dae](https://archive.blender.org/developer/F3733091/model.dae) - but then again, it doesnt pick up all 24 `instance_geometry` defined in ID6 (name="_5299-RA"), but only takes one (but apparently tried 24 times -- I'm ending up with something called "_5299-RA**.024**") Anyways, before I sink more time into this, I would kindly ask @GaiaClary about the known status here [regarding `instance_node`]...
Member

i believe that the order of appearance of the data should not be important for the importer. In fact the importer processes the imported file twice so that it first collects the data and then assigns the data to blender objects. Please can you take a look at the collada branch? maybe things are different/better/resolved there...

To calrify: I originally planned to move the collada branch into master in april, but then i got distracted to something else so that i am delayed a bit :( But it may be good to step into the collada branch for any future work as it is really changed a lot and needs some adjustments for recent changes anyways...

i believe that the order of appearance of the data should not be important for the importer. In fact the importer processes the imported file twice so that it first collects the data and then assigns the data to blender objects. Please can you take a look at the collada branch? maybe things are different/better/resolved there... To calrify: I originally planned to move the collada branch into master in april, but then i got distracted to something else so that i am delayed a bit :( But it may be good to step into the collada branch for any future work as it is really changed a lot and needs some adjustments for recent changes anyways...

Added subscriber: @kopmarn

Added subscriber: @kopmarn

I am also facing same issue. Unable to import. I am trying to make exactly this type of toilets https://bestflushingtoilet.org/american-standard-toilets/champion-4-reviews/. But, I am failing to do it.

I am also facing same issue. Unable to import. I am trying to make exactly this type of toilets https://bestflushingtoilet.org/american-standard-toilets/champion-4-reviews/. But, I am failing to do it.
Gaia Clary was unassigned by Dalai Felinto 2019-12-23 16:36:09 +01:00

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Gaia Clary was assigned by Sybren A. Stüvel 2020-02-04 16:12:04 +01:00

@GaiaClary I can still reproduce the problem on current Blender 2.82 alpha @ 5dc1183580. Would you consider this a bug or a known limitation?

@GaiaClary I can still reproduce the problem on current Blender 2.82 alpha @ 5dc1183580e932870064b44246e8fb750a8d806e. Would you consider this a bug or a known limitation?
Member

I look at this.

I look at this.

Added subscriber: @seanr

Added subscriber: @seanr

Same issue in 2.93 alpha. Is there at least a passable workaround for this? The file I've got is 24MB, so not sure manually editing it is practical. ;)

Same issue in 2.93 alpha. Is there at least a passable workaround for this? The file I've got is 24MB, so not sure manually editing it is practical. ;)
ainsleyash commented 2021-02-23 19:55:32 +01:00 (Migrated from localhost:3001)

Added subscriber: @ainsleyash

Added subscriber: @ainsleyash
ainsleyash commented 2021-02-23 19:55:32 +01:00 (Migrated from localhost:3001)

This comment was removed by @ainsleyash

*This comment was removed by @ainsleyash*
ainsleyash commented 2021-03-15 17:50:26 +01:00 (Migrated from localhost:3001)

This comment was removed by @ainsleyash

*This comment was removed by @ainsleyash*

Added subscriber: @dfelinto

Added subscriber: @dfelinto
Member

Added subscriber: @tcurdt

Added subscriber: @tcurdt
Philipp Oeser removed the
Interest
Pipeline, Assets & IO
label 2023-02-10 08:54:23 +01:00
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#55519
No description provided.