Open alecjacobson opened 6 years ago
Have recreated the bug; it's a CGAL problem. They are fixing it:
Could you post the full stack trace of the crash in our program?
CGAL-vc140-mt-gd-4.12.dll!CGAL::precondition_fail(const char expr, const char file, int line, const char * msg) Line 192
CGAL::line_project_pointC2
CGAL::CartesianKernelFunctors::Construct_projected_point_2<CGAL::Simple_cartesian
CGAL::Lazy_rep_2<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<0> > >,CGAL::Point_2<CGAL::Simple_cartesian
CGAL::Lazy_rep<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<0> > >,CGAL::Point_2<CGAL::Simple_cartesian
CGAL::Lazy<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<0> > >,CGAL::Point_2<CGAL::Simple_cartesian
CGAL::exact<CGAL::Point_2<CGAL::Simple_cartesian<CGAL::Interval_nt<0> > >,CGAL::Point_2<CGAL::Simple_cartesian
CGAL::Lazy_rep_3<CGAL::Interval_nt<0>,CGAL::Gmpq,CGAL::CartesianKernelFunctors::Compute_area_2<CGAL::Simple_cartesian<CGAL::Interval_nt<0> > >,CGAL::CartesianKernelFunctors::Compute_area_2<CGAL::Simple_cartesian
CGAL::Lazy_rep<CGAL::Interval_nt<0>,CGAL::Gmpq,CGAL::To_interval
CGAL::Lazy_exact_Add<CGAL::Gmpq,CGAL::Gmpq,CGAL::Gmpq>::update_exact() Line 306
CGAL::Lazy_rep<CGAL::Interval_nt<0>,CGAL::Gmpq,CGAL::To_interval
CGAL::Real_embeddable_traits<CGAL::Lazy_exact_nt
CGAL::sign<CGAL::Lazy_exact_nt
in_on_out(const CGAL::Segment_2
decide_to_keep(const std::vector<std::pair<CGAL::Segment_2
fill_over_stroke(const std::vector<CGAL::Segment_2
compare_2_shapes(const std::vector<CGAL::Segment_2
flatten(const std::vector<NSVGshape ,std::allocator<NSVGshape > > & shapes, const std::vector<std::vector<CGAL::Segment_2
I call ConstructProjectedPoint__2 functor and I use the Epeck kernel
Thanks. Can you point to where in our code we're calling this?
It was on line 57 of in_on_out.cpp
when I compare the signs of two CGAL::Lazy_exact_nt
's. But I don't need this code anymore so I commented it out. I still get the same problem on the same iteration. Now it's coming from line 64 of in_on_out.cpp
, where I call is_horizontal()
on an Epeck::Ray_2.
Cool library!
I could get it to compile by adding const to already_set_in
But it crashes on this weird turtle.svg
turtle-exploded.svg.zip