Random suspend when deleting a file

Discussion related to "Everything" 1.5 Alpha.
Post Reply
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Random suspend when deleting a file

Post by NottMee »

Hello there! First of all, thanks for the great app!
I've been using Everything for almost 10 years. It works always well und helps me a lot.

In the recent versions(maybe since 1.5.0.1340), it has been a bug around.

When I try to delete a file, Everything will randomly suspend (no response).
Then I must terminate the process and run Everything again, but the suspend doesn't happen 100% when deleting, it's very strange.

If you need, I've got a .dmp file generated by ProcessExplorer when it suspends, but I don't know if I should send it as a attachment or per Email. Is there any private informations in the .dmp file?

Thanks in advance for the help!
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Random suspend when deleting a file

Post by therube »

void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: Random suspend when deleting a file

Post by void »

Is there any private informations in the .dmp file?
A full dump would contain all your filenames. (hundreds of MB)

A mini crash dump will only contain a small snapshot which includes the stack. (<10 MB)
The stack may contain a couple filenames from your system that Everything may currently be processing.
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

therube wrote: Tue Jun 27, 2023 8:24 pm Mini crash dump
thx for the info.
void wrote: Tue Jun 27, 2023 10:34 pm
Is there any private informations in the .dmp file?
A full dump would contain all your filenames. (hundreds of MB)

A mini crash dump will only contain a small snapshot which includes the stack. (<10 MB)
The stack may contain a couple filenames from your system that Everything may currently be processing.
I've created a Minidump according to the instructions and sended it to support@voidtools.com
It doesn't happen everytime I delete, but comes out almost every hour.
I even have to make a one-click-script to terminate & restart Everything.
I hope you can find the problem.
void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: Random suspend when deleting a file

Post by void »

Thank you for the mini crash dump.

The dump shows Everything calling SHFileOperation.
The system call SHFileOperation is hanging. (deadlocked)

SHFileOperation is an old API.
Everything will try to use IFileOperation when available.

It's odd Everything is not using IFileOperation for you.
What version of Windows are you using?
Have you disabled Tools -> Options -> Advanced -> file_operation? (please make sure it's set to true)
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

Thanks for the reply.
I'm using Win11 x64 22H2 and "file_operation" was set to true as default.
Here is the debug log until Everything hangs when I delete a file.
I hope it helps and thanks for your work.
IFileOperation::PerformOperations
Last edited by void on Fri Jun 30, 2023 11:58 pm, edited 1 time in total.
Reason: trimmed log
void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: Random suspend when deleting a file

Post by void »

Thank you for the debug logs.

From the dumps and logs, it looks like Everything does use IFileOperation most of the time.
The hang occurs when an instance of IFileOperation fails to be created and Everything falls back to SHFileOperation.

I will add more information to the logs to try to work out why this might occur..
I'll report back here once this is ready for testing.
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

void wrote: Sat Jul 01, 2023 12:43 am Thank you for the debug logs.

From the dumps and logs, it looks like Everything does use IFileOperation most of the time.
The hang occurs when an instance of IFileOperation fails to be created and Everything falls back to SHFileOperation.

I will add more information to the logs to try to work out why this might occur..
I'll report back here once this is ready for testing.
thanks, hope it will soon get fixed
void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: Random suspend when deleting a file

Post by void »

Everything 1.5.0.1352a adds a sh_file_operation ini setting.

Everything 1.5.0.1352a also adds more debugging information on IFileOperation failures.

Could you please send debug logs with this version:
  • In Everything, from the Tools menu, under the Debug submenu, check Console.
    ---this will show a debug console---
    ---wait for Everything to hang---
  • Right click the debug console window title bar
  • Under the Edit menu, click Select All.
  • Right click the selected text to copy it to the clipboard.
  • Please paste the debug output in your reply.
Privacy



To prevent Everything from calling SHFileOperation (which appears to be causing the issue in your case):
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    sh_
  • Select sh_file_operation.
  • Set the value to: false
  • Click OK.
Everything should now silently fail instead of hang.
w64bit
Posts: 252
Joined: Wed Jan 09, 2013 9:06 am

Re: Random suspend when deleting a file

Post by w64bit »

Is it suitable to disable/remove entirely SHFileOperation in Everything?
Asking just theoretically.
void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: Random suspend when deleting a file

Post by void »

IFileOperation only exists on Vista+
XP and earlier will depend on SHFileOperation.

I will like to keep SHFileOperation for XP support.

Everything will only use SHFileOperation if IFileOperation does not exist or fails.
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

void wrote: Fri Jul 07, 2023 6:14 am Everything 1.5.0.1352a adds a sh_file_operation ini setting.

Everything 1.5.0.1352a also adds more debugging information on IFileOperation failures.

Could you please send debug logs with this version:
  • In Everything, from the Tools menu, under the Debug submenu, check Console.
    ---this will show a debug console---
    ---wait for Everything to hang---
  • Right click the debug console window title bar
  • Under the Edit menu, click Select All.
  • Right click the selected text to copy it to the clipboard.
  • Please paste the debug output in your reply.
Privacy



To prevent Everything from calling SHFileOperation (which appears to be causing the issue in your case):
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    sh_
  • Select sh_file_operation.
  • Set the value to: false
  • Click OK.
Everything should now silently fail instead of hang.
thanks for the new version.
I will set the "false" value and pay attention to the debug console to see if the problem still exists or not.
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

void wrote: Fri Jul 07, 2023 6:14 am Everything 1.5.0.1352a adds a sh_file_operation ini setting.

Everything 1.5.0.1352a also adds more debugging information on IFileOperation failures.

Could you please send debug logs with this version:
  • In Everything, from the Tools menu, under the Debug submenu, check Console.
    ---this will show a debug console---
    ---wait for Everything to hang---
  • Right click the debug console window title bar
  • Under the Edit menu, click Select All.
  • Right click the selected text to copy it to the clipboard.
  • Please paste the debug output in your reply.
Privacy

To prevent Everything from calling SHFileOperation (which appears to be causing the issue in your case):
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    sh_
  • Select sh_file_operation.
  • Set the value to: false
  • Click OK.
Everything should now silently fail instead of hang.
I've set sh_file_operation to false, and the suspend comes again.
Here's the debug log, I hope it will help.

Code: Select all

DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waiting for _db_monitor_network_index_process_fd_update_events_thread_proc...
DB_WAIT: _db_monitor_finished_process_fd_update_events_event_proc waited 0.000126 seconds
COMMAND 41005
IFileOperation::PerformOperations
update m 0 000000000490dfe0
update m 2 0000000003ec7dc0
update m 1 0000000003ec6c90
Last edited by NottMee on Sat Jul 08, 2023 10:40 am, edited 1 time in total.
void
Developer
Posts: 16670
Joined: Fri Oct 16, 2009 11:31 pm

Re: Random suspend when deleting a file

Post by void »

Thank you for the logs.

The issue could be caused by the preview handler.

Please try disabling the preview pane (Alt + P) and see if the issue persists.
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

void wrote: Sat Jul 08, 2023 12:39 am Thank you for the logs.

The issue could be caused by the preview handler.

Please try disabling the preview pane (Alt + P) and see if the issue persists.
thx, i will try and test again
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

void wrote: Sat Jul 08, 2023 12:39 am Thank you for the logs.

The issue could be caused by the preview handler.

Please try disabling the preview pane (Alt + P) and see if the issue persists.
The suspend didn't appear again for a whole day after I disabled the preview.
But it becomes very inconvenient :(
Can you fix the bug in the next versions?
Thanks
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Random suspend when deleting a file

Post by NotNull »

Previewing a file should not lock this file.
Windows preview uses a rather complicated mechanism to prevent this (and other stuff)

But not all preview handlers "play nice". You might try changing the preview handler for this type of files.



BTW: Which filetype? And what is the current preview handler?
NottMee
Posts: 19
Joined: Tue Jun 27, 2023 6:43 pm

Re: Random suspend when deleting a file

Post by NottMee »

NotNull wrote: Mon Jul 10, 2023 9:17 pm Previewing a file should not lock this file.
Windows preview uses a rather complicated mechanism to prevent this (and other stuff)

But not all preview handlers "play nice". You might try changing the preview handler for this type of files.



BTW: Which filetype? And what is the current preview handler?
mostly on mp4 files, i'm using Icaros, but sometime also on other file formats
i will find some updates or try another preview handler.

Thanks for the info😀
Post Reply