It's unpredictable when it will crash. If I take SummaryWriter out of my code, it does not crash. Here is a typical trace:
Windows fatal exception: access violation
Thread 0x00005260 (most recent call first):
Thread 0x00010ca4 (most recent call first):
File "C:\Users\wbend\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 359 in wait
File "C:\Users\wbend\AppData\Local\Programs\Python\Python312\Lib\queue.py", line 180 in get
File "C:\Users\wbend\nn\venv2\Lib\site-packages\tensorboard\summary\writer\event_file_writer.py", line 269 in _run
File "C:\Users\wbend\nn\venv2\Lib\site-packages\tensorboard\summary\writer\event_file_writer.py", line 244 in run
File "C:\Users\wbend\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1075 in _bootstrap_inner
File "C:\Users\wbend\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1032 in _bootstrap
Current thread 0x0001322c (most recent call first):
File "C:\Users\wbend\nn\dirclassifier.py", line 50 in __getitem__
File "C:\Users\wbend\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\utils\data\_utils\fetch.py", line 52 in fetch
File "C:\Users\wbend\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\utils\data\dataloader.py", line 757 in _next_data
File "C:\Users\wbend\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch\utils\data\dataloader.py", line 701 in __next__
File "C:\Users\wbend\nn\dirclassifier.py", line 280 in train
File "C:\Users\wbend\nn\dirclassifier.py", line 360 in
Process finished with exit code -1073741819 (0xC0000005)
It's unpredictable when it will crash. If I take SummaryWriter out of my code, it does not crash. Here is a typical trace:
Windows fatal exception: access violation
Thread 0x00005260 (most recent call first):