How to stop bak files being created

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

Bob_in_MA
Posts: 19
Joined: Thu May 05, 2022 2:58 pm

Re: How to stop bak files being created

Post by Bob_in_MA »

Thanks, Pierre!
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to stop bak files being created

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.4.0. Please check and confirm the bug fix here.
Pierre.
malletp
Posts: 42
Joined: Fri Oct 14, 2022 1:34 pm

Re: How to stop bak files being created

Post by malletp »

Hello

With XnViewMP 1.4.2 (on windows 11), I have a problem similar to the description of that post.


Settings/General/File operations
  • Make backup for lossless flip/rotation : not checked
  • Make backup for lossless crop : not checked
  • Make backup for other lossless operations : not checked
Settings/Metadata
  • Export catalog's category to XMP subjetct and IPTC Keywords : Checked
    • Create XMP data : Checked
    • Create IPTC data : Checked
  • Automatically apply parent category : Checked

Description of the problem
The problem occurs when I add or remove category (and so XMP et IPTC data) to an important quantity of pictures.
  • I use "Categories Filter" pannel and I display all pictures that have the category "Toto" : 4000 pictures.
  • I select 1 picture and I remove "Toto" Category with Categories Pannel => No .bak file => OK for me
  • I select 14 pictures and I remove "Toto" Category with Categories Pannel => No .bak file => OK for me
  • I select 300 pictures and I remove "Toto" Category with Categories Pannel => 1 .bak file created => I dont' understand
  • I select 2300 pictures and I remove "Toto" Category with Categories Pannel => 116 .bak files created (>600 Mo) => I dont' understand
  • etc ...
Another problem :
  • I use "Categories Filter" pannel and I display all pictures that have the category "Blabla" : more than 6000 pictures.
  • I select all the pictures (CTRL+A) and I remove "Blabla" Category with Categories Pannel (it creates a lot of .bak files as described previously)
  • In the "Categories Filter" pannel XnViewMP indicates that 0 picture still have "Blabla" Category
  • I clean and rebuild my catalog (Settings/Catalog/Delete all + Optimize + OK + Close XnViewMP + Open XnViewMP + Settings/Catalog/Import Folder ...)
  • In the "Categories Filter" pannel XnViewMP indicates that several hundreds pictures still have the categorie "Blabla" => It seems to miss some category removing when doing it on an important number of pictures.
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to stop bak files being created

Post by xnview »

files are jpeg? you can only reproduce on large list?
Pierre.
malletp
Posts: 42
Joined: Fri Oct 14, 2022 1:34 pm

Re: How to stop bak files being created

Post by malletp »

All my files are jpg.

For the moment I only observe this problem when I work on large list (more than 200) but for me it is the case most of time.
When I try with small number of pictures it seems to be OK for the moment.
malletp
Posts: 42
Joined: Fri Oct 14, 2022 1:34 pm

Re: How to stop bak files being created

Post by malletp »

Hello, I don't know if I do something wrong but the problem of .bak files is really annoying and systematic.
Here are some tests I did yesterday.

For all the following : Files are Jpg and I did nothing except what I describe below.
Settings are :
  • no backup for lossless flip/rotation, no backup for lossless crop, no backup for other lossless operations
  • Export catalog's category to XMP subjetct and IPTC Keywords : YES, Create XMP data : YES, Create IPTC data : YES

XnViewMP 1.4.2 :
  • Initial sate
    • I open Windows File Explorer and I look for all the files having the extension .bak in my "Pictures" folder : 0
  • Adding Category
    • In "Categories Filter" pannel, I display all pictures that already have the category "reference" : 13000 pictures.
    • I wait progression bar to reach 100%
    • I select all the 13000 pictures (CTRL+A)
    • With "Categories" Pannel, I click to add a new "test_1" category to all the selected pictures (then I wait)
    • When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that 13000 pictures ares linked to the "test_1" Category : OK for me
    • In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 2233 files (7,45 Go) : Not OK for me
  • Changing XnViewMP version
    • I clean my catalog (See details below)
    • I uninstall XnViewMP 1.4.2 and I install older version XnViewMP 1.4.0
    • In Windows File Explorer, I delete all the 2233 files having the extension .bak in my "Pictures" folder

XnViewMP 1.4.0 :
  • Initial sate
    • I rebuild my catalog (See details below)
    • In "Categories Filter" pannel, XnViewMP indicates that 10767 pictures ares linked to the "test_1" Category (instead of 13000 before cleaning catalog with XnViewMP 1.4.2) : Not OK for me
    • In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 0
  • Adding Category
    • In "Categories Filter" pannel, I display all pictures that already have the category "reference" : 13000 pictures.
    • I wait progression bar to reach 100%
    • I select all the 13000 pictures (CTRL+A)
    • With "Categories" Pannel, I click to add a new "test_2" category to all the selected pictures (then I wait)
    • When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that 13000 pictures ares linked to the "test_2" Category : OK for me
    • In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 1726 files (5,87 Go) : Not OK for me
  • Changing XnViewMP version
    • I uninstall XnViewMP 1.4.0 and I install new available version XnViewMP 1.4.3
    • In Windows File Explorer, I delete all the 1726 files having the extension .bak in my "Pictures" folder

XnViewMP 1.4.3 :
  • Initial sate
    • I clean my catalog (See details below)
    • I rebuild my catalog (See details below)
    • In "Categories Filter" pannel, XnViewMP indicates that 10767 pictures ares linked to the "test_1" Category which is the same result as previously (after rebuilding catalog with XnViewMP 1.4.0) but not the same as the 13000 that it should have been (when I clicked to add "test_1" category with XnViewMP 1.4.2) : Not OK for me
    • In "Categories Filter" pannel, XnViewMP indicates that 11478 pictures ares linked to the "test_2" Category (instead of 13000 before cleaning catalog with XnViewMP 1.4.0) : Not OK for me
    • In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 0
  • Removing Category
    • In "Categories Filter" pannel, I display all pictures that already have the category "test_1" : 10767 pictures.
    • I wait progression bar to reach 100%
    • I select all the 10767 pictures (CTRL+A)
    • With "Categories" Pannel, I click to remove the "test_1" category to all the selected pictures (then I wait)
    • When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that no picture is linked to the "test_1" Category : OK for me
    • In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 2053 files (6,49 Go) : Not OK for me
  • Adding Category
    • In Windows File Explorer, I delete all the 2053 files having the extension .bak in my "Pictures" folder
    • In "Categories Filter" pannel, I display all pictures that already have the category "reference" : 13000 pictures.
    • I wait progression bar to reach 100%
    • I select all the 13000 pictures (CTRL+A)
    • With "Categories" Pannel, I click to add the "test_1" category to all the selected pictures (then I wait)
    • When operation is finished, In "Categories Filter" pannel, XnViewMP indicates that 13000 pictures ares linked to the "test_1" Category : OK for me
    • In Windows File Explorer, I look for all the files having the extension .bak in my "Pictures" folder : 718 files (2,83 Go) : Not OK for me
    • I clean my catalog (See details below)
    • I rebuild my catalog (See details below)
    • In "Categories Filter" pannel, XnViewMP indicates that 12397 pictures ares linked to the "test_1" Category : Not OK for me




Clean catalog
  • Settings/Catalog : click on Delete all
  • Settings/Catalog :click on Optimize with all boxes checked
  • Click OK and close Settings
  • Close XnViewMP
Rebuild catalog
  • Open XnViewMP
  • Settings/Catalog : click on Import Folder
  • Select Pictures folder and wait a long time the import process to finish
malletp
Posts: 42
Joined: Fri Oct 14, 2022 1:34 pm

Re: How to stop bak files being created

Post by malletp »

xnview wrote: Sun Feb 26, 2023 2:21 pm files are jpeg? you can only reproduce on large list?
I've just done the same kind of actions with 114 pictures and XnView create 1 file with extension .bak (XnViewMP 1.4.3).
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to stop bak files being created

Post by xnview »

i've tried with 3000 files but can't reproduce. All files are in the same folder? You click outside thumbnails to apply category changes?
Pierre.
malletp
Posts: 42
Joined: Fri Oct 14, 2022 1:34 pm

Re: How to stop bak files being created

Post by malletp »

xnview wrote: Wed Mar 01, 2023 11:09 am i've tried with 3000 files but can't reproduce. All files are in the same folder?
In all my previous messages, files were not in the same folder but they were displayed together as result of a research.
After your message, I tried to affect a category to 3000 pictures in the same folder and it creates 173 files with .bak extension.
xnview wrote: Wed Mar 01, 2023 11:09 am You click outside thumbnails to apply category changes?
Yes. I select all thumbnails, I apply the category by clicking in Categories Panel, then I click outside thumbnails to apply category changes (and IPTC/XMP export in my case).

I don't know how to be more precise because it is very easy to reproduce for me: files .bak are created all the time :(
Maybe something is wrong in my settings but I don't see what.
User avatar
xnview
Author of XnView
Posts: 44885
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: How to stop bak files being created

Post by xnview »

please send me your xnview.ini?
Pierre.