1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

doio
Posts: 19
Joined: Tue Jul 18, 2023 2:01 am

1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by doio »

I am using sorting by Model quite frequently and I can instantly tell when the sorting goes wrong.

On XnView MP 1.4.5 and 1.5.0, the sorting is even slow on SSD and significantly using up CPU resources. Most of the time the sorting will stop on its own and the the list will not be sorted, leaving a column like this:
Sorting_1.5.0_EXTREMELY_SLOW_INCOMPLETE.png
And after a long while, the bar is only running at 5%:
Sorting_1.5.0_VERSION_5_PERCENT_COLUMN_INCOMPLETE.png
The issue is not observed on 1.4.4 and lower versions, and 1.4.4 can finish sorting by Model (with large HEIC files (20MB~1.7MB, 2600 or so files of this kind) within a minute or so.
Sorting_1.4.4_SORTING.png
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

do you have same issues when you have only jpeg or png files?
Pierre.
doio
Posts: 19
Joined: Tue Jul 18, 2023 2:01 am

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by doio »

xnview wrote: Tue Jul 18, 2023 6:47 am do you have same issues when you have only jpeg or png files?
I created another folder that contained only .jpg-, .mov-, and .png-only files (3,632 files in total; 3,162 JPGs with Model data) and run them on 1.4.4 and 1.5.0, and I am seeing the folder gets sorted in a much faster speed. Within a second.

I wonder if there's anything wrong with the HEIF/HEIC library on versions 1.4.5 and 1.5.0? :o
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

Strange. you use 'Sort by name', open the folder with heic files. all is ok. You sort by 'exif date' and you have the delay, right?
The scan of files is finished, on you screenshot i see the progress bar?
Pierre.
doio
Posts: 19
Joined: Tue Jul 18, 2023 2:01 am

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by doio »

xnview wrote: Tue Jul 18, 2023 8:16 am Strange. you use 'Sort by name', open the folder with heic files. all is ok. You sort by 'exif date' and you have the delay, right?
The scan of files is finished, on you screenshot i see the progress bar?
I wouldn't know that because I enter XnView by clicking an image in the folder and double click it to show the file list view and the default sorting method is by Model (Ascending).

I am showing the progress bar to try to show the speed that different versions are sorting the files by Model.

With a folder that only has HEIC files, the sorting on 1.5.0 is so slow to the extent that it almost processes one file at a time, as the progress bar is 0% for 10 seconds and the Model is showing one line after another.

I guess what I am saying is that no matter if you sort by name or Model or EXIF date, as long as 1.4.5 or 1.5.0 reads EXIF data from HEIF/HEIC files which you specified in the columns, the speed will drastically decrease.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

it seems that the sorting is not the problem... Do you use Catalog or Settings>Filelist>Scan header?

Once all file header are readed, sort by EXIF or other is without delay...
Pierre.
doio
Posts: 19
Joined: Tue Jul 18, 2023 2:01 am

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by doio »

xnview wrote: Tue Jul 18, 2023 8:53 am it seems that the sorting is not the problem... Do you use Catalog or Settings>Filelist>Scan header?

Once all file header are readed, sort by EXIF or other is without delay...
Scan file headers are set to always, I turned off Scan header and Catalog and updated to 1.5.0 just now to see if it's fixed but... If the scan headers are set to never, the viewer will not even load or show Info/Model/EXIF Date Taken... Thus the sorting with Model/EXIF Date Taken will never complete.

I have attached a couple of videos, respectively, to show you how slow this is on 1.5.0 comparing to 1.4.4: (With Catalog on, Scan Header set to Always, the only difference I can think of is the installed version.)

https://vimeo.com/846188257

https://vimeo.com/846188222
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

doio wrote: Tue Jul 18, 2023 9:02 am Scan file headers are set to always, I turned off Scan header and Catalog and updated to 1.5.0 just now to see if it's fixed but... If the scan headers are set to never, the viewer will not even load or show Info/Model/EXIF Date Taken... Thus the sorting with Model/EXIF Date Taken will never complete.
yes must be on
I have attached a couple of videos, respectively, to show you how slow this is on 1.5.0 comparing to 1.4.4: (With Catalog on, Scan Header set to Always, the only difference I can think of is the installed version.)
Please send me some heic sample files & your xnview.ini?
Pierre.
doio
Posts: 19
Joined: Tue Jul 18, 2023 2:01 am

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by doio »

xnview wrote: Tue Jul 18, 2023 9:16 am
doio wrote: Tue Jul 18, 2023 9:02 am Scan file headers are set to always, I turned off Scan header and Catalog and updated to 1.5.0 just now to see if it's fixed but... If the scan headers are set to never, the viewer will not even load or show Info/Model/EXIF Date Taken... Thus the sorting with Model/EXIF Date Taken will never complete.
yes must be on
I have attached a couple of videos, respectively, to show you how slow this is on 1.5.0 comparing to 1.4.4: (With Catalog on, Scan Header set to Always, the only difference I can think of is the installed version.)
Please send me some heic sample files & your xnview.ini?
PM'd and sent to you.

Really hope this gets fixed...
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.5.1. Please check and confirm the bug fix here.
Pierre.
doio
Posts: 19
Joined: Tue Jul 18, 2023 2:01 am

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by doio »

xnview wrote: Wed Jul 19, 2023 2:05 pm This problem is supposed to be fixed in XnView MP 1.5.1. Please check and confirm the bug fix here.
This is highly unexpected but... 1.5.1 crashed when I was trying to open an HEIC file... I noticed three crash dumps located in AppData/Local/CrashDumps and zipped it for your reference, it they help at all.
XnViewMP-1.5.1_CrashDumps.rar
(1.86 MiB) Downloaded 66 times
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

doio wrote: Thu Jul 20, 2023 4:10 am
xnview wrote: Wed Jul 19, 2023 2:05 pm This problem is supposed to be fixed in XnView MP 1.5.1. Please check and confirm the bug fix here.
This is highly unexpected but... 1.5.1 crashed when I was trying to open an HEIC file... I noticed three crash dumps located in AppData/Local/CrashDumps and zipped it for your reference, it they help at all.

XnViewMP-1.5.1_CrashDumps.rar
Each time that you try to load an heic file, you have the crash?? with 1.5.1 x64bits?
Pierre.
doio
Posts: 19
Joined: Tue Jul 18, 2023 2:01 am

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by doio »

xnview wrote: Thu Jul 20, 2023 6:17 am
doio wrote: Thu Jul 20, 2023 4:10 am
xnview wrote: Wed Jul 19, 2023 2:05 pm This problem is supposed to be fixed in XnView MP 1.5.1. Please check and confirm the bug fix here.
This is highly unexpected but... 1.5.1 crashed when I was trying to open an HEIC file... I noticed three crash dumps located in AppData/Local/CrashDumps and zipped it for your reference, it they help at all.

XnViewMP-1.5.1_CrashDumps.rar
Each time that you try to load an heic file, you have the crash?? with 1.5.1 x64bits?
Yep, that’s the version and arch (installer). Tried around five HEIC files and gave up (T▽T)
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 and up: Sorting by EXIF data (Model) is really slow and most of the time fails

Post by xnview »

which file size for Plugins\heif.dll? please send me a sample file?
Pierre.
Post Reply