Page MenuHome

Cannot create a new custom node tree
Closed, ResolvedPublic

Description

System Information
Windows 7, Nvidia Quadro 600

Blender Version
Broken: 2.73 hash: 3f57714; 2015-01-30
Worked: 2.73

Short description of error
julperado informed me on BlenderArtists about this bug here: http://blenderartists.org/forum/showthread.php?350296-Addon-Animation-Nodes&p=2809155&viewfull=1#post2809155
It seems that this is a more general problem with custom node trees.

Exact steps for others to reproduce the error

  1. Copy this code in blenders text editor:
import bpy

class NodeTree(bpy.types.NodeTree):
	bl_idname = "test"
	bl_icon = "BBOX"
	bl_label = "test"

bpy.utils.register_module(__name__)
  1. Run the script
  2. Switch to a node editor and try to create a node tree of the new type
  3. crash

Creating the new tree using python works without problems. There it isn't relevant if you use the low level way over bpy.data.node_groups.new or the higher level bpy.ops.node.new_node_tree. The problem only happens when you click on the New button in the node editor.
And if you already created a tree with python it crashes when you try to open it. So maybe the problem is more that Blender cannot display custom node trees instead of creating them, but I'm not sure.

Event Timeline

This crash is caused by rB492b9ab5e3d8b4e1c425bfae5494c998853107ea.

Quick backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6f38889 in strcmp () from /usr/lib/x86_64-linux-gnu/libasan.so.1
(gdb) bt
#0  0x00007ffff6f38889 in strcmp () from /usr/lib/x86_64-linux-gnu/libasan.so.1
#1  0x000000000145df05 in drawnodespace (C=0x60b00000ae38, ar=0x61400043a248) at /home/kevin/src/blender-git/blender/source/blender/editors/space_node/node_draw.c:1310
#2  0x00000000014889f8 in node_main_area_draw (C=0x60b00000ae38, ar=0x61400043a248) at /home/kevin/src/blender-git/blender/source/blender/editors/space_node/space_node.c:662
#3  0x0000000001fa1a64 in ED_region_do_draw (C=0x60b00000ae38, ar=0x61400043a248) at /home/kevin/src/blender-git/blender/source/blender/editors/screen/area.c:477
#4  0x00000000012eb5fd in wm_method_draw_triple (C=0x60b00000ae38, win=0x61200004a8c8) at /home/kevin/src/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:625
#5  0x00000000012ec9d5 in wm_draw_update (C=0x60b00000ae38) at /home/kevin/src/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:852
#6  0x00000000012df1e9 in WM_main (C=0x60b00000ae38) at /home/kevin/src/blender-git/blender/source/blender/windowmanager/intern/wm.c:495
#7  0x00000000012dd114 in main (argc=1, argv=0x7fffffffe0f8) at /home/kevin/src/blender-git/blender/source/creator/creator.c:1741
Kévin Dietrich (kevindietrich) lowered the priority of this task from 90 to 50.Jan 31 2015, 11:38 PM