OpenVPN GUI crash with version 2022.3.21

Implemented

OpenVPN GUI crash with version 2022.3.21

avatar

After updating to version 2022.3.21 all OpenVPN GUI connections fails:

NullReferenceException - Object reference not set to an instance of an object.

at RemoteDesktopManager.AddOn.FrmSendCredentialsOpenVPN.FrmWaitingForVPN_Shown(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnShown(EventArgs e)
at DevExpress.XtraEditors.XtraForm.OnShown(EventArgs e)
at Devolutions.RemoteDesktopManager.Forms.FrmBase.OnShown(EventArgs e)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
------------------------ extended stack ------------------------
at Devolutions.RemoteDesktopManager.Managers.ErrorManager.BuildErrorDetails(Exception exception, String extraMessage)
at Devolutions.RemoteDesktopManager.Forms.FrmErrorMessage.ShowErrorMessage(Exception exception, String message, String title)
at Devolutions.RemoteDesktopManager.Managers.LogManager.OnThreadException(Object sender, ThreadExceptionEventArgs t)
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at DevExpress.XtraEditors.DForm.WndProc(Message& m)
at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at RemoteDesktopManager.AddOn.OpenVPNHelper.SendCredentials(OpenVPNConfiguration configuration, OpenVPNCredentialsParameters parameters)
at RemoteDesktopManager.AddOn.OpenVPNAddOn.OpenCustom(OpenVPNConfiguration configuration, String oneTimePassword)
at Devolutions.RemoteDesktopManager.Business.VPNOpeners.VPNAddOnOpener.Open(Connection vpn, OpenConnectionParameter parameter)
at Devolutions.RemoteDesktopManager.Managers.VPNManager.OpenVPN(Connection connection, OpenConnectionParameter parameter)
at Devolutions.RemoteDesktopManager.Business.Connectors.VPNConnector.Connect(Connection connection, OpenConnectionMode openConnectionMode)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.OpenConnection(Connection connection, OpenConnectionParameter parameter)
at Devolutions.RemoteDesktopManager.Managers.ConnectionManager.OpenConnections(Connection[] connectionList, OpenConnectionParameter parameter)
at Devolutions.RemoteDesktopManager.Managers.ActionManager.DoOpenConnection(Connection[] currentConnections, OpenConnectionMode openConnectionMode, IConnectionSource source, Dictionary`2 openingAttributes)
at Devolutions.RemoteDesktopManager.Managers.ActionManager.OpenConnections(OpenConnectionMode openConnectionMode, IConnectionSource source, Boolean checkOpenedConnection)
at Devolutions.RemoteDesktopManager.Frames.FreDashBoardBase.GalleryActions_ItemClick(Object sender, GalleryItemClickEventArgs e)
at DevExpress.XtraBars.Ribbon.Handler.GalleryControlHandlerBase.OnUnpressItem(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.Handler.GalleryControlHandlerBase.OnUnpress(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.Handler.GalleryControlHandlerBase.OnMouseUp(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.GalleryControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.XtraControl.WndProc(Message& m)
at DevExpress.Utils.Controls.ControlBase.BaseWndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)
at DevExpress.XtraBars.Ribbon.GalleryControl.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at DevExpress.Utils.Drawing.Helpers.NativeMethods.UnsafeNativeMethods.DefSubclassProc(IntPtr hWnd, IntPtr Msg, IntPtr wParam, IntPtr lParam)
at DevExpress.Utils.Drawing.Helpers.NativeMethods.UnsafeNativeMethods.DefSubclassProc(IntPtr hWnd, IntPtr Msg, IntPtr wParam, IntPtr lParam)
at DevExpress.Utils.Drawing.Helpers.Win32SubclasserFactory.Win32Subclasser.SubClassProcInner(IntPtr hWnd, IntPtr Msg, IntPtr wParam, IntPtr lParam, IntPtr uIdSubclass, IntPtr dwRefData)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Devolutions.RemoteDesktopManager.Program.Main(String[] args)

All Comments (10)

avatar

Hello,
I have received your error report. I will assign this immediately to a dev.

Regards

David Hervieux

avatar

We have the same problem.

We are currently using version 2022.2.29.0 and have installed update 2022.3.21.0. Does the version 2022.3.18.0 work with the OpenVPN?

avatar

Hello,

We've found and fixed the issue, this should be available as early as next version. Thanks for bringing this to our attention!

Regards,

Jafran Majeau

avatar

Hello,
I'm sorry about this issue. This is now fixed.

Could you try download and install it directly from here?

https://cdn.devolutions.net/download/Setup.RemoteDesktopManager.2022.3.23.0.exe

Regards,

David Hervieux

avatar

Thank you. It is working again.

avatar

OpenVPN config files are keept in config folder after disconnect. Should it not delete them when disconnected?

avatar

Hello,

We haven't been able to replicate this issue. It is possible that the Folder itself is not deleted if there is a timing issue between closing the VPN and deleting the files (usually due to internet latency issues), but the files itself (contained in the folder) are always deleted (although it may a few seconds if there are latency issues).

Could you please delete the files manually (once), use the entry again, and specify which file are not deleted (their extension)? This would help us pinpoint the problem.

Regards,

Jafran Majeau

avatar

I see that all config files are deleted except the folder but OpenVPN GUI lists the deleted profiles untill restart of the OpenVPN GUI.

Can you make OpenVPN GUI forget the deleted profiles without restarting it?

avatar

Or can you restart OpenVPN GUI without disconnecting active VPN connections?

avatar

Hello,

We've been able to replicate the issue. We've opened a ticket for it and will investigate.

Regards,

Jafran Majeau