Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed WASM segfault #474

Merged
merged 1 commit into from
Jun 30, 2023
Merged

fixed WASM segfault #474

merged 1 commit into from
Jun 30, 2023

Conversation

elalish
Copy link
Owner

@elalish elalish commented Jun 30, 2023

Fixes #432

Turns out this problem had nothing to do with Merge, but rather with constructing a manifold with an odd number of triangles. Of course this can't be a valid 2-manifold ever, but we create the halfedges before we check manifoldness, and when numTri was odd, a round-down was making our array too short, causing a segfault that for some reason only WASM noticed.

I also updated out .gitignore.

@elalish elalish self-assigned this Jun 30, 2023
@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (37db0d0) 89.94% compared to head (f73554a) 89.94%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #474   +/-   ##
=======================================
  Coverage   89.94%   89.94%           
=======================================
  Files          35       35           
  Lines        4286     4286           
=======================================
  Hits         3855     3855           
  Misses        431      431           
Impacted Files Coverage Δ
src/manifold/src/impl.cpp 95.36% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@elalish elalish merged commit dd3445d into master Jun 30, 2023
21 checks passed
@elalish elalish deleted the fixOddTriangles branch June 30, 2023 15:55
jmicahc pushed a commit to SovereignShop/manifold that referenced this pull request Jul 4, 2023
@elalish elalish mentioned this pull request Nov 3, 2023
cartesian-theatrics pushed a commit to SovereignShop/manifold that referenced this pull request Mar 11, 2024
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.

Merge OOM
1 participant