Everything crashes (related to SageThumbs.dll ?)

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

My C: drive was full when I logged in. Search Everything (SE) crashed and its window disappeared. Even though I have cleared about 20 GB of space on my system drive, SE still crashes:
  • Start SE
  • SE displays "Loading database", then "Updating dabatase".
  • It then populates its default file list and shows the number of files in the status bar.
  • Then crashes without user intervention.
  • If I activate the debug mode console, it unfortunately disappears when the main window does the same.
Event Viewer shows:

Code: Select all

Faulting application name: Everything.exe, version: 1.4.1.935, time stamp: 0x5c57c179
Faulting module name: SageThumbs.dll, version: 2.0.0.23, time stamp: 0x59117264
Exception code: 0xc0000409
Fault offset: 0x0000000000029c23
Faulting process id: 0x1d48
Faulting application start time: 0x01d4cf8c3097863d
Faulting application path: C:\Program Files\_File\Everything\Everything.exe
Faulting module path: C:\Program Files (x86)\_UI\SageThumbs\64\SageThumbs.dll
Report Id: 255c0b58-f415-4561-96a8-68fb75979194
Faulting package full name: 
Faulting package-relative application ID: 
What's my next step? Thanks.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by NotNull »

Your database (Everything.db) might be corrupted. Delete it and start Everything again. That will build a fresh database.

1. Make sure Everything isn't running:
- right-click the Everything icon in the system tray (if available) and choose Exit.

2. Delete Everything.db.
Depending on your settings, most likely places are either in the folder where Everything.exe is located or in your profile (c:\users\blaq\AppData\Local\Everything\everything.db)


If that doesn't fix the issue: The files on your harddisk might be corrupted.
To anayze/fix this:
- right-click C:\ in File Explorer
- Choose properties
- Activate the Tools tab
- Click Check
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by void »

Do you have Everything in thumbnail view? (View -> Thumbnails or View -> Details?)

Please try disabling thumbnails in Everything:
  • Complete exit Everything (right click the Everything system tray icon and click Exit)
  • Open your %APPDATA%\Everything\Everything.ini
  • Change the following line:
    icons_only=0
    to:
    icons_only=1
  • Save changes and restart Everything.
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

Thanks for the suggestions; I'll know where to look for them if Everything crashes in the future. Right now, Everything works fine. (I did reboot)

Thanks again for your help.
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

I followed your advice:
  • With Everything not running, I deleted everything.db.
  • With Everything not running, I disabled thumbnails.
  • I scanned the C drive; it came up clean.
  • I even uninstalled and reinstalled Everything.
I still get occasional crashes, with Event Viewer displaying:

Code: Select all

Faulting application name: Everything.exe, version: 1.4.1.935, time stamp: 0x5c57c179
Faulting module name: SageThumbs.dll, version: 2.0.0.23, time stamp: 0x59117264
Exception code: 0xc0000409
Fault offset: 0x0000000000029c23
Faulting process id: 0x4080
Faulting application start time: 0x01d504287465701e
Faulting application path: C:\Program Files\_File\Everything\Everything.exe
Faulting module path: C:\Program Files (x86)\_UI\SageThumbs\64\SageThumbs.dll
Report Id: 4f3915d2-02ba-4379-93be-14c99149811d
Faulting package full name: 
Faulting package-relative application ID: 
Both Everything and SageThumbs are up to date. What should I do next?
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by void »

blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

Thanks. I've uninstalled the 64-bit version and installed the 32-bit version. I'll report back if I have any problems, or if I run without crashes for a month.
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

Everything x86 just crashed this morning. Here's the Event Viewer entry:

Code: Select all

Faulting application name: Everything.exe, version: 1.4.1.935, time stamp: 0x5c57c205
Faulting module name: SageThumbs.dll, version: 2.0.0.23, time stamp: 0x59117269
Exception code: 0xc0000409
Fault offset: 0x00023544
Faulting process id: 0x6828
Faulting application start time: 0x01d505231255748a
Faulting application path: C:\Program Files (x86)\_File\Everything\Everything.exe
Faulting module path: C:\Program Files (x86)\_UI\SageThumbs\32\SageThumbs.dll
Report Id: fadf0541-2b10-4663-b37a-b3ede61924b6
Faulting package full name: 
Faulting package-relative application ID: 
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by void »

Thanks for the reply.

sagethumbs.dll is still crashing Everything.

I've disabled icons and thumbnails in Everything 1.4.1.942 if you would like to give that a try:
https://www.voidtools.com/Everything-1.4.1.942.x64.zip
https://www.voidtools.com/Everything-1.4.1.942.x86.zip


To run this build:
  • Completely exit Everything (right click the Everything system tray icon and click Exit).
  • Open the Task Manager with Ctrl + Shift + ESC.
  • Click the Services tab.
  • Select Everything (if it exists), right click Everything and click Stop Service.
  • Overwrite your existing Everything.exe with one of the zipped Everything.exe above.
  • Open the Task Manager with Ctrl + Shift + ESC.
  • Click the Services tab.
  • Select Everything (if it exists), right click Everything and click Start Service.
  • Run Everything.exe.
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

Good news: in a week of constant use, your new build hasn't crashed once!
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

Everything (32-bit 1.4.1.1005) has started crashing again. Event Viewer reports the crash comes from the SageThumbs.dll module:

Code: Select all

Faulting application name: Everything.exe, version: 1.4.1.1005, time stamp: 0x600e6583
Faulting module name: SageThumbs.dll, version: 2.0.0.23, time stamp: 0x59117264
Exception code: 0xc0000409
Fault offset: 0x0000000000029c23
Faulting process id: 0x43f4
Faulting application start time: 0x01d6ff2e7be15f39
Faulting application path: C:\Program Files (x86)\_File\Everything\Everything.exe
Faulting module path: C:\Program Files (x86)\_UI\SageThumbs\64\SageThumbs.dll
Report Id: cb8ac918-2211-4fd4-a5af-8f87f4415191
Faulting package full name: 
Faulting package-relative application ID: 
I thought a minidump might help get us started. Thanks!
Attachments
Everything.dmp.zip
(751.38 KiB) Downloaded 522 times
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by void »

Thank you for the mini crash dump.

The 0xc0000409 exception is a buffer overrun in SageThumbs.dll.

Please try enabling shell_max_path in Everything:
  • In Everything, type in the following search and press ENTER:
    /shell_max_path=1
  • If successful, you should see shell_max_path=1 in the status bar for a few seconds.
  • Restart Everything: type in the following search and press ENTER:
    /restart
Enabling shell_max_path will prevent Everything from passing paths longer than (259 characters in length) to the shell.

I have tested a few different file types with SageThumbs with Everything 1.4.1.1005 x86 on Windows 10 1903 x64 without issue, is there a certain type of file that triggers this crash more often?


To disable thumbnails in Everything (and only show large icons):
  • In Everything, type in the following search and press ENTER:
    /thumbnails=0
  • If successful, you should see thumbnails=0 in the status bar for a few seconds.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by void »

Could you please try the latest nightly build.

I have added exception handling when loading thumbnails in Everything 1.4.1.1006.
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

Thanks for the tip!

Both 1.4.1.1005 and the nightly build crash when shell_max_path=0.
Both of them work correctly when shell_max_path=1.

I have no idea what type of file might trigger the crash; Everything crashes when presenting its initial view of all files on the system. I would love to help you debug this vital utility.

Does this mean anything? Explorer is using the 64-bit version of the SageThumbs (and associated) DLLs, but Everything is using the 32-bit version. (I'm using 32-bit Everything on a 64-bit machine.)
Attachments
toto_2.png
toto_2.png (19.99 KiB) Viewed 20090 times
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by void »

The crash is most likely occurring when the path is too long (over 259 characters).
When shell_max_path is enabled (set to 1), Everything will avoid loading thumbnails for files with long paths.

To find files with paths over 259 characters, please try the following search:
path:len:>259

Please try opening these files in Windows Explorer and see if it crashes.
You can open Windows Explorer to the file location with Ctrl + ENTER in Everything.

The x86 (32-bit) version of Everything will use the x86 (32-bit) version of SageThumbs.dll
The x64 (64-bit) version of Everything will use the x64 (64-bit) version of SageThumbs.dll
blaq
Posts: 9
Joined: Thu Feb 28, 2019 5:49 pm

Re: Everything crashes (related to SageThumbs.dll ?)

Post by blaq »

Great suggestion! Opening Windows Explorer at the location of a PNG file whose path is over 259 characters long instantly crashes Explorer. Event Viewer reports:

Code: Select all

Faulting application name: explorer.exe, version: 10.0.18362.1350, time stamp: 0x15a61049
Faulting module name: SageThumbs.dll, version: 2.0.0.23, time stamp: 0x59117264
Exception code: 0xc0000409
Fault offset: 0x0000000000029c23
Faulting process id: 0x4c88
Faulting application start time: 0x01d704b2397da4d6
Faulting application path: C:\WINDOWS\explorer.exe
Faulting module path: C:\Program Files (x86)\_UI\SageThumbs\64\SageThumbs.dll
Report Id: 7ab2d494-8148-4af0-820f-6eef70c981f9
Faulting package full name: 
Faulting package-relative application ID: 
This is amazing! I'd been getting random Explorer crashes for quite a while and my love for Everything led me to the cause. Thanks! I will download 1.4.1.1006 and follow up with SageThumbs.
Post Reply