New SFTP plugin available now

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
spirit21
Junior Member
Junior Member
Posts: 12
Joined: 2022-08-24, 13:43 UTC

Re: New SFTP plugin available now

Post by *spirit21 »

For the new versions 3.0 and 3.01 I have received exception messages like this:

Code: Select all

---------------------------
Total Commander 10.51RC3
---------------------------
Exception in sftpplug.wfx:FsFindFirstW!
Access violation at address 68704D0E. Read of address 00000100
Windows 7 SP1 Ultimate 6.1 (Build 7601), base: 00400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
68704D0E
0044CEDD  0044EEE2  0042A826  0044E3D6  0042A826  00454EAB
0044CEDD  0044E54A  0044EEE2  0042A826  0042FFAE  004300EC
0044E3D6  0042A826  0044E3D6  0042A826  0044EEE2  0042A826
0044E480  0042A826  0044E0EB  0044DDBF  00469D66  0044DE8E
0044DEF1  0050AC1E  0044CEDD  0044EEE2  0042A826  0044E3D6
0042A826  0044E54A  0044EEE2  0042A826  0042A826  005D4E58
0044E3D6  0042A826  0044E54A  0044EEE2  0042A826  0044E480
0044CEDD  0044EEE2  0042A826  00402255  00418065  00418438
>005CA6FC  004F55B3  0042083E  004023FB  00402255  004023FB
004026C4  004185C2  004184EF  004023FB  004026C4  005DCE0A

Raw:
0044E480  00402EBA  0044CEDD  0044F1B1  0044F1FF  0042C821
0044E54A  0044EEE2  0044EF05  0042A826  0044E3D6  0042A826
0044F25B  0044F618  0043DE27  00454EAB  00402EBA  0044CEDD
0044F1B1  0043DBC6  0044E4D2  0044E54A  0044EEE2  0044EF05
0042A826  0042FFAE  004300EC  004065E3  0044E3D6  0042A826
0044F25B  0044E480  0044E3D6  0042A826  0044F25B  0044CEDD
0044F1B1  
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Да   Нет   
---------------------------
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: New SFTP plugin available now

Post by *white »

Moderator message from: white » 2022-08-24, 14:18 UTC

Fixed the download links in first post to https.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: New SFTP plugin available now

Post by *white »

Compression ratio for 3.01 zip file: 0%
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: New SFTP plugin available now

Post by *white »

It seems like when installing the plugin and when using the command cm_UnloadPlugins, libssh2.dll isn't unloaded.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

2spirit21
Please double check that you really have the new version 3.01. The file should report version number 3.01 when you double click on it. It's unusual to get the same error address with both versions. It's also possible that the libssh2.dll wasn't updated.

2white
This is a known problem, unfortunately I don't have a solution.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: New SFTP plugin available now

Post by *white »

white wrote: 2022-08-24, 14:51 UTC It seems like when installing the plugin and when using the command cm_UnloadPlugins, libssh2.dll isn't unloaded.
ghisler(Author) wrote: 2022-08-24, 16:17 UTC This is a known problem, unfortunately I don't have a solution.
A mention in the readme.txt perhaps?
spirit21
Junior Member
Junior Member
Posts: 12
Joined: 2022-08-24, 13:43 UTC

Re: New SFTP plugin available now

Post by *spirit21 »

ghisler(Author) wrote: 2022-08-24, 16:17 UTC 2spirit21
Please double check that you really have the new version 3.01. The file should report version number 3.01 when you double click on it. It's unusual to get the same error address with both versions. It's also possible that the libssh2.dll wasn't updated.
The first string from readme.txt of plugin I have installed is "New secure ftp plugin version 3.01 final (32 bit+64 bit)"
MD5 sums for plugin files are:
369f016a263c16779f65964a97f909eb *sftpplug.wfx
1df0e3035b503630ef9823c9e539afe8 *sftpplug.wfx64

I didn't say that exception message was the same for both versions (3.0 and 3.01). The code from my previous post was from v3.01 plugin crash. After new attempt of plugin usage I have received new exception message:

Code: Select all

---------------------------
Total Commander 10.51RC3
---------------------------
Exception in sftpplug.wfx:FsFindFirstW!
Access violation at address 68A14D0E. Read of address 00000100
Windows 7 SP1 Ultimate 6.1 (Build 7601), base: 00400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
68A14D0E
0044CEDD  0044EEE2  0042A826  0044E3D6  0042A826  00454EAB
0044CEDD  0044E54A  0044EEE2  0042A826  0042FFAE  004300EC
0044E3D6  0042A826  0044E3D6  0042A826  0044EEE2  0042A826
0044E480  0042A826  0044E0EB  0044DDBF  00469D66  0044DE8E
0044DEF1  0050AC1E  0044E3D6  0042A826  0044E54A  0044EEE2
0042A826  0042A826  005D4E58  0044E3D6  0042A826  0044E54A
0044EEE2  0042A826  0044E480  00402255  004026AC  0044E54A
0044EEE2  0042A826  0044E480  0044CEDD  005CA6FC  >004023FB
004026C4  0044E3D6  0042A826  0044EEE2  0042A826  0044E480
0042A826  0051043E  0042083E  004023FB  00402255  004023FB

Raw:
0044E480  00402EBA  0044CEDD  0044F1B1  0044F1FF  0042C821
0044E54A  0044EEE2  0044EF05  0042A826  0044E3D6  0042A826
0044F25B  0044F618  0043DE27  00454EAB  00402EBA  0044CEDD
0044F1B1  0043DBC6  0044E4D2  0044E54A  0044EEE2  0044EF05
0042A826  0042FFAE  004300EC  004065E3  0044E3D6  0042A826
0044F25B  0044E480  0044E3D6  0042A826  0044F25B  0044CEDD
0044F1B1  
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Да   Нет   
---------------------------

Also, it must be noted there are no libssh2.dll files (x32 & x64) in plugin dir. Alternatively I copied libssh2.dll libraries from plugin archive to %COMMANDER_PATH%\ and %COMMANDER_PATH%\64\ folders.
Last edited by spirit21 on 2022-08-24, 18:15 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Horst.Epp »

spirit21 wrote: 2022-08-24, 18:09 UTC ...
Also, it must be noted there are no libssh2.dll files (x32 & x64) in plugin dir. Alternatively I copied libssh2.dll libraries from plugin archive to %COMMANDER_PATH%\ and %COMMANDER_PATH%\64\ folders.
Thats wrong.
The install file contains libssh2.dll for 32bit and x64
and this files are copied into the plugins dir and its x64 sub-dir.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
spirit21
Junior Member
Junior Member
Posts: 12
Joined: 2022-08-24, 13:43 UTC

Re: New SFTP plugin available now

Post by *spirit21 »

Horst.Epp wrote: 2022-08-24, 18:15 UTC
spirit21 wrote: 2022-08-24, 18:09 UTC ...
Also, it must be noted there are no libssh2.dll files (x32 & x64) in plugin dir. Alternatively I copied libssh2.dll libraries from plugin archive to %COMMANDER_PATH%\ and %COMMANDER_PATH%\64\ folders.
Thats wrong.
The install file contains libssh2.dll for 32bit and x64
and this files are copied into the plugins dir and its x64 sub-dir.
For previous version of sftpplug (before 3.0) it worked for me just fine - there were NO libssh2.dll files in plugin dir and its x64 sub-dir (for my portable installation of TC). Instead this (as I mentioned earlier) libssh2.dll libs (32bit and x64 versions) were placed in %COMMANDER_PATH%\ and %COMMANDER_PATH%\64\ dirs consequently.

P.S.
I have tested sftpplug with 32bit and x64 libssh2.dll libraries from plugin archive: these files were copied into the plugin dir and its x64 sub-dir and the exception took place again.
Last edited by spirit21 on 2022-08-24, 18:47 UTC, edited 2 times in total.
spirit21
Junior Member
Junior Member
Posts: 12
Joined: 2022-08-24, 13:43 UTC

Re: New SFTP plugin available now

Post by *spirit21 »

It seems that the plugin works fine but there is a problem with libssh2.dll. I have replaced libssh2.dll (x64 version) in COMMANDER_PATH%\64\ folder with the previous version of library (with size of 471 552 bytes, ProductVersion: 1.8.1_DEV) and the plugin began to work (in x64 version of TC of course).
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: New SFTP plugin available now

Post by *white »

spirit21 wrote: 2022-08-24, 18:39 UTC It seems that the plugin works fine but there is a problem with libssh2.dll. I have replaced libssh2.dll (x64 version) in COMMANDER_PATH%\64\ folder with the previous version of library (with size of 471 552 bytes, ProductVersion: 1.8.1_DEV) and the plugin began to work (in x64 version of TC of course).
The new libssh2.dll shouldn't be in %COMMANDER_PATH%\64\. If I move the file there, SecureFTP is listed as an empty name entry in Network Neigborhood and unavailable.
spirit21
Junior Member
Junior Member
Posts: 12
Joined: 2022-08-24, 13:43 UTC

Re: New SFTP plugin available now

Post by *spirit21 »

I haves plugin dir (%COMMANDER_PATH%\Plugins\WFX\SFTPPlug\) with these files from version 3.01:
readme.txt
sftpplug.ini
sftpplug.wfx
sftpplug.wfx64

Also I have libssh2.dll (410 624 bytes) in %COMMANDER_PATH%\ dir (not the one from 3.01 plugin package).
Also I have libssh2.dll (471 552 bytes) in %COMMANDER_PATH%\64\ dir (not the one from 3.01 plugin package).

Now the plugin works fine in both versions (32/64) of TC:

Code: Select all

Loading SSH Library
========================
Connecting to: 192.168.1.3
IP address: 192.168.1.3:22
Key exchange method: diffie-hellman-group-exchange-sha256
Host key method: ssh-rsa
Encryption method (both directions): aes128-ctr
MAC (message authentication code) method (both directions): hmac-sha2-256-etm@openssh.com
Server fingerprint:
...
Session startup (SFTP)
CONNECT \NAS
Get directory: \
Last edited by spirit21 on 2022-08-24, 20:55 UTC, edited 2 times in total.
spirit21
Junior Member
Junior Member
Posts: 12
Joined: 2022-08-24, 13:43 UTC

Re: New SFTP plugin available now

Post by *spirit21 »

white wrote: 2022-08-24, 20:19 UTC
spirit21 wrote: 2022-08-24, 18:39 UTC It seems that the plugin works fine but there is a problem with libssh2.dll. I have replaced libssh2.dll (x64 version) in COMMANDER_PATH%\64\ folder with the previous version of library (with size of 471 552 bytes, ProductVersion: 1.8.1_DEV) and the plugin began to work (in x64 version of TC of course).
The new libssh2.dll shouldn't be in %COMMANDER_PATH%\64\. If I move the file there, SecureFTP is listed as an empty name entry in Network Neigborhood and unavailable.
As I wrote earlier "I have tested sftpplug with 32bit and x64 libssh2.dll libraries from plugin archive: these files were copied into the plugin dir and its x64 sub-dir and the exception took place again."
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: New SFTP plugin available now

Post by *white »

spirit21 wrote: 2022-08-24, 20:47 UTC As I wrote earlier "I have tested sftpplug with 32bit and x64 libssh2.dll libraries from plugin archive: these files were copied into the plugin dir and its x64 sub-dir and the exception took place again."
Sorry, I didn't quite get that.
Can you try what happens if you do a clean install and install the plugin?
Perhaps there are conflicting dlls. Can you try moving all dlls not included in the TC installation package out of the %COMMANDER_PATH% and %COMMANDER_PATH%\64\ folder and see what happens?
spirit21
Junior Member
Junior Member
Posts: 12
Joined: 2022-08-24, 13:43 UTC

Re: New SFTP plugin available now

Post by *spirit21 »

white wrote: 2022-08-24, 21:09 UTC
spirit21 wrote: 2022-08-24, 20:47 UTC As I wrote earlier "I have tested sftpplug with 32bit and x64 libssh2.dll libraries from plugin archive: these files were copied into the plugin dir and its x64 sub-dir and the exception took place again."
Sorry, I didn't quite get that.
Can you try what happens if you do a clean install and install the plugin?
Perhaps there are conflicting dlls. Can you try moving all dlls not included in the TC installation package out of the %COMMANDER_PATH% and %COMMANDER_PATH%\64\ folder and see what happens?
In my portable TC installation:

Code: Select all

[Configuration]
RedirectSection=Configs/configuration.ini
AlternateUserIni=Configs/user.ini
UseIniInProgramDir=7
I renamed libssh2.dll from %COMMANDER_PATH% and %COMMANDER_PATH%\64\ to "libssh2.dll_", copied both versions of libssh2.dll from sftpplug package to plugin dir and 64\ subdir, restarted TC, and got exception message again after starting sftp session effort:

Code: Select all

---------------------------
Total Commander 10.51RC3
---------------------------
Exception in sftpplug.wfx:FsFindFirstW!
Access violation at address 68A14D0E. Read of address 00000100
Windows 7 SP1 Ultimate 6.1 (Build 7601), base: 00400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
68A14D0E
0044CEDD  0044EEE2  0042A826  0044E3D6  0042A826  00454EAB
0044CEDD  0044E54A  0044EEE2  0042A826  00412CB0  0042FFAE
004300EC  005100A4  0050AC1E  0044E3D6  0042A826  0044E54A
0044EEE2  0042A826  0042A826  005D4E58  0044E3D6  0042A826
0044E54A  0044EEE2  0042A826  0044E480  0044E54A  0044EEE2
0042A826  0044E480  0044CEDD  005CA6FC  >004023FB  004026C4
0044E3D6  0042A826  0044EEE2  0042A826  0044E480  0042A826
00509780  0051043E  0042083E  004023FB  00402255  004023FB
004026C4  004185C2  004184EF  004023FB  004026C4  005DCE0A
0044E3D6  0042A826  0044EEE2  0042A826  0044E480  0042A826

Raw:
0044E480  00402EBA  0044CEDD  0044F1B1  0044F1FF  0042C821
0044E54A  0044EEE2  0044EF05  0042A826  0044E3D6  0042A826
0044F25B  0044F618  0043DE27  00454EAB  00402EBA  0044CEDD
0044F1B1  0043DBC6  0044E4D2  0044E54A  0044EEE2  0044EF05
0042A826  00412CB0  0042FFAE  004300EC  004065E3  005100A4
0050AC1E  0044E3D6  0042A826  0044F25B  0044CEDD  0044F1B1
0043DBC6  
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Да   Нет   
---------------------------
Post Reply