Vrmat Materials are not loaded in the scene

Hello,

When I made the steps in the attached video in a new SketchUp file, the Vrmat Materials are not loaded in the scene even if SketchUp is restarted.

Can you try to switch to In Model Tab and see if the materials are properly added there?
Also can you collect a list of materials that are not displayed properly.
I noticed that Leather_A01_Brown_25cm is imported with wrong icon in In-Model tab but it’s there.

I have recorded another video for the issue, sometimes the vrmat materials will be deleted when I load them in the Asset editor, note that I was able to reproduce this issue on another machine.

When I open the Ruby Console, it gives this error :

Error: #<TypeError: reference to deleted Entity>
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `entityID’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `onMaterialAdd’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `abort_operation’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `rescue in initialize’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:63:in `initialize’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `new’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `to_sketchup’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:62:in `handle_plugin_change’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:10:in `block (2 levels) in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `each’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `block in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `call’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `block in handle’
SketchUp:1:in `call’
Error: #<TypeError: reference to deleted Entity>
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `entityID’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `onMaterialRemove’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `abort_operation’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:53:in `rescue in initialize’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:63:in `initialize’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `new’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `to_sketchup’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:62:in `handle_plugin_change’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:10:in `block (2 levels) in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `each’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `block in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `call’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `block in handle’
SketchUp:1:in `call’
materials_observer(24):error: “No cached info for #<Deleted Entity:0x11973090>”
[“disable_ui”, false]
helpers(54):error: Cannot open file C:\Program Files\Chaos Group\V-Ray\V-Ray for SketchUp\extension\materials\Wood & Laminate\maps\Wood_Planks_C_Diff0.jpg
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:112:in `set_sketchup_texture’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:100:in `block in apply_texture’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:118:in `preserving_size’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:96:in `apply_texture’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:12:in `apply’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:37:in `block in to_sketchup’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:50:in `call’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:50:in `initialize’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `new’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `to_sketchup’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:62:in `handle_plugin_change’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:10:in `block (2 levels) in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `each’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `block in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `call’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `block in handle’
SketchUp:1:in `call’
material_sync(64):error: Cannot open file C:\Program Files\Chaos Group\V-Ray\V-Ray for SketchUp\extension\materials\Wood & Laminate\maps\Wood_Planks_C_Diff0.jpg
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:112:in `set_sketchup_texture’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:100:in `block in apply_texture’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:118:in `preserving_size’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:96:in `apply_texture’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/vray_to_sketchup_material_translator:12:in `apply’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:37:in `block in to_sketchup’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:50:in `call’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/helpers:50:in `initialize’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `new’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/special_objects/material_sync:24:in `to_sketchup’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:62:in `handle_plugin_change’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:10:in `block (2 levels) in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `each’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/callbacks/callbacks:9:in `block in module:Callbacks
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `call’
C:/Program Files/Chaos Group/V-Ray/V-Ray for SketchUp/extension/ruby/helpers/throttle:31:in `block in handle’
SketchUp:1:in `call’

I tried to run SketchUp as administrator to see if that could fix the issue, a when I loaded some water materials from the material Library in the Asset Editor, the Asset editor is corrupted, I have attached this error in a txt file:


Material Asset Editor Error.txt (141 KB)

Thank you for posting all this.
Will investigate the first issue.
The second one is already known, the dev team is onto it!

Kind regards,
Peter

Thanks Peter!

I’m experiencing these issues as well.

We are having a hard time reproducing this on our side. I have attached a zip with a materials_observer.rbc file. Please place the rbc file in “C:\Program Files\Chaos Group\V-Ray\V-Ray for SketchUp\extension\ruby\observers” and let us know if this fixes the issue. This should stop the errors from being thrown. We shall see if it also avoids the actual replacing of materials.
materials_observer.zip (1.77 KB)

Hi,

I have tried that, but it didn’t fix the issue, V-ray materials which have SketchUp images preview are not loaded in the scene.
Currently I am using V-ray on machine that has Windows 10, this issue seem occur only on windows 7.

Hi,

I have the same issue.
I work on W7 pro (SP1) + SketchUp pro 2017 + VRay 3.60.02
Replace the “materials observer” have no effect.

For exemple:
Work “Leather_C01_Brown_25cm” or “Metal_Painted_Red_5cm”
Don’t work “Veneer_D01_120cm” or “Paper_F_6cm”

Don’t work when we have an image in diffuse slot?

Same here: https://www.youtube.com/watch?v=Kt-DKhupy\_E&feature=youtu.be

Hi,

Try to use the fix in this thread:

This solution works, thank you!

The two issue may indeed be one and the same, yes. The fix that was posted in the other thread has already been merged. Can you confirm this issue is no longer reproducible in the nightlies, Mousa? If so, we can consider this resolved. Thanks

@noel.warren , I have tested it and it works fine, Thanks!