News:

SMF - Just Installed!

Main Menu

Explorer crashes on network with CopyHandler

Started by domdom, November 11, 2016, 10:50:18 AM

Previous topic - Next topic

domdom

Hello,

I'm on Win7 Pro, and if CopyHandler (v1.43) is running, my windows explorer crashes if I try to do things on my network folders, like doing a simple right-click in the folder or clicking the button "create new folder).
If I quit CopyHandler, there is no problems..

So something must go wrong with intercepting the windows stuff.. but only on network drives, local drives are fine..

Hope you can find a fix :)
Cheers

Ixen

Hi,
I have just checked CH 1.43 on Win7 Enterprise (x64, English) and several other systems and cannot reproduce the problem using neither mapped network drives nor directly using network paths in explorer.
There are several things I'd suggest now if you're willing to help with this.

1. Please let me know the details of your system (you've mentioned Win7 Pro - please add if it's 32 or 64bit, which language version (English or some regional one), which service pack are you using (is it sp1 or no service pack?).
2. Do you have any similar software installed on your system (some other file copiers)? If yes - which ones?
3. What kind of network are you using (sharing files using Windows? Samba shared from linux? mapped network drive or directly using network path? accessing through Network icon on desktop or manually entering the address?)
4. Please uninstall CH, reboot system and install CH again and please check if the problem persists.

5. If the problem persists, please download the registry settings from:
https://fisheye.copyhandler.com/browse/~raw,r=b79aca0d66b1084f230022efe39cc89307482e6d/CopyHandler/tools/ShellExtLogging.reg

This registry script enabled logging of operations of shell extension to c:\temp directory (you can change the path to a more appropriate one if you want). Please note that multiple log files will be created in the directory.

6. Please try to reproduce the problem.
7. Please attach the logs to your post here on forum, or please send them to ixen(at)c-op-yha-ndl-er(dot)com (remove the dashes before sending).

If that won't help, I think the explorer crash dump might be needed (but that's a little more advanced topic so let's start with the logs for now).

domdom

Hello Ixen,

Thank you for replying so fast  :)

1. My system is Win7 Pro 64bits, i7-4790K- 32GB RAM, French with SP1 and almost uptodate win the windows updates
2. I had Supercopier installed but I uninstalled it before I tried CopyHandler
3. I'm on a network at work (ActiveDirectory) and the crash happens as well with mapped network drive or directly using network path (however way I enter a networked folder)
4. I've tried to uninstall CH and after reinstall it's still crashing, but everything is working if I exit CopyHandler

I've tried on another computer than mine on the same network and it was fine, so it must be something on my computer..

ok, here is the log :

2016-11-11 15:52:57.628982 [debug] ShellExtControl[1536]: Constructing CShellExtControl
2016-11-11 15:52:57.628982 [debug] CDropMenuExt[1536]:  <hr=0x0 (S_OK)> Create instance of ShellExtControl
2016-11-11 15:52:57.628982 [debug] CDropMenuExt[1536]: Initializing
2016-11-11 15:52:57.628982 [debug] ShellExtControl[1536]: Retrieving flags
2016-11-11 15:52:57.629983 [debug] ShellExtControl[1536]: Returning flags: m_pShellExtData->m_lFlags=1
2016-11-11 15:52:57.629983 [debug] ShellExtControl[1536]: Retrieving flags
2016-11-11 15:52:57.629983 [debug] ShellExtControl[1536]: Returning flags: m_pShellExtData->m_lFlags=1
2016-11-11 15:52:57.630983 [debug] ShellExtVerifier[1536]: Requesting CH configuration
2016-11-11 15:52:57.630983 [trace] ShellExtVerifier[1536]: Retrieved shell ext config: <?xml version="1.0" encoding="utf-8"?>
<ShellExtCfg><DragAndDropRootItem><ItemDescription/><ItemName/><ItemType>1</ItemType></DragAndDropRootItem><InterceptCtxMenuActions>false</InterceptCtxMenuActions><InterceptDragAndDrop>false</InterceptDragAndDrop><InterceptKeyboardActions>false</InterceptKeyboardActions><NormalRootItem><ItemDescription/><ItemName/><ItemType>1</ItemType></NormalRootItem><ShowFreeSpace>false</ShowFreeSpace><ShowShortcutIcons>false</ShowShortcutIcons><Sizes><Bytes>o</Bytes><GBytes>Go</GBytes><KBytes>Ko</KBytes><MBytes>Mo</MBytes><TBytes>To</TBytes></Sizes></ShellExtCfg>
2016-11-11 15:52:57.631983 [debug] CDropMenuExt[1536]:  <hr=0x0 (S_OK)> Read shell config
2016-11-11 15:52:57.631983 [error] CDropMenuExt[1536]:  <hr=0x80004005 (E_FAIL)> Gather data from initialize
2016-11-11 15:52:57.633983 [debug] ShellExtControl[1536]: Constructing CShellExtControl
2016-11-11 15:52:57.633983 [debug] CDropMenuExt[1536]:  <hr=0x0 (S_OK)> Create instance of ShellExtControl
2016-11-11 15:52:57.633983 [debug] CDropMenuExt[1536]: Initializing
2016-11-11 15:52:57.634983 [debug] ShellExtControl[1536]: Retrieving flags
2016-11-11 15:52:57.634983 [debug] ShellExtControl[1536]: Returning flags: m_pShellExtData->m_lFlags=1
2016-11-11 15:52:57.634983 [debug] ShellExtControl[1536]: Retrieving flags
2016-11-11 15:52:57.634983 [debug] ShellExtControl[1536]: Returning flags: m_pShellExtData->m_lFlags=1
2016-11-11 15:52:57.635983 [debug] ShellExtVerifier[1536]: Requesting CH configuration
2016-11-11 15:52:57.635983 [trace] ShellExtVerifier[1536]: Retrieved shell ext config: <?xml version="1.0" encoding="utf-8"?>
<ShellExtCfg><DragAndDropRootItem><ItemDescription/><ItemName/><ItemType>1</ItemType></DragAndDropRootItem><InterceptCtxMenuActions>false</InterceptCtxMenuActions><InterceptDragAndDrop>false</InterceptDragAndDrop><InterceptKeyboardActions>false</InterceptKeyboardActions><NormalRootItem><ItemDescription/><ItemName/><ItemType>1</ItemType></NormalRootItem><ShowFreeSpace>false</ShowFreeSpace><ShowShortcutIcons>false</ShowShortcutIcons><Sizes><Bytes>o</Bytes><GBytes>Go</GBytes><KBytes>Ko</KBytes><MBytes>Mo</MBytes><TBytes>To</TBytes></Sizes></ShellExtCfg>
2016-11-11 15:52:57.636983 [debug] CDropMenuExt[1536]:  <hr=0x0 (S_OK)> Read shell config
2016-11-11 15:52:57.636983 [error] CDropMenuExt[1536]:  <hr=0x80004005 (E_FAIL)> Gather data from initialize
2016-11-11 15:52:57.821002 [debug] ShellExtControl[1536]: Constructing CShellExtControl
2016-11-11 15:52:57.821002 [debug] CMenuExt[1536]:  <hr=0x0 (S_OK)> Creation of ShellExtControl m_piShellExtControl=0000000007AF5000
2016-11-11 15:52:57.821002 [debug] CMenuExt[1536]: Initializing
2016-11-11 15:52:57.821002 [debug] ShellExtControl[1536]: Retrieving flags
2016-11-11 15:52:57.821002 [debug] ShellExtControl[1536]: Returning flags: m_pShellExtData->m_lFlags=1
2016-11-11 15:52:57.821002 [debug] ShellExtControl[1536]: Retrieving flags
2016-11-11 15:52:57.821002 [debug] ShellExtControl[1536]: Returning flags: m_pShellExtData->m_lFlags=1
2016-11-11 15:52:57.821002 [debug] ShellExtVerifier[1536]: Requesting CH configuration
2016-11-11 15:52:57.821002 [trace] ShellExtVerifier[1536]: Retrieved shell ext config: <?xml version="1.0" encoding="utf-8"?>
<ShellExtCfg><DragAndDropRootItem><ItemDescription/><ItemName/><ItemType>1</ItemType></DragAndDropRootItem><InterceptCtxMenuActions>false</InterceptCtxMenuActions><InterceptDragAndDrop>false</InterceptDragAndDrop><InterceptKeyboardActions>false</InterceptKeyboardActions><NormalRootItem><ItemDescription/><ItemName/><ItemType>1</ItemType></NormalRootItem><ShowFreeSpace>false</ShowFreeSpace><ShowShortcutIcons>false</ShowShortcutIcons><Sizes><Bytes>o</Bytes><GBytes>Go</GBytes><KBytes>Ko</KBytes><MBytes>Mo</MBytes><TBytes>To</TBytes></Sizes></ShellExtCfg>
2016-11-11 15:52:57.822002 [debug] CMenuExt[1536]:  <hr=0x0 (S_OK)> Read shell config
2016-11-11 15:52:57.822002 [debug] CMenuExt[1536]:  <hr=0x1 (S_FALSE)> Gather data from initialize
2016-11-11 15:52:57.822002 [debug] CMenuExt[1536]: Querying context menu
2016-11-11 15:52:57.822002 [debug] ShellExtControl[1536]: Retrieving flags
2016-11-11 15:52:57.822002 [debug] ShellExtControl[1536]: Returning flags: m_pShellExtData->m_lFlags=1

Ixen

Thanks. Was that the only data from logs available (usually there are multiple files created)?
In the attached logs there is nothing unusual, so to be able to tell more I'd need a crash dump for the crashing explorer.

Would you mind capturing one? If yes - do you need instructions on how to do it?

domdom


Ixen

Summary:
1. Download ProcDump (https://technet.microsoft.com/en-us/sysinternals/dd996900.aspx), extract it somewhere.
2. [cmd] Open windows command line window, change directory to the one where you extracted ProcDump,
3. Open explorer window and find its process id (PID) in task manager (get the PID of the newly opened explorer instance, not the one that was already open).
4. [cmd] execute command procdump.exe -e <PID> c:\temp\crash.dmp
Replace <PID> with the explorer PID noted in pt. 3.
When you execute this command it will start monitoring the process and you should see something like:
Press Ctrl-C to end monitoring without terminating the process.

5. Make the explorer crash.
That should make the ProcDump to write the dump file in c:\temp\
Please send me this file.

Let me know if something is unclear or you'll encounter trouble with any of the steps above.

Ixen

Thanks for the crash. It helped a lot in pinpointing the location, although I'm still trying to figure out the actual reason for the crash.

1. Could you please send/attach the screenshots of the explorer context menu for:
a) the non-network folder (where the usual CH's paste, copy to, move to items appear),
b) the same menu on network folder (the crash situation, but in this case with CH disabled, so it does not crash).

2. Also - do you have any means to share a file of around 500MB size?
If yes, I'd like to ask for another crash dump (same instruction, but the command would be:
procdump.exe -ma -e <PID> c:\temp\crash.dmp
). This is not critical - it might just allow finding the real issue here that's causing the crash.

3. Do you have any other software (non-Microsoft) that adds itself to the explorer context menu?

Ixen


domdom

ok, I found the culprit !

After trying to uninstall software, delete running processes, I isolated the cause.
It's a right-click software called "Path copy copy" : https://pathcopycopy.codeplex.com/.

What I forgot to see, is that the crash only happend when I right-clicked in an empty-space but not when I right-clicked on a folder..

Also I found the option in PathCopyCopy that stop the crash.. It's "Show icon next to submenu".. If I uncheck it I get no crash, If I check it again, the crashes come back..


Ixen

Thanks for the information - it allowed me to pinpoint the real culprit in CH shell extension. This issue was fixed and will be released as part of CH 1.44 so that you can have the icons enabled in path copy copy.

domdom


SMF spam blocked by CleanTalk