Page 1 of 1

Tif file can't be deleted and crashes XYplorer when right-clicking

Posted: 09 May 2018 14:49
by roel_v
I have a few tif files (geotiff) that I can't delete in XYplorer; I get the message 'The action can't be completed because the file is open in XYplorer. Close the file and try again.' but I obviously am not doing anything to the file except trying to delete it. I also don't have any other processes running. Also when I right-click the file, XYplorer crashes. Lastly, when I drag this file from XYplorer to another program (Arcgis in this case, but it happens right when the dragging starts), XYplorer also crashes. Probably related. I have some other files of this same series of maps that I generated that I can't delete, but for which the right-click and dragging are not a problem. So it might be several problems with tif file parsing manifesting together. Let me know if you want more sample files.

Re: Tif file can't be deleted and crashes XYplorer when right-clicking

Posted: 09 May 2018 15:00
by roel_v
Should maybe add that when I open a Windows Explorer window in the directory where the files are in, it closes itself (probably crashing underneath but without a crash message); when I used a cmd.exe to delete the files, I had to close XYplorer while doing so because I got the 'file used by another process' there as well. So I closed XYplorer, deleted the files, reopened and all was fine.

Re: Tif file can't be deleted and crashes XYplorer when right-clicking

Posted: 09 May 2018 15:18
by admin
No problem here with that file. Although it looks very dark in the preview.

So it's probably your preview handler...

Re: Tif file can't be deleted and crashes XYplorer when right-clicking

Posted: 10 May 2018 12:07
by roel_v
So after deleting the file manually (through cmd.exe), regenerating it, and after having restarted XYplorer, I can no longer reliably reproduce the issue. Sometimes it works fine, sometimes XYplorer freezes and I have to kill it through process manager, sometimes I get the behaviour I described earlier. However what does seem to be consistent is that the file is locked or at least opened by XYplorer somehow, as I get a message 'cannot get exclusive lock on file' in my other scripts that create these files. Then I have to close XYplorer, run script, restart.

What is this 'preview handler' ? I never set anything other than the default AFAIK. I've looked through the 'Preview' section of the 'Configuration' dialog but I don't see anywhere there where I could set an external binary. I've tried disabling previews for tif and tiff but that doesn't seem to help.

Re: Tif file can't be deleted and crashes XYplorer when right-clicking

Posted: 10 May 2018 12:23
by admin
roel_v wrote:What is this 'preview handler' ? I never set anything other than the default AFAIK. I've looked through the 'Preview' section of the 'Configuration' dialog but I don't see anywhere there where I could set an external binary. I've tried disabling previews for tif and tiff but that doesn't seem to help.
Run this script through the XYplorer Address Bar to see your TIF preview handler:

Code: Select all

text get("previewhandler", "tif");
But if you disabled previews for tif and tiff then the preview handler cannot be the cause of the crashes.

Did you maybe right-click those files to pop the context menu? This can also lead to a crash caused by faulty shell extensions? In that case you can tick this to see if it helps:

Configuration | General | Menus, Mouse, Safety | Context Menus | Hide shell extensions from shell context menu

Re: Tif file can't be deleted and crashes XYplorer when right-clicking

Posted: 10 May 2018 13:49
by roel_v
Preview handler query says 'No preview handler found for tif files.', so that's not it.

I'm just documenting here as I go along otherwise I'll forget - I don't think there's much actionable information in here yet.

Disabling the shell extensions I haven't been able to reproduce the crash I reported before, but I do get another one. The locking of the file by XYplorer still happens (can't delete file through external application, nor through XYplorer). When I closed down XYplorer, I got a crash; the stack trace of course isn't very detailed, but it traces it back to a certain 'libgfl340.dll', which seems to be associated with 'SageThumbs' which I apparently installed at some point. So I've uninstalled it and I'll see how it goes. Maybe it injects itself into the shell in some other ways and some circumstances around its interactions with XYplorer (even when shell extensions are off) are triggering a crash in that software? We'll see.