TouchDesigner freezes when using my component after upgrade

Some time ago, I wrote this .tox, which I’ve been using to load and quickly switch images. Usually I put a folder with a bunch of textures there, enable viewer active and start picking. After upgrading to 2025.32280 (might’ve skipped a release or two), using this component started to make TD freeze, when the folder contains lots of images.

imgpi

ezgif-787819feb943c982

cker.tox (371.1 KB)