Interrupted system call error in dataloader

I got the following error during iteration from MNIST dataloader. I could not find any solution anwhere. Can anyone point me what might be wrong?

for batch_idx, (inps, targs) in enumerate(trainloader):

File “/usr/local/lib/python2.7/dist-packages/torch/utils/data/dataloader.py”, line 195, in next
idx, batch = self.data_queue.get()
File “/usr/lib/python2.7/multiprocessing/queues.py”, line 376, in get
return recv()
File “/usr/local/lib/python2.7/dist-packages/torch/multiprocessing/queue.py”, line 22, in recv
return pickle.loads(buf)
File “/usr/lib/python2.7/pickle.py”, line 1382, in loads
return Unpickler(file).load()
File “/usr/lib/python2.7/pickle.py”, line 858, in load
dispatchkey
File “/usr/lib/python2.7/pickle.py”, line 1133, in load_reduce
value = func(*args)
File “/usr/local/lib/python2.7/dist-packages/torch/multiprocessing/reductions.py”, line 68, in rebuild_storage_fd
fd = multiprocessing.reduction.rebuild_handle(df)
File “/usr/lib/python2.7/multiprocessing/reduction.py”, line 157, in rebuild_handle
new_handle = recv_handle(conn)
File “/usr/lib/python2.7/multiprocessing/reduction.py”, line 83, in recv_handle
return _multiprocessing.recvfd(conn.fileno())
OSError: [Errno 4] Interrupted system call

4 Likes

I also got this error for my own dataloader.
Anyone encounter the similar situation?