Skip to content

Instantly share code, notes, and snippets.

@m1l
Last active September 29, 2024 04:02
Show Gist options
  • Save m1l/5398f5c8a366e3535e208652f4b9ccfc to your computer and use it in GitHub Desktop.
Save m1l/5398f5c8a366e3535e208652f4b9ccfc to your computer and use it in GitHub Desktop.
Fix context menu crashing
Some Windows shell extensions will prevent OneCommander from opening the file/folder context menu.
Incompatible context menu extensions that might cause crashing:
- Fast Explorer
- File Renamer Turbo
- Tim by QQ
- AcdSee Pica View or
- HoneyView
- GeoSetter
- Cairo
These have to be uninstalled or disabled.
If you don't have any of those extensions:
Download ShellExView
https://www.nirsoft.net/utils/shexview.html
(scroll to "Download ShellExView for x64" near bottom of the page)
Run it and then check
Options>Hide All Microsoft Extensions,
Sort by Type by clicking "Type" column header, and look for "Context Menu" in Type column,
Disable one-by-one (or several at once) of "Context Menu" type, and each time check if OC can open context menu.
Once you find which context menu extension causes the crash, please report to support at onecommander.com
Note:
- Context menu extension might be handling one file type only, so make sure to test by right-clicking the same file
- Tip: If you have many context menu extensions (example 20), you can click first, shift+click 10th, and then disable all 10 at once, check if OC crashes, if yes, disable the same way 11-15; if not, enable 5-10, and so on, halving the results so it doesn't take many OneCommander restarts and to find the faulty extension faster
@Gurrrra
Copy link

Gurrrra commented Nov 24, 2023

I disable all as well and still get freeze when I right click on any type of images. I never had any issues before, and I recently reinstalled Windows 10 and the exact same stuff that I had before when I didn't have any problems. And I could right click images just the other day with the only thing changed since then is that I installed DaVinci Resolve, but it still crashes with that context menu thing disabled.

OneCommander automatically switched to Software rendering after I start it again after it froze, but it doesn't make any difference.

Event Viewer gives me this:

The program OneCommander.exe version 3.58.0.0 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel.
 Process ID: 3854
 Start Time: 01da1ecf9a73780c
 Termination Time: 4294967295
 Application Path: C:\Program Files\OneCommander\OneCommander.exe
 Report Id: d7a20ba7-ee82-437e-9839-008c39a3e7f6
 Faulting package full name: 
 Faulting package-relative application ID: 
 Hang type: Cross-process

Oh and I don't know if this is related, but the preview panel seem to have stopped showing any previews of images.

@m1l
Copy link
Author

m1l commented Nov 25, 2023

@Gurrrra I replied on GGroups but for others who might be seeing this one possible solution:
Reinstall Microsoft Photos app

Open Windows PowerShell (as Admin).
Copy/paste this command
Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage
Then install the latest version by searching Microsoft Store for "Microsoft Photos"

@AeliusSaionji
Copy link

I removed a great many things and One Commander only started working when I rebooted Windows entirely.

Unfortunately I cannot report what the culprit was, but definitely reboot Windows from time to time while debugging this.

@m1l
Copy link
Author

m1l commented Dec 11, 2023

@AeliusSaionji

I removed a great many things and One Commander only started working when I rebooted Windows entirely.

Unfortunately I cannot report what the culprit was, but definitely reboot Windows from time to time while debugging this.

No worries, I am glad it worked out. Some programs require reboot to be completely removed from the system, so that was the reason most likely.

@doublesupercool
Copy link

Just started happening in the last week and a half with Google's DriveFS ContextMenuHandler

DriveFS ContextMenu Handler Yes Context Menu Google Drive Extensions 89.0.2.0 Google Drive Google, Inc. No No No No No No C:\Program Files\Google\Drive File Stream\89.0.2.0\drivefsext.dll {EE15C2BD-CECB-49F8-A113-CA1BFC528F5B} 4/04/2024 7:29:10 AM 22/02/2023 8:54:22 AM No Directory\Background, *, .lnk, Directory, lnkfile A 24,873,248 No No

@oonlyxin
Copy link

I 'd like to leave a note that I disabled YunShellExtContextMenu and the issue fixed. YunShellExtContextMenu is from baiduyunguanjia application.

@j-adel
Copy link

j-adel commented Jul 23, 2024

I'd like to also add a note on a (possibly niche) possibility which turned to be true in my case. It turned out that the context menu in the Windows File Explorer was also causing a crash. This turned out due to a recent change I made in the Search and indexing settings. Something that's worth a look.

@eliaspirayesh
Copy link

Here is what worked or me. This is cloud related problem. Downloading all cloud files did the trick, as follows:
OneDrive > Settings > Sync and Backup > Advanced Settings > Download all files

@juanker-cso
Copy link

juanker-cso commented Sep 29, 2024

I downloaded and installed alldup today, got the crash and error message telling me to uninstall the program and install the newer version since that one doesn't have Fast Explorer. However, it was the latest version as that one doesn't use fast explorer, I did install it with the context menu option. But reinstalling the program even without that option enabled still caused the crashes (though this time onecommander didn't give me the specific message about alldup).
Indeed, I opened shellexview and Fast Explorer was there.
correction: it seems that you can install alldup then disable fast explorer, and have both programs work fine. I swapped for the portable version of alldup just to be safe though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment