-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0xC0000005 error #68
Comments
I am also getting the segmentation fault while running it on ubuntu. But while running it on windows there is no problem.
The error i get: Current thread 0x00007fcae2b78740 (most recent call first): |
hello!I have the same problem with you.Have you already solved the problem and how you solved the problem?I sometimes get the error and sometimes run the scripit correctly. |
I solved this by making pts unique. |
Thanks,I have solved the problem through your method.My points are from .shp polygon file which the first polygon point is the same as the last point.I delete the last point and it works!Thank you for your reply!!! |
When I only run the triangle once, there is no problem, and when I run it multiple times, a random error occurs.
This is my code and data, can you please help me see what the problem is?
path1 = r"D:\pdata.txt"
path2 = r"D:\index.txt"
import numpy as np
from triangle import triangulate
with open(path1, "r") as f1:
data1 = f1.readlines()
data2 = []
for i in range(len(data1)):
mid = data1[i].strip("\n").split(",")
data2.append([float(mid[0]), float(mid[1]), float(mid[2])])
with open(path2, "r") as f2:
data3 = f2.readlines()
data4 = []
for i in range(len(data3)):
mid = data3[i].strip("\n").split(",")
data4.append([int(mid[0]), int(mid[1])])
A = dict(vertices=np.delete(data2, 2, axis=1), segments=data4)
final_data = []
for i in range(10):
final_data.append(triangulate(A, "p"))
index.txt
pdata.txt
The text was updated successfully, but these errors were encountered: