-
Notifications
You must be signed in to change notification settings - Fork 16
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
zsh: segmentation fault when running the classification task #17
Comments
Hey @traopia, Thanks for reporting this issue. Segmentation fault is a system issue and it occurs when the program has issues accessing memory. Can you confirm that you have enough RAM to run the program? Perhaps, this issue should resolve itself after rebooting your machine. Is there a traceback from Python? What OS are you using? |
Hey!
I tried on Lisa and indeed it worked well - so good news the code is great - bad news it’s a problem of my machine :/
I tried rebooting again and did all the updates, I rerun it from terminal but still I get a segmentation fault. I installed a module that shows me how much RAM memory I have available and I should have 10 GB available. I then installed a library (psutil <https://psutil.readthedocs.io/en/latest/>) to print how much memory the process is using and I printed it whilst running the code on Lisa and it is 2434609152 bytes thus around 2.26 GB. I don’t really get why this segmentation fault keeps on happening. If you are still keen to help me figuring that out, I’d really appreciate that!
Thank you,
Teresa
… Il giorno 13 feb 2023, alle ore 14:32, Thiviyan Singam ***@***.***> ha scritto:
Hey @traopia <https://github.com/traopia>, Thanks for reporting this issue.
Segmentation fault is a system issue and it occurs when the program has issues accessing memory. Can you confirm that you have enough RAM to run the program? Perhaps, this issue should resolve itself after rebooting your machine.
Is there a traceback from Python? What OS are you using?
—
Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AV5CQOLF3DGA3YFA4ELU63TWXIZWRANCNFSM6AAAAAAUZTJQLU>.
You are receiving this because you were mentioned.
|
It is great to hear that it works on a different machine! This means that the code is still working. Regarding your machine, a segmentation fault is hard to debug because it could arise from a number of different things: low memory (we have ruled this out), a bug in the code, faulty ram memory, etc. What makes it trickier is that the error message is so uninformative. I have found that faulthandler, a built-in python package, can be used to debug this problem: https://stackoverflow.com/a/58825725. You can use this to get more information about the issue. Then it is easier to find a solution. |
I get this error when running the cn task:
zsh: segmentation fault python experiments/classify_nodes.py with configs/rgcn/nc-AIFB.yaml
I tried with all the datasets and models, and with some debugging I found out that this happens right before the training starts. I am wondering if it's a problem of my machine or not and if so how to fix it.
Thank you for your help!
The text was updated successfully, but these errors were encountered: