2.82 Invoking Script Subprogram in a Group Subprogram Crashes Blender #77317

Closed
opened 2020-06-03 20:59:24 +02:00 by Samsen Rohm · 2 comments

#77317, blender/blender#77323, blender/blender#77327 are the same issue
System Information (See attached)
Operating system: Windows 10
Graphics card:

Blender Version
Broken: system-info.txt
version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: 375c7dc4caf4, type: Release
build date: 2020-03-12, 15:41:08
platform: Windows
Worked: (optional)

Short description of error

Based on the default startup or an attached .blend file (as simple as possible).

Because the Object Instancer Node cannot be executed within a Animation Nodes SubProgram I created two Python scripts that:

  1. Creates a plane from a mesh and add adds modifiers
    ...
    fltWallsInnerDiameter = 1.2
    fltResolution = 50.0

bpy.ops.mesh.primitive_plane_add(size=fltWallsInnerDiameter, \

  enter_editmode=False, location=(0, 0, 0))

bpy.ops.object.editmode_toggle()
bpy.ops.mesh.subdivide(number_cuts=fltResolution)
bpy.ops.object.editmode_toggle()

objWater = bpy.context.active_object
objWater.name = "Water"
...

  1. Create a cylinder from a mesh and adds modifiers
    ...

When I run either script manually, the objects are created just fine.

Whenever I try to invoke the python (script) subprogram within a Group SubProgram Blender crashes. And if I am able to save the .blend file, Blender crashes when I try to reload it.

The objects need to be created 'on the fly' based on dimensions that are user-provided. It is not clear why Blender will not run a python script that creates objects within a subprogram.

Exact steps for others to reproduce the error

To reproduce the error, in the attached file insert the pytWaterCreateRun subprogram into the Animation node, and run the animation. Blender just totally goes away.

.CymaNode21c.blend

#77317, blender/blender#77323, blender/blender#77327 are the same issue **System Information** (See attached) Operating system: Windows 10 Graphics card: **Blender Version** Broken: [system-info.txt](https://archive.blender.org/developer/F8574797/system-info.txt) version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: 375c7dc4caf4, type: Release build date: 2020-03-12, 15:41:08 platform: Windows Worked: (optional) **Short description of error** Based on the default startup or an attached .blend file (as simple as possible). Because the Object Instancer Node cannot be executed within a Animation Nodes SubProgram I created two Python scripts that: 1. Creates a plane from a mesh and add adds modifiers ... fltWallsInnerDiameter = 1.2 fltResolution = 50.0 bpy.ops.mesh.primitive_plane_add(size=fltWallsInnerDiameter, \ ``` enter_editmode=False, location=(0, 0, 0)) ``` bpy.ops.object.editmode_toggle() bpy.ops.mesh.subdivide(number_cuts=fltResolution) bpy.ops.object.editmode_toggle() objWater = bpy.context.active_object objWater.name = "Water" ... 2. Create a cylinder from a mesh and adds modifiers ... When I run either script manually, the objects are created just fine. Whenever I try to invoke the python (script) subprogram within a Group SubProgram Blender crashes. And if I am able to save the .blend file, Blender crashes when I try to reload it. The objects need to be created 'on the fly' based on dimensions that are user-provided. It is not clear why Blender will not run a python script that creates objects within a subprogram. **Exact steps for others to reproduce the error** To reproduce the error, in the attached file insert the pytWaterCreateRun subprogram into the Animation node, and run the animation. Blender just totally goes away. .[CymaNode21c.blend](https://archive.blender.org/developer/F8574771/CymaNode21c.blend)
Author

Added subscriber: @Samsen

Added subscriber: @Samsen
Jacques Lucke was assigned by Samsen Rohm 2020-06-04 06:02:29 +02:00
Member

Closed as duplicate of blender/blender#77327

Closed as duplicate of blender/blender#77327
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#77317
No description provided.