Page MenuHome

Material Preview issues with custom node tree
Open, Needs TriagePublic

Description

Having some strange behavior with the material preview and a custom node tree ( I swear this is a real bug).

Assigning and connecting appleseed shader nodes works just fine in the editor. Doing so also triggers a preview render, as can be seen with debug messages. The material being previewed is also being correctly selected and sent to our exporter (once again, determined through debug messages). However the preview window doesn't update, at first. After randomly adjusting a number of different material parameters, the preview will suddenly start updating properly. Every time it does though I see this error message:

ID user count error: NTMaterial_tree (from '[Main]')

The name of the node tree is "Material_tree" if that is relevant.

The material parameters that have to be adjusted for the preview to start working are different every time. The adjustments can be real changes or just toggling the parameter between two points. It's really random.

Not sure what you guys would need to aid in this one. I can provide our exporter, however it is bundled with appleseed itself so it's about 20MB large (and Windows only).

Error messages (the <bpy_struct, Material("Material")> line is a debug message I added to check what material was going to appleseed):

Read prefs: C:\Users\jdent\AppData\Roaming\Blender Foundation\Blender\2.80\config\userpref.blend
found bundled python: d:\blender-git\blender28\bin\Release\2.80\python

  • Serving Flask app "Blender Server" (lazy loading)
  • Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead.
  • Debug mode: on
  • Running on http://127.0.0.1:5681/ (Press CTRL+C to quit)

Sending: {'type': 'setup', 'blenderPort': 5681, 'ptvsdPort': 5524, 'blenderPath': 'd:\\blender-git\\blender28\\bin\\Release\\blender.exe', 'scriptsFolder': 'd:\\blender-git\\blender28\\bin\\Release\\2.80\\scripts', 'addonPathMappings': [{'src': 'd:\\blender-git\\blender28\\bin\\Release\\2.80\\scripts\\addons\\blenderseed', 'load': 'd:\\blender-git\\blender28\\bin\\Release\\2.80\\scripts\\addons\\blenderseed'}]}
Waiting for debug client.
Debug client attached.
[appleseed] Python path set to: D:\appleseed\appleseed_py37\sandbox\lib\v141\Release\python2.7
[appleseed] Path to appleseed.dll is set to: D:\appleseed\appleseed_py37\sandbox\bin\v141\Release
<bpy_struct, Material("Material")>
<bpy_struct, Material("Material")>
<bpy_struct, Material("Material")>
<bpy_struct, Material("Material")>
<bpy_struct, Material("Material")>
ID user count error: NTMaterial_tree (from '[Main]')
<bpy_struct, Material("Material")>
ID user count error: NTMaterial_tree (from '[Main]')
<bpy_struct, Material("Material")>
ID user count error: NTMaterial_tree (from '[Main]')

Details

Type
Bug