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

ERROR: Unexpected segmentation fault encountered in worker. #49

Closed
bowenc0221 opened this issue Oct 19, 2018 · 1 comment
Closed

ERROR: Unexpected segmentation fault encountered in worker. #49

bowenc0221 opened this issue Oct 19, 2018 · 1 comment

Comments

@bowenc0221
Copy link

I'm training Mask RCNN and got this error during the 9th epoch. It seems like a dataloader deadlock.

I also encountered dataloader deadlock using Detectron.pytorch code before and the solution was to train with 1 img/gpu. (Check this issue)

Any idea what might cause this problem? I'm not sure whether it is a PyTorch dataloader problem or the dataset function: __getitem()__ problem.

Thanks in advance.

@hellock
Copy link
Member

hellock commented Oct 20, 2018

We also encountered dataloader deadlocks in some environments occasionally. While in some environments, deadlocks never occur. It is not easy to reproduce since the frequency is rather low. Our solution is to resume from the latest checkpoint (resume_from field in config file).

Compiling PyTorch from source seems to decrease the possibility of deadlock. At least we have not encountered a deadlock in the latest 50 experiments.

druzhkov-paul added a commit to druzhkov-paul/mmdetection that referenced this issue Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants