This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: builtins.RuntimeError: Caught RuntimeError in pin memory thread for device 0.
Type: Stage: resolved
Components: Versions: Python 3.8
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: eric.smith, shawn
Priority: normal Keywords:

Created on 2020-04-20 14:00 by shawn, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg366829 - (view) Author: shawn (shawn) Date: 2020-04-20 14:00
 File "D:\yolov3\train.py", line 430, in <module>
  train() # train normally
 File "D:\yolov3\train.py", line 236, in train
  for i, (imgs, targets, paths, _) in pbar: # batch -------------------------------------------------------------
File "D:\Programs\Python\Python38\Lib\site-packages\tqdm\std.py", line 1127, in __iter__
  for obj in iterable:
File "D:\Programs\Python\Python38\Lib\site-packages\torch\utils\data\dataloader.py", line 345, in __next__
  data = self._next_data()
File "D:\Programs\Python\Python38\Lib\site-packages\torch\utils\data\dataloader.py", line 856, in _next_data
  return self._process_data(data)
File "D:\Programs\Python\Python38\Lib\site-packages\torch\utils\data\dataloader.py", line 881, in _process_data
  data.reraise()
File "D:\Programs\Python\Python38\Lib\site-packages\torch\_utils.py", line 394, in reraise
  raise self.exc_type(msg)

builtins.RuntimeError: Caught RuntimeError in pin memory thread for device 0.
Original Traceback (most recent call last):
File "D:\Programs\Python\Python38\lib\site-packages\torch\utils\data\_utils\pin_memory.py", line 31, in _pin_memory_loop
data = pin_memory(data)
File "D:\Programs\Python\Python38\lib\site-packages\torch\utils\data\_utils\pin_memory.py", line 55, in pin_memory
return [pin_memory(sample) for sample in data]
File "D:\Programs\Python\Python38\lib\site-packages\torch\utils\data\_utils\pin_memory.py", line 55, in <listcomp>
return [pin_memory(sample) for sample in data]
File "D:\Programs\Python\Python38\lib\site-packages\torch\utils\data\_utils\pin_memory.py", line 47, in pin_memory
return data.pin_memory()
 ... (truncated)
msg366830 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2020-04-20 14:17
This appears to be a problem in a third-party library: torch.

You didn't include any code example that triggers the problem. Without some way to duplicate this issue, there's not much we can do about it.
msg366913 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2020-04-21 07:38
Unless the original poster can provide more information (and preferably a way to reproduce this), I'm going to close this.
msg367286 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2020-04-25 22:27
If you have more information, please provide it and re-open this issue.
History
Date User Action Args
2022-04-11 14:59:29adminsetgithub: 84517
2020-04-25 22:27:40eric.smithsetstatus: pending -> closed
resolution: rejected
messages: + msg367286

stage: resolved
2020-04-21 07:38:51eric.smithsetstatus: open -> pending

messages: + msg366913
2020-04-20 14:17:55eric.smithsetnosy: + eric.smith
messages: + msg366830
2020-04-20 14:00:55shawncreate