Page MenuHome

Material Preview issues with custom node tree
Closed, ArchivedPublic


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 (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]')



Event Timeline

Sebastian Parborg (zeddb) triaged this task as Needs Information from User priority.Feb 6 2019, 3:05 PM

I'm guessing this is still an issue with the latest blender beta?

As of the build I made yesterday, yes. I managed to get the preview to respond immediately and consistently but I still see that ‘ID user count error’ message.

If you can create a minimal example (without having to install the addon) where this happens. Then it would be a lot easier to narrow down the issue.
You will have to prove that the issue is indeed on our side.

Jacques Lucke (JacquesLucke) claimed this task.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.