Replies: 6 comments 8 replies
-
|
I found another way to proceed. Hopefully this will work now. |
Beta Was this translation helpful? Give feedback.
-
|
Does not work. Valgrind complains at the line calling
I wanted to try |
Beta Was this translation helpful? Give feedback.
-
|
It is claimed in the doc that |
Beta Was this translation helpful? Give feedback.
-
|
When I compile the example with the address sanitizer of VC++ enabled I also get error messages. So we should maybe have a closer look. |
Beta Was this translation helpful? Give feedback.
-
|
I've done a minimal example: #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_data_structure_2.h>
#include <CGAL/Hyperbolic_Delaunay_triangulation_2.h>
#include <CGAL/Hyperbolic_Delaunay_triangulation_traits_2.h>
#include <CGAL/Triangulation_vertex_base_with_id_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Hyperbolic_Delaunay_triangulation_traits_2<K> HDtt;
typedef HDtt::Point_2 HPoint;
typedef CGAL::Triangulation_data_structure_2<
CGAL::Triangulation_vertex_base_with_id_2<HDtt>,
CGAL::Hyperbolic_triangulation_face_base_2<HDtt>>
HTds;
typedef CGAL::Hyperbolic_Delaunay_triangulation_2<HDtt, HTds> HDt;
int main(){
HDt hdt;
hdt.insert(HPoint(0.1, 0.1));
hdt.insert(HPoint(0.8, 0.2));
hdt.insert(HPoint(0.4, 0.6));
hdt.insert(HPoint(-0.5, -0.5));
return 0;
} Here are the Valgrind complains. Functions whose name start with So it really seems the problem is not from my code (this time), this is from CGAL. I said something wrong here:
Valgrind has nothing to do with R. This is a tool to check C/C++ code. There's also UBSAN or ASAN which are similar tools, that you can use via Docker. |
Beta Was this translation helpful? Give feedback.
-
|
I checked the Euclidean Delaunay triangulation with Valgrind. No issue, clean. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Here is my code. I call it from R and it works fine. However, when it is checked with Valgrind (a tool to check memory problems in R packages), there are some issues, such as:
Because of this problem I can't publish my package :-(. Do you have an idea?
Beta Was this translation helpful? Give feedback.
All reactions