Open cppcute-pm opened 1 year ago
Hi @cppcute-pm,
The cpp functions is extremely hard to debug. The python debug mode wont work with them. You need to place cout in the cpp file to follow the code execution by printing stuff. Also you need to recompile the wrappers every time you change the cpp file. I had issues in the past and it took me quite some time to find the errors. Some ideas of possible mistakes:
Good luck
Thanks a lot for your reply! I'll check my usecase carefully.
Hello, HuguesTHOMAS! When I try to use the function cpp_neighbors.batch_query() function in some other scenes, I find a failure case that when the code goes into this function, the code will cause exit() without any warning information or error message (I don't know whether should I use other IDE to Debug the code in C++ instead of Pycharm). This situation will happens after several loops (In every loop I will call this function once),I checked the number of points (around 60000),It wasn't the biggest number (around 150000) compared with previous loops. I also checked whether there exists nan , inf, overflow or underflow in the points data, the answer is not. I want to know that if there exists any using limitation of this function or there are some factors that I didn't noticed.