Blender (silently) fails when importing Sketchup Collada File
Open, ConfirmedPublic

Description

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 )

Has anyone else seen this problem in 2.79b?

Details

Type
Bug
Philipp Oeser (lichtwerk) triaged this task as Confirmed priority.Jun 18 2018, 1:01 PM

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
  • 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 @Gaia Clary (gaiaclary) about the known status here [regarding instance_node]...

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 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.