[maybe a bug] when breaking from an iteration of a dataloader, and the python process terminates, then it may report a strange error. #46774
Labels
PFCC
Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc
status/new-issue
新建
type/bug-report
报bug
The paddle experts can just ignore this issure. I just record the error here. It is not urgent. I will check it when I have time.
bug描述 Describe the Bug
environment: Win11, pycharm, cpu, PaddlePaddle 2.3, python 3.7
I find the bug when I run the file C:\Users\Administrator\Desktop\contests\20220715_paddle_lwfx_7th\Going-deeper-with-Image-Transformers-using-PaddlePaddle\02_test_data.py
The error message is as follows:
Some situations that won't report the error:
1. using paddle dataloader, but the dataset is very small, so the dataloader is iterated without breaking from the "for" statement.
[12, 3, 224, 224] [12] [12, 3, 224, 224] [12] [6, 3, 224, 224] [6] Process finished with exit code 0
2. use torch dataloader
3. when Process finished with exit code 0 doesn't occur, in my understanding, that is the python process doesn't terminate (I don't know how to express this situation)
In a word, I think when running a python file which includes the above code, if the program breaks from the iteration and then the python process terminates, then some strange error will occur. I'm not sure about it. I will check it in detail when I have time.
其他补充信息 Additional Supplementary Information
I'm not sure about the bug. I will check it in detail when I have time. You should pay attention to whether "Process finished with exit code 0" occurs. You need to understand what "Process finished with exit code 0" means.
The text was updated successfully, but these errors were encountered: