cgal icon indicating copy to clipboard operation
cgal copied to clipboard

Why is CGAL less stable on Ubuntu 20.04.5 compared to Windows?

Open lisir3000 opened this issue 1 year ago • 4 comments

We implemented an incremental topological map application using the CGAL library’s Arrangement_2, Arr_segment_traits_2, and Arr_observer. We found that the library is more stable in a Windows environment. When running on Ubuntu 20.04.5, crashes occur, such as when inserting multiple overlapping segments into the library or when batch deleting vertices. These operations perform well in the Windows environment, but cause crashes in Ubuntu 20.04.5. Both environments use the same CGAL version 5.5.3. What could be causing this issue?

lisir3000 avatar Sep 09 '24 08:09 lisir3000

What gcc version are you using? Could you try clang++ instead?

sloriot avatar Sep 09 '24 08:09 sloriot

@lisir3000

We implemented an incremental topological map application using the CGAL library’s Arrangement_2, Arr_segment_traits_2, and Arr_observer. We found that the library is more stable in a Windows environment. When running on Ubuntu 20.04.5, crashes occur, such as when inserting multiple overlapping segments into the library or when batch deleting vertices. These operations perform well in the Windows environment, but cause crashes in Ubuntu 20.04.5. Both environments use the same CGAL version 5.5.3. What could be causing this issue?

That is really hard to guess without knowing more about those crashes. Are they assertions/exceptions that are thrown, segfault? Do you have stack traces?

CGAL-5.5.x is tested every week. See last test results. We do not test with Ubuntu 20.04, but we could. As Sébastien said, it is very important we know which compiler (and which version of it) you used.

By the way, you mentioned CGAL-5.5.3. Note that CGAL-5.5.4 was released in February 2024. Maybe that version already contains a fix for you issue. Could you try, please?

lrineau avatar Sep 09 '24 08:09 lrineau

Also, what kernel are you using?


/_____/) o /_________ __ // (____ ( ( ( (/ (/-(-'_(/ _/

On Mon, 9 Sept 2024 at 11:27, Laurent Rineau @.***> wrote:

@lisir3000 https://github.com/lisir3000

We implemented an incremental topological map application using the CGAL library’s Arrangement_2, Arr_segment_traits_2, and Arr_observer. We found that the library is more stable in a Windows environment. When running on Ubuntu 20.04.5, crashes occur, such as when inserting multiple overlapping segments into the library or when batch deleting vertices. These operations perform well in the Windows environment, but cause crashes in Ubuntu 20.04.5. Both environments use the same CGAL version 5.5.3. What could be causing this issue?

That is really hard to guess without knowing more about those crashes. Are they assertions/exceptions that are thrown, segfault? Do you have stack traces?

CGAL-5.5.x is tested every week. See last test results https://cgal.geometryfactory.com/CGAL/testsuite/results-5.5.5-I-213.shtml#Arrangement_on_surface_2. We do not test with Ubuntu 20.04, but we could. As Sébastien said, it is very important we know which compiler (and which version of it) you used.

By the way, you mentioned CGAL-5.5.3. Note that CGAL-5.5.4 was released in February 2024 https://www.cgal.org/2024/02/28/cgal554/. Maybe that version already contains a fix for you issue. Could you try, please?

— Reply to this email directly, view it on GitHub https://github.com/CGAL/cgal/issues/8471#issuecomment-2337458592, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVBNOCAWXCRPOUQNGJT4YLZVVLW3AVCNFSM6AAAAABN37DPB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZXGQ2TQNJZGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

efifogel avatar Sep 09 '24 09:09 efifogel

I'm using gcc 9.4.0

lisir3000 avatar Sep 12 '24 08:09 lisir3000

@lisir3000 could you please also answer questions from https://github.com/CGAL/cgal/issues/8471#issuecomment-2337458592

MaelRL avatar Sep 17 '25 21:09 MaelRL

Bump @lisir3000

MaelRL avatar Dec 11 '25 15:12 MaelRL