Modify

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:

Description

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

for:

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.

Attachments (0)

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Barend Gehrels.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.