Skip to content
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

Exception when resetting layout #1447

Closed
sparerd opened this issue May 13, 2019 · 1 comment
Closed

Exception when resetting layout #1447

sparerd opened this issue May 13, 2019 · 1 comment
Assignees
Labels
Bug Something isn't working as expected

Comments

@sparerd
Copy link
Contributor

sparerd commented May 13, 2019

Expected Behavior

The Reset Layout function should work regardless of the current configuration of windows.

Current Behavior

When the connections or config windows are dock-filled in the app and the Reset Layout menu option is clicked, an exception occurs. The windows are now in an inconsistent state and the app must be restarted to bring them back.

Steps to Reproduce (for bugs)

  1. Move either config or connections windows to dock-fill in the app
  2. View -> Reset Layout
  3. Exception occurs

spVml9rDyy

Context

Exception Message
"Invalid Value: The value of DockAreas conflicts with current DockState."

Stack trace
   at WeifenLuo.WinFormsUI.Docking.DockContentHandler.set_DockAreas(DockAreas value)
   at WeifenLuo.WinFormsUI.Docking.DockContent.set_DockAreas(DockAreas value)
   at mRemoteNG.UI.Forms.FrmMain.SetDefaultLayout() in C:\jenkins\workspace\Publish\Build mRemoteNG for Release\mRemoteV1\UI\Forms\FrmMain.cs:line 696
   at mRemoteNG.UI.Menu.ViewMenu.mMenViewResetLayout_Click(Object sender, EventArgs e) in C:\jenkins\workspace\Publish\Build mRemoteNG for Release\mRemoteV1\UI\Menu\ViewMenu.cs:line 357
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Environment
OS: Microsoft Windows NT 10.0.17134.0
mRemoteNG Version: 1.77.0.41252
Edition: MSI
Cmd line args: 

Your Environment

  • Version used: v1.77.0 (current develop branch)
  • Operating System and version (e.g. Windows 10 1709 x64):
@sparerd sparerd added the Bug Something isn't working as expected label May 13, 2019
@sparerd sparerd self-assigned this May 13, 2019
@idieguez
Copy link

Hi. I have the same problem described here. I can see that it was solved on 13 May 2019, but the last available version (prerelease) is 1.77.0.41252 (29 Apr 2019). Do you know when it will be available a new version where this problem is solved? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants