Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

XnView: MP Version 0.99.7 64bits (Jan 13 2022)
OS: Windows 10 - 64-bit

Effect: XnView displays error: File can't be loaded!

XnView displays error: File can't be loaded! when attempting to load file. Windows paint 3d opens and displays the file properly.

To reproduce:
1. Double click on .jpg file.
Actual behaviour (bug): XnView displays error: File can't be loaded! :bug:

Expected behaviour: File is opened and displayed.

Attachments: File is too large for this post, but the names of the files are "[ZyX] Tsuki - Possesion [Uncensored]_683858-0420.jpg" to "[ZyX] Tsuki - Possesion [Uncensored]_683858-0429.jpg" (10 files in this particular folder, though there are other folders with the same problem).
User avatar
xnview
Author of XnView
Posts: 43098
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by xnview »

it seems that you have a problem in your registry entries for .jpg
Pierre.
XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

How do I fix this problem?
Also, why does this only affect a small number of .jpg files?
User avatar
xnview
Author of XnView
Posts: 43098
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by xnview »

XNViewMPUser wrote: Thu Jan 20, 2022 11:28 pm Also, why does this only affect a small number of .jpg files?
could you send me a sample jpeg file?
Pierre.
User avatar
winnylinny
Posts: 151
Joined: Fri Apr 17, 2020 5:35 pm

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by winnylinny »

Make a copy of one of the JPEG files, place it directly in your user's home folder, and then rename it to: test.jpg

Does it open when you double-click it now?

My hunch is that there are some invisible or visible characters somewhere along the directory path and/or file names, or possibly even within the EXIF metadata.
XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

I made a copy of the file, put it on my desktop since I don't know where my user home folder is, and I renamed it to test.jpg. The file still won't open.
This should at least eliminate the possibility that there is a special character in the file name and path though.

I do not know how to send a sample file to someone.
Since I have no choice, I have uploaded the image to <removed since I shouldn't post it at all>.
Imgur changed the file from .jpg to .png, but xnview *still* can't open the file as a .png, which means this file isn't fixed by converting it to a different file type.
My apologies for the lewdness of the image. It is mature rated.

If you can explain to me how to send you this .jpg file, I can send it privately.
Last edited by XNViewMPUser on Sun Jan 23, 2022 10:48 am, edited 1 time in total.
XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

My theory on the problem is that xnview doesn't support opening animated .jpg or .png files.
Last edited by XNViewMPUser on Sun Jan 23, 2022 8:54 am, edited 1 time in total.
XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

I apologize for directly linking the path to these lewd images, but I don't know how else to do this.
The place I downloaded these images from is https://e-hentai.org/g/683858/6724854080/ .
The erroring images are 420-429 which the first comment states "are APNGs so use firefox/opera or install the plugin on chrome.".
Make absolutely certain you download the image as original source or you'll just get a small snapshot of the first image.
User avatar
xnview
Author of XnView
Posts: 43098
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by xnview »

could you send me the file by mail?
Pierre.
cday
XnThusiast
Posts: 3942
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by cday »

xnview wrote: Mon Jan 24, 2022 9:21 am could you send me the file by mail?
XNViewMPUser has indicated, in posts later deleted as redundant, that the files can't be emailed for legal reasons...
XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

xnview wrote: Mon Jan 24, 2022 9:21 am could you send me the file by mail?
There are several free ways to generate a file like the ones causing a problem.
https://ezgif.com/apng-maker is one such place.

I used this web site to generate a very small apng file which I will attach here. This file can't be opened by xnviewmp, and it is in png format.
You do not have the required permissions to view the files attached to this post.
XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

Upon examining the files on the linked image site in notepad, I think they are all .png files that have been renamed to .jpg. Since the apng in .png can't be opened it xnviewmp, it follows that renaming the file to .jpg won't help since the file format is still the same.
It is strange to do this, but please try renaming the uploaded .png file to .jpg to ensure .jpg files (that are actually .png apng format) can also be opened properly.
User avatar
xnview
Author of XnView
Posts: 43098
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce, there is a problem to load APNG.
Pierre.
XNViewMPUser
Posts: 12
Joined: Sun Aug 28, 2016 8:13 am

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by XNViewMPUser »

xnview wrote: Mon Jan 24, 2022 4:15 pm :bugconfirmed: Thanks to your detailed description I can reproduce, there is a problem to load APNG.
Awesome! Thank you for fixing this problem.
User avatar
xnview
Author of XnView
Posts: 43098
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Error: File can't be loaded! Version 0.99.7 64bits (Jan 13 2022)

Post by xnview »

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