CGAL / cgal

The public CGAL repository, see the README below
https://github.com/CGAL/cgal#readme
Other
4.98k stars 1.39k forks source link

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

Open lisir3000 opened 2 months ago

lisir3000 commented 2 months ago

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?

sloriot commented 2 months ago

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

lrineau commented 2 months ago

@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?

efifogel commented 2 months ago

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: @.***>

lisir3000 commented 1 month ago

I'm using gcc 9.4.0