question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation Fault in Forward Loop of Edge Conv

See original GitHub issue

Hey there!

I’m testing out edge conv and am running into some issues. I’m getting a segmentation fault during the knn_graph generation:

line 13: 14361 Segmentation fault      (core dumped) CUDA_VISIBLE_DEVICES="$gpuNum" python ...

Here’s output using pysnooper, I traced the error to this location:

Starting var:.. batch = None
Starting var:.. pos = tensor([[-3.1472e-01, -7.1309e-01, -1.5181e-01,  1.3493e+00,  1.0879e+00,          4.9691e-01, -1.54...
Starting var:.. self = Net(  (conv1): EdgeConv(nn=Sequential(    (0): Linear(in_features=50, out_features=64, bias=True)   ...
17:39:03.629809 call        41  def forward(self, pos, batch):
17:39:03.680347 line        42          edge_index = knn_graph(pos, k=20, batch=batch)
~

Last line is where error is happening.

As more context, I’m generating my point cloud using a CNN, batch and positions are shown above, cannot seem to make it through the generation of the edge index.

Can you please help me out here?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:31 (31 by maintainers)

github_iconTop GitHub Comments

1reaction
jlevy44commented, May 1, 2019

Ah, torch_sparse works now. Let’s see if all of this did the trick.

0reactions
jlevy44commented, May 2, 2019

All is good on my end!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation Fault in Forward Loop of Edge Conv · Issue #251
Hey there! I'm testing out edge conv and am running into some issues. I'm getting a segmentation fault during the knn_graph generation: line...
Read more >
Why do I get a segmentation fault (SIGSEGV) when calling a ...
This error comes after I have created an instance of my graph convolutional neural network and am calling the forward method on it...
Read more >
"Segmentation fault occurred" occurs in Fortran, but the error ...
One possible answer is that you have told the compiler to vectorize the loop, and that causes a seg fault due to fault...
Read more >
Debugging Segmentation Faults - Google Sites
Segmentation faults are referred to as segfault, access violation or bus error. Hardware notifies the operating system about memory access violation. The OS ......
Read more >
Segmentation fault (core dumped) in rosetta_scripts.default ...
I am in favour of opinion, that it would be better to convert expression "ii+1" to "ii" in the foregoing line. It is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found