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

MaxTo crashes when viewing regions and exiting "cancel changes" #635

Closed
RhinoFox opened this issue Oct 30, 2020 · 4 comments
Closed

MaxTo crashes when viewing regions and exiting "cancel changes" #635

RhinoFox opened this issue Oct 30, 2020 · 4 comments
Assignees
Labels
bug Confirmed bug in MaxTo. needs-information Needs more information from the original author.
Milestone

Comments

@RhinoFox
Copy link

First of all, after installing 2.1.0. Stable over 2.1 beta 5. My own region are vanished.

When I look at te regions, press on presets. I don't see, my own.
Clicking on [Cancel changes] make MaxTo crash.
Restart MaxTo.Core, says there was a crash.
Starting again tells me MAxTo is already runnig. I don't see anything in the notification area, nor in the task manager, but procesexplorer does.

maxto20201030.log

@vegardlarsen
Copy link
Member

Thank you for reporting this. This seems to be the stack trace that caused your issue:

2020-10-30 12:55:56 [UserInterface@2.1.0.697] [Fatal] [] Unhandled exception "TargetInvocationException" at "   bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   bij System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bij Caliburn.Micro.XamlPlatformProvider.<>c__DisplayClass13_3.<GetViewCloseAction>b__1()
   bij Caliburn.Micro.XamlPlatformProvider.OnUIThread(Action action)
   bij Caliburn.Micro.Screen.TryClose(Nullable`1 dialogResult)
   bij MaxTo.UI.ViewModels.SetRegionsWindowManager.<Activate>b__11_1(Object sender, DeactivationEventArgs e)
   bij System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   bij Caliburn.Micro.Screen.Caliburn.Micro.IDeactivate.Deactivate(Boolean close)
   bij Caliburn.Micro.WindowManager.WindowConductor.Closed(Object sender, EventArgs e)
   bij System.EventHandler.Invoke(Object sender, EventArgs e)
   bij System.Windows.Window.OnClosed(EventArgs e)
   bij System.Windows.Window.WmDestroy()
   bij System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bij System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bij MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bij MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bij System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bij System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bij System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bij MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)"
System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> System.InvalidOperationException: Kan Visibility niet instellen op Visible, of Show, ShowDialog, Close of WindowInteropHelper.EnsureHandle aanroepen wanneer een venster wordt gesloten.
   bij System.Windows.Window.VerifyNotClosing()
   bij System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
   bij System.Windows.Window.Close()
   --- Einde van intern uitzonderingsstackpad ---
   bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   bij System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bij Caliburn.Micro.XamlPlatformProvider.<>c__DisplayClass13_3.<GetViewCloseAction>b__1()
   bij Caliburn.Micro.XamlPlatformProvider.OnUIThread(Action action)
   bij Caliburn.Micro.Screen.TryClose(Nullable`1 dialogResult)
   bij MaxTo.UI.ViewModels.SetRegionsWindowManager.<Activate>b__11_1(Object sender, DeactivationEventArgs e)
   bij System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   bij Caliburn.Micro.Screen.Caliburn.Micro.IDeactivate.Deactivate(Boolean close)
   bij Caliburn.Micro.WindowManager.WindowConductor.Closed(Object sender, EventArgs e)
   bij System.EventHandler.Invoke(Object sender, EventArgs e)
   bij System.Windows.Window.OnClosed(EventArgs e)
   bij System.Windows.Window.WmDestroy()
   bij System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bij System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bij MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bij MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bij System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bij System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   bij System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bij MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

Is this reproducible consistently on your machine? What are the exact steps you take to make it crash like this?

@vegardlarsen vegardlarsen added the needs-information Needs more information from the original author. label Oct 30, 2020
@RhinoFox
Copy link
Author

RhinoFox commented Oct 30, 2020

I can reproduce it again and again.
Right-click on MacTo-icon in the notification area > Change Regions > Load preset > Cancel Changes
maxto20201030.log
[update] When I press [Change regions] I see my own region setting. But I don't see ik anymore in the presets. Just the defaults are there. Another thing of interest could be that m:\reind\MaxTo.config\ belongs to te Protected Folders. When installing the new 2.1 version I got an error because of that. Maybe there is someting wrong in the m:\reind\MaxTo.config\ folder. I 'll mail you the content private.

BTW: Where should I find the stack trace. It could be this. There's Dutch tekst in it.

@RhinoFox
Copy link
Author

RhinoFox commented Nov 2, 2020

After restoring my last config.json (before upgrade). Problem solved

@vegardlarsen vegardlarsen self-assigned this Nov 3, 2020
@vegardlarsen vegardlarsen added this to the 2.1.1 milestone Nov 3, 2020
@vegardlarsen vegardlarsen added the bug Confirmed bug in MaxTo. label Nov 3, 2020
@vegardlarsen
Copy link
Member

Thank you for reporting this. It was something that only happens on multi-monitor solutions, and since Covid I've been on a single-monitor system, which is why I didn't catch this. I dug out an old monitor and was able to reproduce it.

The fix will be in 2.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug in MaxTo. needs-information Needs more information from the original author.
Projects
None yet
Development

No branches or pull requests

2 participants