Windows Explorer crashes on right-click when NextcloudContextMenuHandler is enabled
Bug description
Windows Explorer crashes whenever I right-click in Explorer while the Nextcloud shell context menu handler is enabled.
The issue is ongoing and happens on any right-click in Windows Explorer, regardless of location or selected item. Disabling only the NextcloudContextMenuHandler with Microsoft Sysinternals Autoruns immediately fixes the crashes. Re-enabling the handler makes the problem reproducible again.
Steps to reproduce
- Install / run Nextcloud Desktop Client on Windows.
- Ensure the Nextcloud shell context menu handler is enabled:
NextcloudContextMenuHandler- CLSID:
{BC6988AB-ACE2-4B81-84DC-DC34F9B24401} - DLL:
C:\Program Files\Nextcloud\NCContextMenu.dll
- Open Windows Explorer.
- Right-click any file, folder, background area, or location.
Expected behavior
The Windows Explorer context menu opens normally.
Actual behavior
Windows Explorer crashes/restarts.
Windows Event Viewer records an APPCRASH for explorer.exe with SHELL32.dll as the faulting module.
Relevant event details:
Faulting application name: explorer.exe / Explorer.EXE
Faulting application version: 10.0.26100.8737
Faulting module name: SHELL32.dll
Faulting module version: 10.0.26100.8737
Exception code: 0xc0000005
Fault offset: 0x00000000000386af
Faulting application path: C:\WINDOWS\explorer.exe
Faulting module path: C:\WINDOWS\System32\SHELL32.dll
Which files are affected by this bug
Any local file/folder/location in Windows Explorer. The crash is not specific to a synced Nextcloud file.
Operating system
Windows
Which version of the operating system you are running
Windows 25H2, build 26200.8737
Additional local file versions:
C:\Windows\explorer.exe: 10.0.26100.8457
C:\Windows\System32\SHELL32.dll: 10.0.26100.8737
Installation method
Official Windows MSI
Nextcloud Server version
Nextcloud Hub 25 Autumn, 32.0.9, managed Hetzner hosting
Nextcloud Desktop Client version
Nextcloud Desktop Client 33.0.7.20260629
Installed app entry:
DisplayName: Nextcloud
DisplayVersion: 33.0.7.20260629
Publisher: Nextcloud GmbH
InstallDate: 20260701
Affected shell extension file versions:
C:\Program Files\Nextcloud\NCContextMenu.dll
FileVersion: 3,0,0,47
ProductVersion: 3,0,0,47
Company: Nextcloud GmbH
C:\Program Files\Nextcloud\NCOverlays.dll
FileVersion: 3,0,0,47
ProductVersion: 3,0,0,47
Company: Nextcloud GmbH
Did this occur after an update or on a clean installation?
Minor version update / current latest client installation.
The local config directory contains previous MSI installers and config backups from older client versions, including 3.17.x, 4.0.x, and 33.0.x. Current installed version is 33.0.7.20260629.
Are you using the Nextcloud Server Encryption module?
No
Are you using an external user-backend?
Unknown. This is managed Hetzner hosting. No LDAP/Active Directory or SSO/SAML backend is configured by me.
Workaround
Disable NextcloudContextMenuHandler in Microsoft Sysinternals Autoruns:
HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\NextcloudContextMenuHandler
(Default) = {BC6988AB-ACE2-4B81-84DC-DC34F9B24401}
HKCR\CLSID\{BC6988AB-ACE2-4B81-84DC-DC34F9B24401}\InprocServer32
(Default) = C:\Program Files\Nextcloud\NCContextMenu.dll
ThreadingModel = Apartment
After disabling that handler, Windows Explorer right-click works again.
Additional info
The crash was reproduced multiple times and always had the same Event Viewer signature: explorer.exe crashing in SHELL32.dll with exception 0xc0000005 at offset 0x00000000000386af.
No Nextcloud server logs are attached because this appears to be a local Windows shell extension crash before any server interaction.
Update after further local testing:
The issue is currently no longer reproducible on my machine, so please treat the original report as a transient-but-real crash state rather than a currently reproducible minimal test case.
What happened in sequence:
- Windows Explorer repeatedly crashed on any right-click while
NextcloudContextMenuHandlerwas enabled. - The Event Viewer crash signature was stable across multiple crashes:
Faulting application: explorer.exe / Explorer.EXE 10.0.26100.8737
Faulting module: SHELL32.dll 10.0.26100.8737
Exception code: 0xc0000005
Fault offset: 0x00000000000386af
- I initially suspected ExplorerPatcher because it was installed at the time. I uninstalled it, rebooted, and the Explorer crash still happened with the same
SHELL32.dllsignature, so ExplorerPatcher does not seem to be the root cause. - At that point, the only notable third-party Explorer modules still loaded were Nextcloud shell components and OneDrive.
- Disabling
NextcloudContextMenuHandlervia Sysinternals Autoruns made right-click work again immediately. - I later reinstalled ExplorerPatcher and right-click still worked as long as the Nextcloud context menu handler remained disabled.
- For additional diagnostics, I re-created/re-enabled the Nextcloud context menu registration:
HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\NextcloudContextMenuHandler
(Default) = {BC6988AB-ACE2-4B81-84DC-DC34F9B24401}
HKCR\CLSID\{BC6988AB-ACE2-4B81-84DC-DC34F9B24401}\InprocServer32
(Default) = C:\Program Files\Nextcloud\NCContextMenu.dll
ThreadingModel = Apartment
- After re-enabling the handler and testing different right-click scenarios, Explorer no longer crashes.
So the current state is:
- The crash was real and repeated reliably before disabling the handler.
- Disabling the Nextcloud context menu handler was the action that immediately restored Explorer right-click behavior.
- After reboot / re-registration / retesting, I currently cannot reproduce the crash anymore.
- I do not have a crash dump yet, because the repro stopped before a new dump could be captured.
My best guess is that this may involve a transient shell/COM registration or Explorer process state after the client/Windows update, rather than a simple always-crashes bug in the handler.
Small correction / clarification to my previous update:
The workaround step was not isolated to disabling NextcloudContextMenuHandler alone. I first closed the running Nextcloud Desktop Client app and then disabled NextcloudContextMenuHandler via Autoruns. After that combination, Explorer right-click worked again.
So the precise observation is:
- Nextcloud Desktop Client running + context menu handler enabled: Explorer right-click repeatedly crashed.
- Nextcloud Desktop Client closed +
NextcloudContextMenuHandlerdisabled: Explorer right-click worked again. - Later, after re-registering/re-enabling the context menu handler and testing again, the crash was no longer reproducible.
I cannot currently prove whether closing the client process, disabling the shell handler, or the resulting reload/re-registration state was the decisive part of the workaround.
Hello, I have the same issue. I'm on Windows 11 24H2 and using Nextcloud Desktop 33.0.7. The only fix seems disabling the ContextMenuHandler but this then doesn't let me access my Nextcloud files.
+1
Same problem here. Happens repeatedly on Win10 desktop PC and sometimes also on Win11 laptop. The only fix was to edit the registry item NextcloudContextMenuHandler as said above or stop Nextcloud. After update of Nextcould, the right-click freezing/crashing behaviour is back (it re-registered the context menu handler).
Maybe it could be related to the amount of files Nextcloud Desktop needs to sync (we are moving a ton of data to self-hosted nextcloud hub from other cloud service) - it syncs continuously the remote files (does not download them). Therefore I was unable to test this behaviour during a stable state of the server. Anyway, this should not be happening in my opinion.