Hot Folders Bug - Polling Gets Stuck? (Windows)

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: helmut, XnTriq, xnview

beornlake
Posts: 7
Joined: Thu Aug 23, 2018 2:43 am

Hot Folders Bug - Polling Gets Stuck? (Windows)

Post by beornlake »

I have a hot folder set up and it sort of works, but I keep running into an issue where XnConvert stops processing the hot folder (as though the watch process has hung up or crashed). The bug seems to be triggered when the image processor kicks in while I'm still rendering images to the hot folder. A couple of images are processed, and then nothing else gets processed no matter what I drop into the hot folder. In order to get the hot folder working again, I need to close XnConvert and restart the Windows Explorer process from the Task Manager.

Steps to recreate (using PowerPoint as an example, since this is my main use case):
  1. Set up a hot folder with Recursion enabled.
  2. Create a PowerPoint with, say, 50 or so slides (enough that an export takes a few moments).
  3. Save the slide deck as PNGs to the hot folder (choose the "All Slides" option when prompted).
  4. PPT will start saving PNGs to a subfolder of the hot folder as Slide1.PNG, Slide2.PNG, etc.
  5. XnConvert will detect the new images and will start processing them, but will stop after a couple images and will not detect any further changes to the hot folder.
  6. Close XnConvert and restart the Windows Explorer processes from the Task Manager.
  7. Re-open XnConvert and the hot folder works once more (until this bug is triggered again).
Versions:
Windows 11: 22H2 (build 22621.2428)
XnConvert: Version 1.98 - windows x64 (Mar 24 2023) - Libformat version 7.140

Happy to help provide more info or testing.
User avatar
xnview
Author of XnView
Posts: 45799
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hot Folders Bug - Polling Gets Stuck? (Windows)

Post by xnview »

i have not PowerPoint, do you have another way to reproduce?
Pierre.
XnViewUSER9900
Posts: 1
Joined: Tue Oct 31, 2023 4:46 pm

Re: Hot Folders Bug - Polling Gets Stuck? (Windows)

Post by XnViewUSER9900 »

Unfortunately I have the same symptoms.

My example:
I used the "Everything" tool (https://www.voidtools.com/) to organize the folders.

When I drag multiple folders (about 50 folders) listed in Everything into XnConvert, the XnConvert program freezes (no response).

Forcibly close XnConvert and reopen the XnConvert program. At this time, dragging any JPG or other types of files will be extremely delayed, and you may not even be able to detect whether it has any effect. (No response)

No matter how many times you turn it on/off, it won't solve it. You can only continue to use XnConvert by reinstalling your system.

Maybe the file type I dragged incorrectly is not supported by XnConvert, but as soon as I make one mistake (triggering a freeze), XnConvert can no longer be used.
beornlake
Posts: 7
Joined: Thu Aug 23, 2018 2:43 am

Re: Hot Folders Bug - Polling Gets Stuck? (Windows)

Post by beornlake »

xnview wrote: Tue Oct 17, 2023 7:47 am i have not PowerPoint, do you have another way to reproduce?
You can recreate it by piping a bunch of nconvert output to the hot folder. Or if you have ffmpeg, you can export a bunch of frames from a video file to the hot folder. It just needs to be any program that quickly dumps many images in succession into the hot folder such that frames are still being added while XnConvert is processing.

Here's an ffmpeg command to creates a thumbnail for every 5 seconds of a video file:

Code: Select all

ffmpeg -i input_file -vf fps=1/5 out%d.png
User avatar
xnview
Author of XnView
Posts: 45799
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Hot Folders Bug - Polling Gets Stuck? (Windows)

Post by xnview »

i've tried with ffmpeg, but can't reproduce. once current process is finished, and once ffmpeg has finished, the new convert starts
Pierre.