How to reproduce: 1. Create a new blend file without a compositing node tree 3. Go to Scripting workspace (node editors should not be visible) 2. In python console type `bpy.ops.node.new_compositing_node_group` 3. Observe crash The reason is that `node_composit_poll_rlayers()` fails because the Render Layers node cannot be added to a non local compositing node tree. This restriction was removed so the poll should succeed. Pull Request: https://projects.blender.org/blender/blender/pulls/140222