Bug #101408 External component has thrown an exception. (Connect with SSH)

Submitted: 31 Oct 2020 14:41 Modified: 22 Dec 2020 6:58
Reporter: Jonatan Matthias Vinterbaek Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:8.0.22 OS:Windows (Microsoft Windows 10 Pro)
Assigned to: CPU Architecture:Any
Tags: WBBugReporter

[31 Oct 2020 14:41] Jonatan Matthias Vinterbaek
Description:
----[For better reports, please attach the log file after submitting. You can find it in C:\Users\Jonatan M. Vinterbæk\AppData\Roaming\MySQL\Workbench\log\wb.log]

15:33:34 [INF][      Workbench]: UI is up
15:33:34 [INF][      Workbench]: Running the application
15:33:35 [INF][SSHTunnelManager]: Wakeup socket port created: 49912
15:33:35 [INF][     SSH tunnel]: Starting tunnel
15:33:35 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening new one
15:33:40 [INF][     SSH tunnel]: Opening SSH tunnel to 46.21.99.45:22
15:33:40 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: libssh 0.8.8 (c) 2003-2018 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_stdthread
15:33:40 [INF][      SSHCommon]: libssh: ssh_socket_connect ssh_socket_connect: Nonblocking connection socket: 1984
15:33:40 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: Socket connecting, now waiting for the callbacks to work
15:33:40 [INF][      SSHCommon]: libssh: ssh_kex_select_methods ssh_kex_select_methods: Negotiated curve25519-sha256,ssh-ed25519,aes256-ctr,aes256-ctr,hmac-sha2-256,hmac-sha2-256,none,none,,
15:33:40 [INF][      SSHCommon]: libssh: ssh_packet_dh_reply ssh_packet_dh_reply: Received SSH_KEXDH_REPLY
15:33:40 [INF][      SSHCommon]: libssh: ssh_client_curve25519_reply ssh_client_curve25519_reply: SSH_MSG_NEWKEYS sent
15:33:40 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
15:33:40 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Signature verified and valid
15:33:41 [INF][     SSH tunnel]: Opening SSH tunnel to 46.21.99.45:22
15:33:41 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: libssh 0.8.8 (c) 2003-2018 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_stdthread
15:33:41 [INF][      SSHCommon]: libssh: ssh_socket_connect ssh_socket_connect: Nonblocking connection socket: 2032
15:33:41 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: Socket connecting, now waiting for the callbacks to work
15:33:41 [INF][      SSHCommon]: libssh: ssh_kex_select_methods ssh_kex_select_methods: Negotiated curve25519-sha256,ssh-ed25519,aes256-ctr,aes256-ctr,hmac-sha2-256,hmac-sha2-256,none,none,,
15:33:41 [INF][      SSHCommon]: libssh: ssh_packet_dh_reply ssh_packet_dh_reply: Received SSH_KEXDH_REPLY
15:33:41 [INF][      SSHCommon]: libssh: ssh_client_curve25519_reply ssh_client_curve25519_reply: SSH_MSG_NEWKEYS sent
15:33:41 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
15:33:41 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Signature verified and valid
15:33:41 [ERR][      Workbench]: External component has thrown an exception.
Exception = System.Runtime.InteropServices.SEHException
Message = External component has thrown an exception.
FullText = System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at MySQL.Forms.ViewEventTarget.HandleMouseClick(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
Installed Workbench .22
Setup tcp/ip connection thru ssh
try to connect ... promts for password login to ssh.
click ok ... crash

15:33:34 [INF][      Workbench]: UI is up
15:33:34 [INF][      Workbench]: Running the application
15:33:35 [INF][SSHTunnelManager]: Wakeup socket port created: 49912
15:33:35 [INF][     SSH tunnel]: Starting tunnel
15:33:35 [INF][     SSH tunnel]: Existing SSH tunnel not found, opening new one
15:33:40 [INF][     SSH tunnel]: Opening SSH tunnel to 46.21.99.45:22
15:33:40 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: libssh 0.8.8 (c) 2003-2018 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_stdthread
15:33:40 [INF][      SSHCommon]: libssh: ssh_socket_connect ssh_socket_connect: Nonblocking connection socket: 1984
15:33:40 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: Socket connecting, now waiting for the callbacks to work
15:33:40 [INF][      SSHCommon]: libssh: ssh_kex_select_methods ssh_kex_select_methods: Negotiated curve25519-sha256,ssh-ed25519,aes256-ctr,aes256-ctr,hmac-sha2-256,hmac-sha2-256,none,none,,
15:33:40 [INF][      SSHCommon]: libssh: ssh_packet_dh_reply ssh_packet_dh_reply: Received SSH_KEXDH_REPLY
15:33:40 [INF][      SSHCommon]: libssh: ssh_client_curve25519_reply ssh_client_curve25519_reply: SSH_MSG_NEWKEYS sent
15:33:40 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
15:33:40 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Signature verified and valid
15:33:41 [INF][     SSH tunnel]: Opening SSH tunnel to 46.21.99.45:22
15:33:41 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: libssh 0.8.8 (c) 2003-2018 Aris Adamantiadis, Andreas Schneider and libssh contributors. Distributed under the LGPL, please refer to COPYING file for information about your rights, using threading threads_stdthread
15:33:41 [INF][      SSHCommon]: libssh: ssh_socket_connect ssh_socket_connect: Nonblocking connection socket: 2032
15:33:41 [INF][      SSHCommon]: libssh: ssh_connect ssh_connect: Socket connecting, now waiting for the callbacks to work
15:33:41 [INF][      SSHCommon]: libssh: ssh_kex_select_methods ssh_kex_select_methods: Negotiated curve25519-sha256,ssh-ed25519,aes256-ctr,aes256-ctr,hmac-sha2-256,hmac-sha2-256,none,none,,
15:33:41 [INF][      SSHCommon]: libssh: ssh_packet_dh_reply ssh_packet_dh_reply: Received SSH_KEXDH_REPLY
15:33:41 [INF][      SSHCommon]: libssh: ssh_client_curve25519_reply ssh_client_curve25519_reply: SSH_MSG_NEWKEYS sent
15:33:41 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Received SSH_MSG_NEWKEYS
15:33:41 [INF][      SSHCommon]: libssh: ssh_packet_newkeys ssh_packet_newkeys: Signature verified and valid
15:33:41 [ERR][      Workbench]: External component has thrown an exception.
Exception = System.Runtime.InteropServices.SEHException
Message = External component has thrown an exception.
FullText = System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at MySQL.Forms.ViewEventTarget.HandleMouseClick(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Suggested fix:
???
Tried reinstall of both workbench and MS visual C++ 2015-2019 without any luck.
[22 Dec 2020 6:58] MySQL Verification Team
Hello Jonatan Matthias Vinterbaek,

Thank you for the bug report.
I'm not seeing this issue at my end on Win10 with workbench 8.0.22.

Regards,
Ashwini Patil
[27 Oct 2021 18:21] Aleksey Sha
Same problem version 8.0.27
[3 Jan 2022 10:16] Bennet Gallein
Hello, we are seeing the same issue. 

We recently pulled an old machine into our Domain without reinstalling Windows (Windows 10 Pro). With a Domain-User we get the same error, when switching back to a local user everything works fine. Tested in 8.0.27 and 8.0.22. 

Anonymized log: see Attachment

Any help is appreciated.
[3 Jan 2022 10:16] Bennet Gallein
log-file anonymized

Attachment: message (16).txt (text/plain), 9.17 KiB.

[3 Jan 2022 11:37] Bennet Gallein
Quick update:

I was able to resolve the error. As seen in the log files, our user had a "ü" in his name, which - for some unknown reason - resulted in nothing working. When changing the "ü" to an "ue" it works again.
I don't know if this is a general problem with special chars, but worth a try I guess..

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.043 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.