lanpa / tensorboardX

tensorboard for pytorch (and chainer, mxnet, numpy, ...)
https://tensorboardx.readthedocs.io/en/latest/tensorboard.html
MIT License
7.87k stars 862 forks source link

SummaryWriter segfaults python #727

Open wbendick opened 1 month ago

wbendick commented 1 month ago

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)
lanpa commented 5 days ago

Hi, are you using Windows?