Any file I open on my [very fast] PC via File->Open is extremely slow to open, as of the past 3 weeks. This includes (but I'm sure is not limited to):
- Windows Notepad
- Notepad++
- Visual Studio
- Adobe Photoshop
- MS Word
Strangely: If I open a file via double-click in file explorer, or open via "recent files list" in any app, it opens instantaneously. The slowness only occurs when doing File->Open from within any application.
Saves are very slow the first time also. Subsequent saves (within the same app session) are very fast.
It takes consistently about 7 seconds each to open any of these small files.
But as described in more detail below, after a file has been opened, then closed in the same session, it opens again instantly. And the slow save only happens on the first-time save, never on subsequent saves.
This problem may coincide with a few events, but may be completely unrelated:
- the installation of a new M.2 SSD PCIe drive that is widely regarded as blazing fast. I cloned my slower SSD drive and made this new (faster) SSD drive my primary/boot/C drive. That was a few weeks ago. This morning I reverted back (temporarily) to my old SSD (after cloning) and it made no difference. The problem remains. (I even removed the new M.2 drive, booted to the old, and it made no difference.)
- I upgraded windows 10 to the 2004 version.
- I enabled Windows Subsystem for Linux (Ubuntu 20.04)
I have found similar posts, but always more understandable scenarios:
Here are a few comparisons and details:
- Slow to open first time in same session. Slow to save, first save only. Slow saves even happen in Adobe Photoshop, but only on the first save.
- Windows Defender firewall is running, but realtime protection is turned off, and I don't have any other AV running.
- Within a given NPP session, if I close a file and then reopen it, it opens instantly. But if I close NPP, relaunch, then open the same file again - it takes 7 seconds. Similar in windows notepad and other text editors.
- When I open an NPP file from the "recent files" list, any/all those open instantly. It's only when I open files from File->Open that the slowness occurs.
- If I close NPP and re-launch it, any files that were open in the previous session re-open by default, and it's instantaneous - no delays. It's only when I manually open a file in a new session that the slowness occurs. This is bizarre: I can have 15 files open in NPP and close the app. Then when I relaunch NPP, all 15 files open instantly/automatically in 15 different tabs. But as soon as I do File -> Open and open a file that isn't already opened, it takes 7 seconds and it acts like the whole OS is hung and straining.
- I uninstalled all my NPP plugins and restarted - still takes 7 seconds to open small text files.
- I have rebooted my PC several times.
- I ran
chkdsk
on the drive where the text files are, no bad sectors. - I ran
procmon
, got results, but don't know what I'm looking for amidst the thousands of entries. - I ran
wpr
- it begins a recording session successfully, but when I run it again with-stop
+ filename, I get the errorcannot change thread mode after it is set
. - I uninstalled NPP and re-installed it. For about 1 day this solved the problem and files opened instantly. Then the next day the original problem was back again.
- I ran Optimize against all my drives as per Bob Denton's suggestion below - it made no difference.
- I did a
clean boot
(disabled all non-MS services) - no change. - I switched the boot sequence to the original SSD drive, shut down, physically removed the brand new M.2 SSD, and booted back up. Same problem. No difference. So it has nothing to do with this new drive. The last culprit I can think of is the Windows 2004 update - nothing else major has changed in the past few months.
This is so annoying. Any ideas?
wpr.exe -start GeneralProfile
reproduce,wpr.exe -stop C:\gp.etl
. You can get Windows Performance Analyzer (WPA) from the Store to analyze it. Maybe provide a link to the etl zipped if you need help.Cannot change thread mode after it is set
- and the recording keeps running, forcing me to finally run-cancel
. What next?Cannot change thread mode after it is set
? Very odd. I can take a look at the PML if you are able to zip and share it somehow? I would suggest include the system process and capture all events to the .pml file.