Skip to content

Fix Analyze crash on a project with no particles - #2719

Merged
akenmorris merged 1 commit into
masterfrom
amorris/2718-analyze-no-particles
Nov 21, 2026
Merged

akenmorris merged 1 commit into
masterfrom
amorris/2718-analyze-no-particles

Conversation

@akenmorris

Copy link
Copy Markdown
Contributor

Fixes #2718. Analyze on a project with shapes but no particles (e.g. before optimizing) ran Eigen's BDCSVD on an empty matrix and segfaulted. It now warns "No particles" and skips the PCA and mesh warper setup, and compute_modes returns early on empty input.

compute_stats only checked for an empty shape list, so shapes without
particles reached BDCSVD on an empty matrix. Return early in compute_stats and
compute_modes, and skip mesh warper setup when there are no stats.
@akenmorris
akenmorris merged commit bb88f75 into master Nov 21, 2026
5 checks passed
@akenmorris
akenmorris deleted the amorris/2718-analyze-no-particles branch November 21, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Analyze crashes on a project with no particles

1 participant