Artemis-RGB / Artemis

Provides advanced unified lighting across many different brands RGB peripherals
https://artemis-rgb.com
Other
959 stars 67 forks source link

Artemis restart loop #690

Closed kadirhas closed 2 years ago

kadirhas commented 2 years ago

Hi, When I try to run Artemis.UI.exe, it starts, a window appears that says "initializing core" and then restarts itself. It keeps doing that until I can be fast enough and end Artemis.UI.exe process manually from task manager. I'm on a windows 7 64-bit, and since the installer didn't work, I've just used a prebuilt one.

Here are the logs: 2022-03-08 12:10:06.672 [INF] [Artemis.Core.Services.CoreService] Initializing Artemis Core version 1.0-8fa257, build 20210330.1 branch refs/heads/master. 2022-03-08 12:10:06.714 [INF] [Artemis.Core.Services.CoreService] Startup arguments: [] 2022-03-08 12:10:06.715 [INF] [Artemis.Core.Services.CoreService] Elevated permissions: true 2022-03-08 12:10:06.716 [INF] [Artemis.Core.Services.CoreService] Setting logging level to "Debug" 2022-03-08 12:10:06.718 [DBG] [Artemis.Core.Services.CoreService] Forcing plugins to use HidSharp 2.1.0.0 2022-03-08 12:10:06.923 [DBG] [Artemis.Core.Services.PluginManagementService] Loaded 23 plugin(s) 2022-03-08 12:10:06.924 [INF] [Artemis.Core.Services.PluginManagementService] Restarting because no plugin requires elevation and --force-elevation was not supplied 2022-03-08 12:10:06.866 [WRN] [Artemis.UI.Services.RegistrationService] Failed to apply preferred graphics context Vulkan Artemis.UI.Exceptions.ArtemisGraphicsContextException: Failed to create Vulkan context ---> System.ArgumentNullException: Value cannot be null. (Parameter 'ptr') at Delegate System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t) at TDelegate System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer<TDelegate>(IntPtr ptr) at T SharpVk.CommandCache.GetCommandDelegate<T>(string name, string type) at Instance SharpVk.Instance.Create(CommandCache commandCache, ArrayProxy<string>? enabledLayerNames, ArrayProxy<string>? enabledExtensionNames, InstanceCreateFlags? flags, ApplicationInfo? applicationInfo, DebugReportCallbackCreateInfo? debugReportCallbackCreateInfoExt, ValidationFlags? validationFlagsExt, AllocationCallbacks? allocator) at Instance SharpVk.Instance.Create(ArrayProxy<string>? enabledLayerNames, ArrayProxy<string>? enabledExtensionNames, InstanceCreateFlags? flags, ApplicationInfo? applicationInfo, DebugReportCallbackCreateInfo? debugReportCallbackCreateInfoExt, ValidationFlags? validationFlagsExt, AllocationCallbacks? allocator) at new Artemis.UI.SkiaSharp.Vulkan.Win32VkContext() in D:/a/1/s/Artemis/src/Artemis.UI/SkiaSharp/Vulkan/Win32VkContext.cs:line 16 at new Artemis.UI.SkiaSharp.VulkanContext() in D:/a/1/s/Artemis/src/Artemis.UI/SkiaSharp/VulkanContext.cs:line 19 --- End of inner exception stack trace --- at new Artemis.UI.SkiaSharp.VulkanContext() in D:/a/1/s/Artemis/src/Artemis.UI/SkiaSharp/VulkanContext.cs:line 23 at void Artemis.UI.Services.RegistrationService.ApplyPreferredGraphicsContext() in D:/a/1/s/Artemis/src/Artemis.UI/Services/RegistrationService.cs:line 132 2022-03-08 12:10:07.041 [DBG] [Artemis.Core.Services.RgbService] Creating SKTexture with software-based graphics context 2022-03-08 12:10:07.334 [INF] [Artemis.UI.Services.UpdateService] Checking for updates 2022-03-08 12:10:10.317 [INF] [Artemis.Core.Services.CoreService] Initializing Artemis Core version 1.0-8fa257, build 20210330.1 branch refs/heads/master. 2022-03-08 12:10:10.353 [INF] [Artemis.Core.Services.CoreService] Startup arguments: [] 2022-03-08 12:10:10.354 [INF] [Artemis.Core.Services.CoreService] Elevated permissions: true 2022-03-08 12:10:10.355 [INF] [Artemis.Core.Services.CoreService] Setting logging level to "Debug" 2022-03-08 12:10:10.357 [DBG] [Artemis.Core.Services.CoreService] Forcing plugins to use HidSharp 2.1.0.0 2022-03-08 12:10:10.463 [DBG] [Artemis.Core.Services.PluginManagementService] Loaded 23 plugin(s) 2022-03-08 12:10:10.465 [INF] [Artemis.Core.Services.PluginManagementService] Restarting because no plugin requires elevation and --force-elevation was not supplied 2022-03-08 12:10:10.485 [DBG] [Artemis.Core.Services.RgbService] Creating SKTexture with software-based graphics context 2022-03-08 12:10:10.467 [WRN] [Artemis.UI.Services.RegistrationService] Failed to apply preferred graphics context Vulkan Artemis.UI.Exceptions.ArtemisGraphicsContextException: Failed to create Vulkan context ---> System.ArgumentNullException: Value cannot be null. (Parameter 'ptr')

RobertBeekman commented 2 years ago

Hi, it looks like you've disabled UAC so every application runs with admin privileges. Artemis is trying to de-elevate itself but failing to do so, this is a bug.

You can work around it by adding --force-elevation as a startup argument If you don't know how to do this, it's explained on the wiki: https://wiki.artemis-rgb.com/en/startup-arguments

Good luck :)

kadirhas commented 2 years ago

Yeah that worked, thank you very much. Now I've other bugs related to connection but that is another topic I'd say :)