File Not Found when I try to open something.

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: xnview, Dreamer

PwnyHipster
Posts: 5
Joined: Sat Mar 07, 2026 1:06 pm

File Not Found when I try to open something.

Post by PwnyHipster »

Ever since that last update some files now do an error with "file not found" when I try to open it. What is happening?
jkm
Posts: 504
Joined: Sat May 11, 2024 12:43 am

Re: File Not Found when I try to open something.

Post by jkm »

Probably some files were moved/renamed/deleted outside of XnViewMP, or the path they were on (external drive or NAS) is not available or has changed.

You can either find them and put them back, or...

Try Tools->Settings:Catalog->Synchronize Folders and the missing files will no longer appear in the application
PwnyHipster
Posts: 5
Joined: Sat Mar 07, 2026 1:06 pm

Re: File Not Found when I try to open something.

Post by PwnyHipster »

jkm wrote: Wed Mar 18, 2026 6:29 pm Probably some files were moved/renamed/deleted outside of XnViewMP, or the path they were on (external drive or NAS) is not available or has changed.

You can either find them and put them back, or...

Try Tools->Settings:Catalog->Synchronize Folders and the missing files will no longer appear in the application
No I mean when I open up an image in a folder it doesn't open it. I moved the folder to a different spot and it now opens some images.
User avatar
xnview
Author of XnView
Posts: 47726
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: File Not Found when I try to open something.

Post by xnview »

PwnyHipster wrote: Wed Mar 18, 2026 6:48 pm No I mean when I open up an image in a folder it doesn't open it. I moved the folder to a different spot and it now opens some images.
long path name?
Pierre.
PwnyHipster
Posts: 5
Joined: Sat Mar 07, 2026 1:06 pm

Re: File Not Found when I try to open something.

Post by PwnyHipster »

xnview wrote: Thu Mar 19, 2026 6:53 am
PwnyHipster wrote: Wed Mar 18, 2026 6:48 pm No I mean when I open up an image in a folder it doesn't open it. I moved the folder to a different spot and it now opens some images.
long path name?
Seems so but it wasn't a problem until now.
User avatar
xnview
Author of XnView
Posts: 47726
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: File Not Found when I try to open something.

Post by xnview »

PwnyHipster wrote: Thu Mar 19, 2026 3:12 pm Seems so but it wasn't a problem until now.
you had not this problem in 1.10.3?
Pierre.
PwnyHipster
Posts: 5
Joined: Sat Mar 07, 2026 1:06 pm

Re: File Not Found when I try to open something.

Post by PwnyHipster »

xnview wrote: Fri Mar 20, 2026 6:33 am
PwnyHipster wrote: Thu Mar 19, 2026 3:12 pm Seems so but it wasn't a problem until now.
you had not this problem in 1.10.3?
Was that the update before the latest one? Yeah I didn't have this problem then, only after the current update installed.
User avatar
xnview
Author of XnView
Posts: 47726
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: File Not Found when I try to open something.

Post by xnview »

PwnyHipster wrote: Fri Mar 20, 2026 7:29 am Was that the update before the latest one? Yeah I didn't have this problem then, only after the current update installed.
could you send me that the full filename used in PM?
Pierre.
User avatar
CreativeWorld
Posts: 148
Joined: Fri Dec 30, 2011 7:08 pm

Re: File Not Found when I try to open something.

Post by CreativeWorld »

I have the same issue. It's definitely an issue with long path names. It probably has been introduces with 1.10.3 as I had this issue there as well. I think I had the latest 1.9.X before where it still worked. It looks like XnView is not long path aware anymore.

I have other, even self written software that still work fine with long path names.
User avatar
CreativeWorld
Posts: 148
Joined: Fri Dec 30, 2011 7:08 pm

Re: File Not Found when I try to open something.

Post by CreativeWorld »

I tried to open the same file in CMD using the same syntax as XnView registers in the registry:

"C:\Program Files\XnViewMP\xnviewmp.exe" "%1"

It works when I put the full long path as-is:

"C:\Program Files\XnViewMP\xnviewmp.exe" "C:\...long path...\file.png"

But when the special long path prefix is being used the error occurs:

"C:\Program Files\XnViewMP\xnviewmp.exe" "\\?\C:\...long path...\file.png"

On opening through Windows Explorer it automatically adds the \\?\ prefix to the path parameter.
The issue might be, how this was handled before. In case of my environment I didn't install any updates that would change default Framework/Windows behaviors.
User avatar
xnview
Author of XnView
Posts: 47726
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: File Not Found when I try to open something.

Post by xnview »

CreativeWorld wrote: Thu Mar 26, 2026 2:21 pm But when the special long path prefix is being used the error occurs:

"C:\Program Files\XnViewMP\xnviewmp.exe" "\\?\C:\...long path...\file.png"
Right :bugconfirmed: Thanks I can reproduce .
Pierre.
User avatar
xnview
Author of XnView
Posts: 47726
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: File Not Found when I try to open something.

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.11.1. Please check and confirm the bug fix here.
Pierre.