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

GUI not starting #337

Closed
Resourn opened this Issue Feb 11, 2019 · 23 comments

Comments

Projects
None yet
2 participants
@Resourn
Copy link

Resourn commented Feb 11, 2019

Hi,

I am unable to start the GUI after we activated bitlocker on our domain computers. I tried to install the latest version but the issue remains. All processes appears to start as they should but the GUI is nowhere to be seen. I have attached the error log.

Currently running windows 10 1809 17763.253 and MaxTo Beta10

maxto20190211_2.txt

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 11, 2019

Do you have User Account Control disabled on your machine? Anything else special?

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 11, 2019

Stack trace from log for my reference:

System.NullReferenceException: Object reference not set to an instance of an object.
   at MaxTo.Core.UAC.UserAccountControl.get_IsEnabledOnMachine()
   at MaxTo.UI.Components.Settings.Startup.StartupViewModel..ctor(IMessageBus bus, IConfigurationManager configurationManager, IUserAccountControl uac)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Caliburn.Micro.SimpleContainer.ActivateInstance(Type type, Object[] args)
   at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
   at Caliburn.Micro.SimpleContainer.<GetAllInstances>b__12_0(Func`2 x)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Caliburn.Micro.SimpleContainer.GetInstance(Type service, String key)
   at Caliburn.Micro.SimpleContainer.<DetermineConstructorArgs>b__22_0(ParameterInfo info)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
   at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
   at Caliburn.Micro.SimpleContainer.GetInstance(Type service, String key)
   at Caliburn.Micro.SimpleContainer.<DetermineConstructorArgs>b__22_0(ParameterInfo info)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at Caliburn.Micro.SimpleContainer.DetermineConstructorArgs(Type implementation)
   at Caliburn.Micro.SimpleContainer.<>c__DisplayClass7_0.<RegisterSingleton>b__0(SimpleContainer container)
   at Caliburn.Micro.SimpleContainer.GetInstance(Type service, String key)
   at MaxTo.UI.AppBootstrapper.GetInstance(Type serviceType, String key)
   at Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary`2 settings)
   at MaxTo.UI.AppBootstrapper.<OnStartup>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at MaxTo.UI.App.Main()

@vegardlarsen vegardlarsen self-assigned this Feb 11, 2019

@vegardlarsen vegardlarsen added the bug label Feb 11, 2019

@vegardlarsen vegardlarsen added this to the 2.0.0 milestone Feb 11, 2019

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 11, 2019

UAC is enabled and nothing else special as far as i am aware. I am using Panda Adaptive defense which blocks unauthorized applications but according to those logs nothing has been blocked.

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 11, 2019

And this worked on this machine just before you enabled Bitlocker? (It will take me a while to get Bitlocker up and running on my test machine, as it had Windows 10 Home installed.)

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 11, 2019

it had some issues with starting all processes (only core + companion32 started) but that solved itself after i installed beta 8 or 9. Other than that it has worked fine on this machine.

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 11, 2019

So I have tried this on Windows 10 1803 OS build 17134.112, and there does not appear to be a problem with Bitlocker on my VM at least. I am applying updates to try to get the VM up to date with the latest Windows updates, but my guess would have to be that this is not Bitlocker related.

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 11, 2019

The update seems to be taking a while. Will check back in on this tomorrow.

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 11, 2019

I cant for sure say it is caused by bitlocker however it worked fine this friday when we installed bitlocker but not after it. Hopefully you can find something. All your help is appreciated.

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 12, 2019

I have confirmed that this is not directly Bitlocker related. My VM is now running the exact same Windows version you reported, and does not experience this crash.

Does your machine have any group policies set that may interfere with checking registry values?

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 12, 2019

just checked our gpo's and can verify that no such policy exists in our domain. Are there any other logs or diagnostics that may be of interest?

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 12, 2019

Do you have UAC rights on your machine? Meaning, can you elevate programs? With or without a password prompt?

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 12, 2019

I am a local admin and i do not need a password to elevate programs.

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 12, 2019

Can you try going back to beta.9 and let me know if that works? Download links

I have a suspicion what may have happened is that you were upgraded to beta 10, which has a known bug in detecting which version of Windows you are running. It is a long shot, but may explain it.

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 12, 2019

I uninstalled version 10 and tried to install beta 9. Get an error message saying installation failed and a link to the log file. It appears to be a user rights issue when attempting to reach my profile? I also noted that the folder referenced is beta10 and not beta9?

The only file present in that folder is the one mentioned in the error message "MaxTo.Hook.X64.dll".

2019-02-12 09:30:37> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\myname.domain\AppData\Local\MaxTo\app-2.0.0-beta10\MaxTo.Hook.x64.dll' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Squirrel.Utility.<>c.<DeleteDirectory>b__19_0(String file)
   at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.UnauthorizedAccessException: Access to the path 'C:\Users\myname.domain\AppData\Local\MaxTo\app-2.0.0-beta10\MaxTo.Hook.x64.dll' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalDelete(String path, Boolean checkHost)
   at System.IO.File.Delete(String path)
   at Squirrel.Utility.<>c.<DeleteDirectory>b__19_0(String file)
   at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_1`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---
@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 12, 2019

OK, so this is a known issue that I don't have a solution for other than uninstall, delete the entire %LocalAppData%\MaxTo folder (it may require a reboot or sign out before Windows will let you), and then installing again.

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 12, 2019

I was able to install beta9 but the issue remains. Still no GUI. I did however get two folders when reinstalling. Both Beta 9 and 10. I tried to remove beta10 but it made no difference.

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 12, 2019

I think I was able to figure out what causes this issue when I tried to reproduce it. I am readying a private build that you can test if you would like. Please e-mail me at the support-address and I'll get you the private build. (I don't want to publish these private builds as they can sometimes be harder to install and cause issues with versioning.

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 12, 2019

mail sent

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 14, 2019

I havent received the private build yet. I am not trying to rush you, just making sure i am not missing something or doing something wrong :-)

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 14, 2019

Resending the e-mail now with a link instead of the actual attachment. :)

@Resourn

This comment has been minimized.

Copy link
Author

Resourn commented Feb 14, 2019

Okay i got the file and i can now see the gui! It appears to be working just fine. Alltough when i go to the startup tab in settings it says "UAC is either disabled or not supported on your machine. These settings have therefore been disabled."
image

This is not an issue for me as long as i am able to use the software normally though :-) Thanks alot for your help!

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 14, 2019

Yes, something on your machine makes it so MaxTo cannot read if UAC is supported, and thus we have to fall back to "no, this won't work". :)

@vegardlarsen

This comment has been minimized.

Copy link
Member

vegardlarsen commented Feb 14, 2019

Closing this as fixed. Will be in 2.0.0 final. :)

@vegardlarsen vegardlarsen modified the milestones: 2.0.0, 2.0.0-rc.3 Mar 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.