Preview is slow (on a sleeping drive)

General discussion related to "Everything".
Post Reply
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Preview is slow (on a sleeping drive)

Post by therube »

Preview is slow (on a sleeping drive)


(just noting...)


on a "sleeping" drive
Preview can be very slow to show said Preview

i.e., clicking on the file will open the file, displaying as expected,
far before, seconds before, Preview displays the same
- no big deal, but odd, at that


(at least i assume the drive is sleeping, HDD [spinner] spun down,
otherwise there would be no reason for such a delay)
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Preview is slow (on a sleeping drive)

Post by void »

The preview handler must fail, then retry after one second?

Debug logs might help show what is happening:
  • In Everything, from the Tools menu, under the Debug submenu, check Start Debug Logging.
  • Open a preview on a drive that is sleeping
  • Wait for the preview to show.
  • In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging.
    The Everything Debug Log will open in Notepad.
  • Please save this file to the Desktop and send to support@voidtools.com
It will be interesting to see where the delay is when loading the preview..
therube
Posts: 4610
Joined: Thu Sep 03, 2009 6:48 pm

Re: Preview is slow (on a sleeping drive)

Post by therube »

(It took me forever, without specifically trying to force things, to catch this.)

- SLOW load of thumbnail from sleeping drive (i suppose it was sleeping)
- slow, to display (in Everything as a thumbnail), compared to double-click
open (into) IrfanView - seconds time diff between IV opening the picture
& the time before Everything thumbnail showed up
- particular file (.bmp) is large, as it is, 24,556,086 bytes

Code: Select all

disconnected from service
Everything: 1.5.0.1360a (x86)
OS: Windows NT 6.1 7601 (x64)
Admin: 0
Service: 6 (connected / partially installed)
Command line: -instance PICTURES
Binary: C:\DEV\Locate\PICTURES\Everything.exe
Profile: C:\DEV\Locate\PICTURES\Everything-PICTURES.ini
Database: C:\DEV\Locate\PICTURES\Everything-PICTURES.db
Instance: PICTURES
Config: match_path=1
Config: ignore_punctuation=1
Config: show_mouseover=0
Config: dupe_group_colors=1
Config: group_lines=1
Config: group_colors=1
Config: highlight_max_or_paths=256
Config: zoom=134
Config: statusbar_selected_item_format=$o items | Size: $s | $m | $p
Config: auto_include_fixed_volumes=0
Config: auto_move_ntfs_volumes=0
Config: auto_move_refs_volumes=0
Config: auto_move_fat_volumes=0
Config: find_first_file_path_not_found_retry_timeout=30000
Config: icon_blend_hidden=1
Config: thumbnail_medium_text_lines=3
Config: thumbnail_large_text_lines=2
Config: open_many_files_warning_threshold=9
Config: set_foreground_window_attach_thread_input=0
Config: snap_toggle_on_shift=1
Config: rename_overwrite=1
Config: keep_result_focus_in_view=0
Config: tabs_high=22
Config: allow_literal_operators=1
Config: convert_forward_slash_to_backslash=1
Config: match_whole_filename_when_using_wildcards=0
Config: operator_precedence=1
Config: size_format=1
Config: size_number_format=4
Config: ellipsis=0
Config: jump_to_timeout=99999
Config: folder_rescan_timeout=60000
Config: find_and_select_clear_selection=0
Config: find_and_select_select_folders=0
Config: find_and_select_select_files=0
Config: context_menu_parent_folder=1
Config: custom_open_command01=$exec("C:\BIN\XXhash64.BAT" %*)
Config: custom_open_command02=$exec("C:\BIN\i_view32.exe" %* /thumbs)
Config: custom_open_command03=$exec("C:\DEV\WinMerge\WinMergeU.exe" %*)
Config: custom_open_command04=$exec("C:\BIN\I_View-THUMBS.bat" %*)
Config: custom_open_command05=$exec("C:\WLIB\PLAYERS\mpv.net\mpvnet.exe" %*)
Config: filter=PICTURE
Config: preview_icon=1
Config: findbar_highlight_all=0
Config: search_history_always_suggest=1
Config: ntfs_volumes=[{"path":"C:"...
Config: properties=[{"name":"SHA-1","include_only_files":"*.ani;*.apng;*.bmp;*.b
pg;*.cur;*.gif;*.ico;*.jfi;*.jfif;*.jif;*.jpe;*.jpeg;*.jpg;*.pcx;*.png;*.psb;*.p
sd;*.rle;*.svg;*.tga;*.tif;*.tiff;*.webp;*.wmf"}]
SetActiveWindow failed 00000000
WM_ACTIVATE 00000000 00000000, lastfocus 2a181108, current focus 2a181108, curre
nt foreground 079f3970
WM_ACTIVATE MINIMIZED 0
WM_ACTIVATE 00000001 00000000, lastfocus 2a181108, current focus 00000000, curre
nt foreground 00472f44
WM_ACTIVATE MINIMIZED 0
FOCUS 0
FOCUS restore 2a181108
FOCUS restore 2a181108
COMMAND 41000
exec: first expr $exec("%1")
exec: command $exec("%1")
exec: fullfilename H:\_GAIL\Wallpaper1.bmp
exec: depth 0
exec: exec "%1")
exec: depth 1
exec: got "H:\_GAIL\Wallpaper1.bmp"
exec: shellexecute file:H:\_GAIL\Wallpaper1.bmp param:
shellexecute invoke H:\_GAIL\Wallpaper1.bmp
sub buf killed
set 1 run history in 0.000178 seconds
exec: main thread regained focus
update m 2 09dce828
update index H:
USN OBJECT_ID_CHANGE _GAIL
read usn journal H: in 0.001758 seconds
WM_ACTIVATE 00000000 00000000, lastfocus 2a181108, current focus 2a181108, curre
nt foreground 05ce2358
WM_ACTIVATE MINIMIZED 0
update m 1 0bd6e828
updated H: in 0.030016 seconds
resume ntfs monitor 2
processed 1 usn records in 0.000030 seconds
update index E:
DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waiting for _d
b_monitor_ntfs_process_fd_update_events_thread_proc...
USN BASIC_INFO_CHANGE 1b4dd67f29cb1962.automaticDestinations-ms
DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waited 0.00162
3 seconds
USN BASIC_INFO_CHANGE DATA_OVERWRITE 1b4dd67f29cb1962.automaticDestinations-ms
USN BASIC_INFO_CHANGE CLOSE DATA_OVERWRITE 1b4dd67f29cb1962.automaticDestination
s-ms
USN CREATE Wallpaper1.bmp.lnk
USN DATA_EXTEND CREATE Wallpaper1.bmp.lnk
USN CLOSE DATA_EXTEND CREATE Wallpaper1.bmp.lnk
USN CLOSE DELETE out15-00.00.00.000-00.05.07.000-seg1.webm.lnk
USN CREATE _GAIL.lnk
USN DATA_EXTEND CREATE _GAIL.lnk
USN CLOSE DATA_EXTEND CREATE _GAIL.lnk
USN CLOSE DELETE _from_160-c-P2-uvwxyz.lnk
read usn journal E: in 0.004728 seconds
updated E: in 0.000170 seconds
resume ntfs monitor 1
processed 1 usn records in 0.000086 seconds
DB_WAIT: _db_journal_notification_event_proc waiting for _db_monitor_ntfs_proces
s_fd_update_events_thread_proc...
DB_WAIT: _db_journal_notification_event_proc waited 0.000765 seconds
processed 7 usn records in 0.000221 seconds
DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waiting for _d
b_monitor_ntfs_process_fd_update_events_thread_proc...
DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waited 0.00033
4 seconds
update m 0 0cd3ee48
update index C:
USN DATA_OVERWRITE i_view32.ini
USN DATA_OVERWRITE DATA_TRUNCATION i_view32.ini
USN CLOSE DATA_OVERWRITE DATA_TRUNCATION i_view32.ini
read usn journal C: in 0.001260 seconds
updated C: in 0.000062 seconds
resume ntfs monitor 0
processed 2 usn records in 0.000100 seconds
DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waiting for _d
b_monitor_ntfs_process_fd_update_events_thread_proc...
DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waited 0.00010
3 seconds
SHCNE 00040000
update m 2 09dce828
update index H:
USN OBJECT_ID_CHANGE Wallpaper1.bmp
USN CLOSE OBJECT_ID_CHANGE Wallpaper1.bmp
read usn journal H: in 0.000792 seconds
updated H: in 0.000161 seconds
resume ntfs monitor 2
POST _db_indexed_property_request_available_event_proc
processed 1 usn records in 0.001005 seconds
_db_indexed_property_request_available_event_proc 0
DB_WAIT: _db_indexed_property_request_available_event_proc waiting for _db_monit
or_ntfs_process_fd_update_events_thread_proc...
DB_WAIT: _db_indexed_property_request_available_event_proc waited 0.000181 secon
ds
indexed property request session created 1
new results 982509
_db_indexed_property_request_available_event_proc 0
WM_ACTIVATE 00000001 00000000, lastfocus 2a181108, current focus 00000000, curre
nt foreground 00472f44
WM_ACTIVATE MINIMIZED 0
FOCUS 0
FOCUS restore 2a181108
FOCUS restore 2a181108
WM_ACTIVATE 00000000 00000000, lastfocus 2a181108, current focus 2a181108, curre
nt foreground 05ce2358
WM_ACTIVATE MINIMIZED 0
loaded preview in 27.354885 seconds
got preview handler from ext H:\_GAIL\Wallpaper1.bmp 0
loaded preview in 0.502087 seconds
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: Preview is slow (on a sleeping drive)

Post by void »

Thank you for the logs therube,

The issue is caused by the previewing of the file before you selected Wallpaper1.bmp

Everything was still loading the preview for the previously selected file.
The loading took 27 seconds.
Selecting another file will not cancel this loading.
Everything must wait for the last preview to complete before starting a new preview.

I have put on my TODO list to cancel the current preview when selecting a new file.
(difficult to do as the Windows APIs I am currently using don't support cancelling)
Post Reply