Page 1 of 1

XYplorer hangs when previewing corrupted PDF

Posted: 24 Jan 2025 14:33
by ovencovsky
I have a corrupted PDF. Probably incomplete download.
When I try to open it in any PDF software (SumatraPDF, Acrobat Reader) it reports it cannot be opened because the file is corrupted or invalid.
When I use XYplorer with preview pane on and select this corrupted file, XYplorer hangs and must be closed via task manager.
It should simply report "Cannot open" or "Corrupted file" within a second as other software do.

Re: XYplorer hangs when previewing corrupted PDF

Posted: 25 Jan 2025 11:11
by admin
Welcome to the club, and wow, never heard of such extreme behavior. Can you send this PDF to support?

Anyway, your particular preview handler is probably responsible for this mess: XY is waiting for the preview handler to return. This is currently done in the main thread. Soon this can be done in a background thread, which should solve the problem.