Skip to content
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

Segmentation fault (core dumped) #3

Closed
Blame4 opened this issue Jul 5, 2021 · 4 comments
Closed

Segmentation fault (core dumped) #3

Blame4 opened this issue Jul 5, 2021 · 4 comments
Labels
question Further information is requested

Comments

@Blame4
Copy link

Blame4 commented Jul 5, 2021

Any clue that I got Segmentation fault (coredumped) when excuting
python vectorize_u3d.py logs/pretrained-wireframe/npz/003576000 --vpdir logs/pretrained-vanishing-points/npz/000096000 57
output:
K: 2.6102218630949925 [[ 2.6102219 0. 0. 0. ] [ 0. 2.6102219 0. 0. ] [ 0. 0. 0. -1. ] [ 0. 0. 1. 0. ]] Segmentation fault (core dumped)

@zhou13
Copy link
Owner

zhou13 commented Jul 5, 2021

Without extra information, it is hard to determine the cause. I suspect the problem is on the OpenGL/vispy side. If you are able to do some debugging, you can try to find the line number of the crash point.

@Blame4
Copy link
Author

Blame4 commented Jul 5, 2021

vps = vanish_point_refine(np.array(junctions), np.array(lines), 
# vps = vanish_point_clustering2(np.array(junctions), lines)
K = estimate_intrinsic_from_vp(vps[0][0], vps[1][0], vps[2][0])[0]
invK = LA.inv(K)
print("K:", 1 / invK[0, 0])
depth = lifting_from_vp(vps, invK, junctions, -juncdepth, junctypes, lines)
vertices, projection_matrix = to_world(junctions, depth, lines, K)
#show_wireframe(
#    f"{npzdir}/wireframe/{index:06}", vertices, lines, projection_matrix
#)

I saw the picture after I comment the last 3 lines in vectorize_u3d.py. 13 pictures show up one after I close another.
I will try to debug deeper

@Blame4
Copy link
Author

Blame4 commented Jul 5, 2021

It stoped here
85 def __init__(self, prefix, vertices, lines, proj_matrix, view_matrix): ->86 app.Canvas.__init__(self, config=dict(samples=8), size=(1024, 1024))

in wireframe>viewer.py>Cavas>init

and no more message

@Blame4
Copy link
Author

Blame4 commented Jul 5, 2021

Ok, my fault.OpenGL is not installed well.

@zhou13 zhou13 added the question Further information is requested label Sep 29, 2021
@zhou13 zhou13 closed this as completed Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants