8000 Fixed float overflow by elalish · Pull Request #714 · elalish/manifold · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed float overflow #714

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 s 8000 end you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 20, 2024
Merged

Fixed float overflow #714

merged 4 commits into from
Jan 20, 2024

Conversation

elalish
Copy link
Owner
@elalish elalish commented Jan 20, 2024

Fixes #712

It turns out the problem is that 0 * (FLOAT_MAX + FLOAT_MAX) = NaN, but only on certain compilers/architectures. Fixed with an extra check, and did a little cleanup since we aren't using CUDA anymore.

starseeker and others added 4 commits January 20, 2024 14:21
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.)
Copy link
codecov bot commented Jan 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9018b2a) 91.67% compared to head (c9f6bdf) 91.67%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #714   +/-   ##
=======================================
  Coverage   91.67%   91.67%           
=======================================
  Files          37       37           
  Lines        4730     4731    +1     
=======================================
+ Hits         4336     4337    +1     
  Misses        394      394           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elalish elalish merged commit dbb0ca7 into master Jan 20, 2024
@elalish elalish deleted the overflow branch January 20, 2024 02:16
cartesian-theatrics pushed a commit to cartesian-theatrics/manifold that referenced this pull request Mar 11, 2024
* Set up test for subtraction of a very large cuboid

Test case for elalish#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.)

* fixed 0 * inf

* switch to ASSERT

* tighten test

---------

Co-authored-by: Clifford Yapp <238416+starseeker@users.noreply.github.com>
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.

Post boolean op Status() crash
2 participants
0