This error is due to several of the stock parameter files having zero in their fourth-tier Length parameter. It can be remedied by simply providing a non-zero length parameter.
How should we want to handle this? I suggest a sanity-check function that executes before anything else when the generate button is pressed. Said function would read the parameters, check for conflicts, and throw a helpful error if it finds one. This would have the added benefit of centralizing most of the addon's "you're doing it wrong" messages, and would be easily expandable as we/others find naughty combinations. Thoughts?
Traceback (most recent call last):
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\gui.py", line 196, in _construct
scene.generate_leaves_input)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 1242, in construct
t.make()
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 180, in make
self.create_branches()
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 257, in create_branches
self.make_stem(turtle, Stem(0, trunk))
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 589, in make_stem
self.make_branches(turtle, stem, seg_ind, branches_on_seg, prev_rotation_angle)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 913, in make_branches
self.make_stem(dir_tur, Stem(d_plus_1, new_spline, stem, b_offset, rad), pos_corr_turtle=pos_tur)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 589, in make_stem
self.make_branches(turtle, stem, seg_ind, branches_on_seg, prev_rotation_angle)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 913, in make_branches
self.make_stem(dir_tur, Stem(d_plus_1, new_spline, stem, b_offset, rad), pos_corr_turtle=pos_tur)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 589, in make_stem
self.make_branches(turtle, stem, seg_ind, branches_on_seg, prev_rotation_angle)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 913, in make_branches
self.make_stem(dir_tur, Stem(d_plus_1, new_spline, stem, b_offset, rad), pos_corr_turtle=pos_tur)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 430, in make_stem
leaf_count = self.calc_leaf_count(stem)
File "C:\Users\Luke\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\ch_trees\parametric\gen.py", line 1035, in calc_leaf_count
result = leaves * (stem.length / (stem.parent.length_child_max * stem.parent.length))
ZeroDivisionError: float division by zero