next(iter(DataLoader)) get stuck nd does not return

Hi, I am using a custom DataLoader to iterate a custom dataset. It seemed working for a while, but suddendly when calling next(iter(DataLoaderCustom)), the program stops and wait forever. The same if I call DatasetCustom[0].

Has anyone some ideas? Thank you!

I’d say you coded some sort of infinite loop in which your loader gets trapped.