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

Set up test for subtraction of a very large cuboid #713

Closed
wants to merge 1 commit into from
Closed

Set up test for subtraction of a very large cuboid #713

wants to merge 1 commit into from

Conversation

starseeker
Copy link
Contributor

Test case for #712 - these glb inputs were generated from manifolds that succeeded in producing a Boolean output, but (on one platform but not another) the Status() call on the output boolean manifold crashed.

(A test for calling Status() on the output captured on the crashing platform (in case there was something specifically bad about that particular output on that platform) was tried, but the result was simply a successful Status() call even with that specific input - hence, that additional test is not included in this commit.)

Right now we're using the same GetMeshGL() call as the other tests, but perhaps it would be preferable to use Status() instead since that was the observed failure? I wasn't sure if the former was preferred as a more rigorous test of the Manifold structure.

Test case for #712 - these glb
inputs were generated from manifolds that succeeded in producing a
Boolean output, but (on one platform but not another) the Status() call
on the output boolean manifold crashed.

(A test for calling Status() on the output captured on the crashing
platform (in case there was something specifically bad about that
particular output on that platform) was tried, but the result was simply
a successful Status() call even with that specific input - hence, that
additional test is not included in this commit.)
@elalish
Copy link
Owner

elalish commented Jan 19, 2024

Looks like we caught the problem here, thanks! I'll take a look.

@elalish
Copy link
Owner

elalish commented Jan 19, 2024

I have a local repro of this problem - for once it's not the triangulator! @pca006132 Might be good to look at this case to get an idea of how to construct fuzzer tests. Speaking of, is there a way to use our fuzzer to minimize this test case?

@pca006132
Copy link
Collaborator

No, this is not something fuzzer can do. We can probably write something that simplifies the triangular mesh though.

@elalish
Copy link
Owner

elalish commented Jan 20, 2024

Closing in favor of #714. Thanks for a good edge case test! For future reference, please make your PRs on a new branch - we can't merge if you're using master already.

@elalish elalish closed this Jan 20, 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.

3 participants