Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#11332 closed Bugs (fixed)

Assertion failure in buffer()

Reported by: awulkiew Owned by: Barend Gehrels
Milestone: Boost 1.59.0 Component: geometry
Version: Boost Development Trunk Severity: Problem
Keywords: buffer, assert Cc:


Assertion failed: geometry::equals(current_robust_ring.front(), current_robust_ring.back()), file d:\lib\modular-boost\libs\geometry\include\boost\geometry\algorithms\detail\buffer\buffered_piece_collection.hpp, line 864


MULTILINESTRING((-58 19, 61 88),(1.922421e+307 1.520384e+308, 15 42, 89 -93,-89 -22),(-63 -5, -262141 -536870908, -3 87, 77 -69))

If BOOST_GEOMETRY_ENABLE_ACCESS_DEBUGGING is defined the "values uninitialized" assertion fails in model::point before the assertion mentioned above.

Test case already added to the buffer_multi_linestring test. BOOST_GEOMETRY_BUFFER_INCLUDE_FAILING_TESTS must be defined.

Change History (2)

comment:1 Changed 3 years ago by Barend Gehrels

Resolution: fixed
Status: newclosed

Fixed by checking on inf and isfinite, and adding a return_code. The buffer now skips any geometry(part) which causes such a numerical error Thanks for the report.

comment:2 Changed 3 years ago by Barend Gehrels

Milestone: To Be DeterminedBoost 1.59.0
Note: See TracTickets for help on using tickets.