lab-cosmo / librascal

A scalable and versatile library to generate representations for atomic-scale learning
https://lab-cosmo.github.io/librascal/
GNU Lesser General Public License v2.1
80 stars 17 forks source link

Dead Kernel when passing an empty array to get_subset function #405

Open hurricane642 opened 2 years ago

hurricane642 commented 2 years ago

Hello everyone! Attempting to use get_subset function for rascal.neighbourlist.structure_manager.AtomsList with argument equal to [] causes Dead Kernel. Need to check the input data for this function

max-veit commented 2 years ago

The segmentation fault probably comes from #400 (or something closely related) after get_subset(), which does no bounds checking, passes through an empty selection.