Skip to content

UnhandledException: System.ObjectDisposedException #1588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SoftStoneDevelop opened this issue Feb 3, 2025 · 1 comment
Closed

UnhandledException: System.ObjectDisposedException #1588

SoftStoneDevelop opened this issue Feb 3, 2025 · 1 comment

Comments

@SoftStoneDevelop
Copy link
Contributor

SoftStoneDevelop commented Feb 3, 2025

UnhandledException: "System.ObjectDisposedException: Safe handle has been closed.
Object name: 'SafeHandle'.
at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
at Interop.Crypto.EvpCipherUpdate(SafeEvpCipherCtxHandle ctx, Byte& output, Int32& outl, Byte& input, Int32 inl)
at System.Security.Cryptography.OpenSslCipherLite.Transform(ReadOnlySpan`1 input, Span`1 output)
at System.Security.Cryptography.UniversalCryptoTransform.TransformBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[] outputBuffer, Int32 outputOffset)
at Renci.SshNet.Security.Cryptography.Ciphers.AesCipher.CtrImpl.CTREncryptDecrypt(Byte[] data, Int32 offset, Int32 length)
at Renci.SshNet.Session.SendMessage(Message message)
at Renci.SshNet.Session.TrySendMessage(Message message)
at Renci.SshNet.BaseClient.SendKeepAliveMessage()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
End of stack trace from previous location
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
@SoftStoneDevelop
Copy link
Contributor Author

Critical error, crashes the entire application

Rob-Hague added a commit that referenced this issue Feb 4, 2025
* fix: UnhandledException: System.ObjectDisposedException.
Error on thread pool

#1588

* tweak message

---------

Co-authored-by: Rob Hague <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants