v1.10.5 Metadata read lag.

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

Moderators: xnview, Dreamer

FKCapitalism2
Posts: 398
Joined: Sun Apr 23, 2023 5:14 am

v1.10.5 Metadata read lag.

Post by FKCapitalism2 »

I am not sure if this is related with huge list of metadata in info panel, but this also happens when i click on the image in thumbnails view so i think its unrelated to info panel.

1. Extract files and double click 01.jpg it opens in full screen,
2. Switch to thumbnails view to show all three files
3. Click with mouse over 02.jpg (phone charger image) - this will trigger the lag for couple seconds, sometimes 5-10 seconds.

Sometimes after initial lag for 5-10 seconds and XnViewMP hanging when i click away from that thumbnail and go back it has zero lag this probably because it updates database so if you can't reproduce problem second time try deleting database.

If can't reproduce at all try my XnViewMP config (also included).

Source files: https://www.upload.ee/files/19245905/Me ... g.zip.html
User avatar
xnview
Author of XnView
Posts: 47669
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.10.5 Metadata read lag.

Post by xnview »

Strange, if you start in browser mode, and click on 2.jpg?
Pierre.
FKCapitalism2
Posts: 398
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.10.5 Metadata read lag.

Post by FKCapitalism2 »

xnview wrote: Mon Apr 13, 2026 12:49 pm Strange, if you start in browser mode, and click on 2.jpg?
Yes as soon as you highlight 2.jpg in browser XnViewMP starts to lag and being frozen and CPU load grows.

I double checked its because of what i put in Info Panel because when i delete everything in Settings > View > Info no more lag, but i am not sure why does Info Panel also affect browser mode.
FKCapitalism2
Posts: 398
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.10.5 Metadata read lag.

Post by FKCapitalism2 »

Checked the more calls to {ExifTool:...} the more lag on some images.

e.g. if you put {ExifTool:MeteringMode} in Info Tab multiple times like 20 times you see lag grows significantly versus using it just one time, i think each request run independently or something and not cached in DB.

For instance this image lags very long time when clicked in viewer or when switching to it using full screen mode with arrow keys (page up / page dn): https://www.upload.ee/files/19249504/lag.zip.html
User avatar
xnview
Author of XnView
Posts: 47669
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.10.5 Metadata read lag.

Post by xnview »

FKCapitalism2 wrote: Tue Apr 14, 2026 1:14 pm e.g. if you put {ExifTool:MeteringMode} in Info Tab multiple times like 20 times you see lag grows significantly versus using it just one time, i think each request run independently or something and not cached in DB.
Do you use exiftool in database?
you can send us the logs (debug=2 in xnview.ini) when you select the file?
Pierre.
jkm
Posts: 480
Joined: Sat May 11, 2024 12:43 am

Re: v1.10.5 Metadata read lag.

Post by jkm »

FKCapitalism2 wrote: Tue Apr 14, 2026 1:14 pm e.g. if you put {ExifTool:MeteringMode} in Info Tab multiple times like 20 times you see lag grows significantly versus using it just one time, i think each request run independently or something and not cached in DB.
It sounds like it's just a matter that you don't have the app configured to store Exiftool metadata in the database.

1. Settings:Metadata Exiftool=ENABLED
2. Settings:Catalog "Update Metadata"
3. Restart app.

For more information, read the "New Features" guide. viewtopic.php?t=50370
jkm wrote: Tue Dec 02, 2025 10:28 am Lastly, if you have this feature turned on, then using {Exiftool:} items in Labels will be instantaneous, since it will pull the information from the database, instead of using exiftool to re-read the information from the files every time you browse a folder.
User avatar
user0
XnThusiast
Posts: 2878
Joined: Sat May 09, 2015 9:37 am

Re: v1.10.5 Metadata read lag.

Post by user0 »

FKCapitalism2 wrote: Tue Apr 14, 2026 1:14 pm e.g. if you put {ExifTool:MeteringMode} in Info Tab multiple times like 20 times you see lag grows significantly versus using it just one time, i think each request run independently or something and not cached in DB.
I can reproduce with any image files
issue disappears if Preview pane is closed

xnview wrote: Tue Apr 14, 2026 4:12 pm Do you use exiftool in database?
you can send us the logs (debug=2 in xnview.ini) when you select the file?
actually there are few issues

A
as OP described above

B
lag also exists with default settings - when Import Exiftool values is OFF in Settings>Metadata
in this case all {ExifTool:..} tags should be ignored (like in Advanced search)
FKCapitalism2
Posts: 398
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.10.5 Metadata read lag.

Post by FKCapitalism2 »

jkm wrote: Tue Apr 14, 2026 5:53 pm It sounds like it's just a matter that you don't have the app configured to store Exiftool metadata in the database.

1. Settings:Metadata Exiftool=ENABLED
2. Settings:Catalog "Update Metadata"
3. Restart app.
Thanks for info, however this fixes the problem for full screen view only, after pressing "update metadata" it does not lag in full screen view anymore. For thumbnail/browser view lag still exists even after pressing "update metadata".

Also i deleted the whole database and XnViewMP build a new database after opening folder with images, yet i am still forced to press Update Metadata for saving ExifTool metadata in database it does not save automatically when adding new images to database.
user0 wrote: Tue Apr 14, 2026 6:45 pmissue disappears if Preview pane is closed
After disabling "preview panel" in thumbnails mode i don't need to press Update Metadata anymore XnViewMP automatically saves metadata in database now after viewing image in full screen.

Note even with preview panel disabled - every image is open in full screen for a first time it lags significantly and program freezes i assume its because initial ExifTool info read process not optimized.
User avatar
xnview
Author of XnView
Posts: 47669
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.10.5 Metadata read lag.

Post by xnview »

in this case all {ExifTool:..} tags should be ignored (like in Advanced search)
i don't think
FKCapitalism2 wrote: Tue Apr 14, 2026 7:54 pm Thanks for info, however this fixes the problem for full screen view only, after pressing "update metadata" it does not lag in full screen view anymore. For thumbnail/browser view lag still exists even after pressing "update metadata".
You have now Exiftool fields in database, you select a file in browser and you have the lag with 20 {ExifTool:..} fields in Settings>View>Info ?
Also i deleted the whole database and XnViewMP build a new database after opening folder with images, yet i am still forced to press Update Metadata for saving ExifTool metadata in database it does not save automatically when adding new images to database.
Do you have a way to reproduce?
Note even with preview panel disabled - every image is open in full screen for a first time it lags significantly and program freezes i assume its because initial ExifTool info read process not optimized.
yes, the first time Exiftool needs to be started
Pierre.
jkm
Posts: 480
Joined: Sat May 11, 2024 12:43 am

Re: v1.10.5 Metadata read lag.

Post by jkm »

This bit is notable:
FKCapitalism2 wrote: Tue Apr 14, 2026 7:54 pm Also i deleted the whole database and XnViewMP build a new database after opening folder with images, yet i am still forced to press Update Metadata for saving ExifTool metadata in database it does not save automatically when adding new images to database.
First, verify the Exiftool box is checked in Settings:Metadata. (It needs to be checked if you expect Exiftool data to work.) If it is, then...

If you are still having this problem, where the exiftool data is not updating when adding new images, then don't try to "fix" it. Instead:

1. Close the App.
2. Zip up a copy of your db files and your ini file, together with at least some of the files that don't get their exiftool info, and make that available to Pierre.
3. Document the specific path where the files are not getting updated.

Your configuration needs to be examined in its broken state.

Once that is done, restart the app and do Settings:Catalog:Maintenance, with Optimize database and all the Clean Up options checked. (Purge options NOT checked).

When that is complete, you can go to the files missing the metadata and do an "update metadata from files" to populate for those files.

After that, see if the problem of missing exiftool data when adding new files is magically fixed. If it is, repeat the archive procedure above and make the "working" db and ini files available to Pierre as well, so he can compare.

Also pay attention if the problem occurs in the future. It would be helpful if you can establish any pattern for when it occurs.
FKCapitalism2
Posts: 398
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.10.5 Metadata read lag.

Post by FKCapitalism2 »

xnview wrote: Wed Apr 15, 2026 1:15 pm
FKCapitalism2 wrote: Tue Apr 14, 2026 7:54 pm Thanks for info, however this fixes the problem for full screen view only, after pressing "update metadata" it does not lag in full screen view anymore. For thumbnail/browser view lag still exists even after pressing "update metadata".
You have now Exiftool fields in database, you select a file in browser and you have the lag with 20 {ExifTool:..} fields in Settings>View>Info ?
I do not know what exactly causes the lag upon first time reading the {ExifTool:..} fields, but from my observation more {ExifTool:..} fields i use in info panel the longer XnViewMP lags, so i assume its doing each {ExifTool:..} request as separate ExifTool.exe instance, but its just a guess.
User avatar
xnview
Author of XnView
Posts: 47669
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.10.5 Metadata read lag.

Post by xnview »

and do you reproduce
Also i deleted the whole database and XnViewMP build a new database after opening folder with images, yet i am still forced to press Update Metadata for saving ExifTool metadata in database it does not save automatically when adding new images to database.
Pierre.
FKCapitalism2
Posts: 398
Joined: Sun Apr 23, 2023 5:14 am

Re: v1.10.5 Metadata read lag.

Post by FKCapitalism2 »

xnview wrote: Thu Apr 16, 2026 6:21 am and do you reproduce
Also i deleted the whole database and XnViewMP build a new database after opening folder with images, yet i am still forced to press Update Metadata for saving ExifTool metadata in database it does not save automatically when adding new images to database.
Update i can't reproduce the issue anymore in v1.10.5. :? After using clean installation and using my old XnView.ini it, database update is instantaneous when opening folder with images in thumbnail/browser view mode and it saves ExifTool entries to database properly, when i open images full screen and browse them one by one, there is no lag on any of the four images.

Only bug i can reproduce even though {ExifTool:..} tags saved to database properly. In thumbnail/browser mode XnViewMP lags substantially when selecting thumbnail of image 02.jpg and 04.jpg and this is related to having many {ExifTool:..} tags in Settings > View > Info.

Which is not normal because Settings > View > Info panel values are not shown in thumbnail/browser mode so they should not affect thumbnail/browser mode at all.

Source files: https://www.upload.ee/files/19254578/La ... n.zip.html
User avatar
xnview
Author of XnView
Posts: 47669
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.10.5 Metadata read lag.

Post by xnview »

FKCapitalism2 wrote: Thu Apr 16, 2026 6:39 am Only bug i can reproduce even though {ExifTool:..} tags saved to database properly. In thumbnail/browser mode XnViewMP lags substantially when selecting thumbnail of image 02.jpg and 04.jpg and this is related to having many {ExifTool:..} tags in Settings > View > Info.

Which is not normal because Settings > View > Info panel values are not shown in thumbnail/browser mode so they should not affect thumbnail/browser mode at all.
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 47669
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: v1.10.5 Metadata read lag.

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.