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
Import order matters: segmentation fault if torch is imported first #6194
Comments
|
What are the other packages? |
|
@colesbury So as I implied (sorry for not being very clear), none of the other packages matter. If I import Reverse order: |
|
Can you do this inside |
|
@goldsborough Can you write the steps a bit more specific? I have never run Python debugger. Should I do |
|
Yeah it should look like this we need the output of that |
|
Also, what version of PyTorch are you running? ( |
|
@colesbury I have had this issue for a long time but I eventually decided to say something about it on GitHub. I started compiling PyTorch from source from 2 months ago or so. I never tired with I just did what @goldsborough asked me to do. Here's the output: If I import in reverse order |
|
@colesbury @goldsborough I wonder, did you investigate this more? At the moment, for me, it would be even helpful for me if you can tell me if you think this is something caused by |
|
@Amir-Arsalan the segfault is happening on |
|
@fmassa @soumith @colesbury @goldsborough I posted a bug report for Blender: here |
|
It turns out this happens because the rendering engine in |


I have a couple of packages that I import in my project. Obviously, one of them is
torch. I noticed that if I importtorchafter only one of my other packages things are fine. However, if I importtorchfirst I get a segmentation fault. I'm not picky about importing the other module first and then doimport torchbut for some reason, I need to import torch first in my work and this has made things a bit complicated for me. I wonder, is this a Python issue or could it betorchissue or maybe the other package (bpy) issue? Does anyone know how I can figure out what is causing the segmentation fault?The text was updated successfully, but these errors were encountered: