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

Crash when a polygon contains NaN #1410

Closed
kintel opened this issue Aug 10, 2015 · 1 comment
Closed

Crash when a polygon contains NaN #1410

kintel opened this issue Aug 10, 2015 · 1 comment
Milestone

Comments

@kintel
Copy link
Member

kintel commented Aug 10, 2015

This causes a crash on Linux, but not on Mac, and only in release mode:

polygon([[0,0], [10,0], [20, 0/0]]);

Relevant parts of stack trace:

#5  0x00007ffff3605af6 in __cxa_rethrow () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00000000005e5ec2 in ClipperLib::ClipperBase::AddPath (this=this@entry=0x7fffffffb330, pg=..., PolyTyp=PolyTyp@entry=ClipperLib::ptSubject, Closed=Closed@entry=true) at src/polyclipping/clipper.cpp:1086
#7  0x00000000005e5f7f in ClipperLib::ClipperBase::AddPaths (this=this@entry=0x7fffffffb330, ppg=..., PolyTyp=PolyTyp@entry=ClipperLib::ptSubject, Closed=Closed@entry=true) at src/polyclipping/clipper.cpp:1235
#8  0x00000000004a0164 in ClipperUtils::sanitize (paths=...) at src/clipper-utils.cc:33
#9  0x00000000004a01d3 in ClipperUtils::sanitize (poly=...) at src/clipper-utils.cc:27
#10 0x0000000000501568 in GeometryEvaluator::visit (this=0x7fffffffbc70, state=..., node=...) at src/GeometryEvaluator.cc:476
@kintel kintel added this to the 2015.03-2 milestone Aug 10, 2015
@MichaelAtOz
Copy link
Member

Crashes on Windows too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants