There are errors after converting the format

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

alee001
Posts: 122
Joined: Sun Sep 04, 2022 4:43 am

There are errors after converting the format

Post by alee001 »

Recent versions (v1.7.1 Win) often cause errors after converting file formats.

Convert batch files from PNG to JPG format and delete the original files. Some PNG files will still be retained. After trying to delete it (the redundant PNG files), an error occurs (as shown in the picture).

Title: File in use
Content: COM Surrogate has opened this file, so the action cannot be completed. Please close the file and try again.

Can the problem still occur after restarting XnView?
You do not have the required permissions to view the files attached to this post.
User avatar
masterjp
Posts: 454
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: There are errors after converting the format

Post by masterjp »

I think your problem is somewhere else and not a problem of XnviewMP.

Did you do a batch conversion and active the delete function in the dialog or did you delete the source files manually after png to jpg conversion?

Is it possible, that you opened one or more files before you want to convert the whole folder or the selected files?
Maybe the png files are opened in XnviewMP or other program? Then it is possible that they are locked by another program.

I think you opened the one or more files before you start the batch conversion
and then they are locked by the program, which opened it before.

That could be a reason, why the deleting of one or more files did not correctly work.
Maybe you can check it with another folder or copy same png files for testing in a new folder.
It did some conversion jobs with my png files to jpeg format and everything is working perfect.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.2 | XN-View 2.51.7 | XnConvert 1.101.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net
alee001
Posts: 122
Joined: Sun Sep 04, 2022 4:43 am

Re: There are errors after converting the format

Post by alee001 »

masterjp wrote: Sat May 25, 2024 4:41 pm I think your problem is somewhere else and not a problem of XnviewMP.

Did you do a batch conversion and active the delete function in the dialog or did you delete the source files manually after png to jpg conversion?

Is it possible, that you opened one or more files before you want to convert the whole folder or the selected files?
Maybe the png files are opened in XnviewMP or other program? Then it is possible that they are locked by another program.

I think you opened the one or more files before you start the batch conversion
and then they are locked by the program, which opened it before.

That could be a reason, why the deleting of one or more files did not correctly work.
Maybe you can check it with another folder or copy same png files for testing in a new folder.
It did some conversion jobs with my png files to jpeg format and everything is working perfect.
Thank you for your response, of course I know what you said.

I have always used XnView MP in the past and never had this kind of conversion file format error, but after updating to this new version, this problem occurs from time to time (sometimes it is normal)?

Maybe you can try to verify it multiple times...
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: There are errors after converting the format

Post by xnview »

could you describe a way to reproduce this problem?
Pierre.
alee001
Posts: 122
Joined: Sun Sep 04, 2022 4:43 am

Re: There are errors after converting the format

Post by alee001 »

xnview wrote: Sun Jun 02, 2024 8:12 am could you describe a way to reproduce this problem?
1) Select the funding PNG file and press Ctrl+U to convert the format.
2) Convert to JPG and delete original files, set quality to best.
3) After conversion, sometimes one or two pictures appear randomly and still remain as PNG files.
4) After deleting the PNG file, the error dialog shown in the picture appears.
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: There are errors after converting the format

Post by xnview »

could you make a screencast?
Pierre.
alee001
Posts: 122
Joined: Sun Sep 04, 2022 4:43 am

Re: There are errors after converting the format

Post by alee001 »

xnview wrote: Tue Jun 04, 2024 9:04 am could you make a screencast?
I found that the error does not occur often, and the new version may be unstable (it did not happen before), so I can only intercept the error dialog box.
User avatar
xnview
Author of XnView
Posts: 44817
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: There are errors after converting the format

Post by xnview »

alee001 wrote: Tue Jun 04, 2024 12:37 pm new version may be unstable
??
Pierre.
alee001
Posts: 122
Joined: Sun Sep 04, 2022 4:43 am

Re: There are errors after converting the format

Post by alee001 »

xnview wrote: Tue Jun 04, 2024 1:12 pm
alee001 wrote: Tue Jun 04, 2024 12:37 pm new version may be unstable
??
If the above problem does not occur again in the updated version (v1.7.2), then there may be a bug in the previous version (v1.7.1)?
alee001
Posts: 122
Joined: Sun Sep 04, 2022 4:43 am

Re: There are errors after converting the format

Post by alee001 »

After using it for a period of time, I found that version v1.7.2 still occasionally occurs this problem, but it is not as serious as the previous version.