There's some old logic in there that adapts the internal hdf5 chunk size relative to the size of the bottom segment (which is proportional to number of children). And now that the number of children is uncapped (#304), the chunk scaling can get to 0 for huge values (~5000?) resulting in halAppendCactusSubtree crashing with
#000: ../../../src/H5Pdcpl.c line 2004 in H5Pset_chunk(): all chunk dimensions must be positive
major: Invalid arguments to routine
minor: Out of range
There's some old logic in there that adapts the internal hdf5 chunk size relative to the size of the bottom segment (which is proportional to number of children). And now that the number of children is uncapped (#304), the chunk scaling can get to 0 for huge values (~5000?) resulting in
halAppendCactusSubtree
crashing withThe fix here is to simply clamp it at 1.