Blender Add-on - Add mesh fan blades

Blender add-on to create fan blades. Created mainly for practicing add-on creation.

Inspired by tutorial (not mine) : https://www.youtube.com/watch?v=rLcZhsNQR4Q

Download: https://github.com/jell-o-fishi/blender_add_fan_blades

Feedback appreciated

4 Likes

Hi Gabriel. :wave:
I have tested your script (fan blades 1.0.0) on Blender 3.4.1 and when I increase the Form Smooth value, it makes Blender crash with this kind of error in the Console:

Malloc returns null: len=1344143400 in subdiv_vert_origindex_map, total 4038654228
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FFAC3E319E9
Module  : VCRUNTIME140.dll
Thread  : 00001e10
Malloc returns null: len=2688286720 in subdiv_edge_origindex_map, total 1086880208
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FFAC3E319E9
Module  : VCRUNTIME140.dll
Thread  : 00002394

not enough information, and probably not a bug at the python addon level.

did you start with a clean blend file ?
do you remember if that is the only setting you changed ?
do you remember to what value ?

if reproducible might be useful to open an actual blender bug ?

Yes, I did.
Tested on a freshly installed portable installation of Blender 3.4.1 (without any other activated add-on than Cycles).

Yes, it’s the only one. Right after launching Blender:

  • I added a fan (Shift-A > Fan blades)
  • Then I tried to edit the Form Smooth value by “mouse dragging the number to the right” (not with the right arrow, as it is also possible)

From 4 to an higher value : I can’t tell what was the value I planned to change this setting to because I tried to increase the Form Smooth value by selecting the digit and moving the mouse cursor to the right. When the value approaches 6 (and up), you should notice Blender starting to freeze, then eventually crash.

If you click on the right arrow to increase the value, the error doesn’t appear (Blender just lags a bit).

Warning: property 'wait_for_input' not found in item 'OperatorProperties'
Warning: property 'wait_for_input' not found in item 'OperatorProperties'
Warning: property 'wait_for_input' not found in item 'OperatorProperties'
Malloc returns null: len=5376573440 in subdiv_loop_poly_index, total 2946461716
Malloc returns null: len=2688286720 in subdiv_edge_origindex_map, total 4290605116
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF8C2DC19E9
Module  : VCRUNTIME140.dll
Thread  : 00002c3c

ShareX_Hk8sZKvwaF

the values just control the subdivide modifier settings.
limited the settings in the add fan dialog and renamed them to be clear that this is subdivide.
you can always change the settings on the modifier later.

1 Like