Unable to load DLL 'ArtemisHSC.dll': The specified module could not be found.

Issue #59 resolved
Jonathan MacCollum created an issue

The following exception is thrown when refreshing the list of camera devices: CPU: x86

[2018-05-02T18:17:30] [ERROR] [MemberName] Application_DispatcherUnhandledException [2018-05-02T18:17:30] [ERROR] [FileName] D:\Projects\nina\NINA\App.xaml.cs [2018-05-02T18:17:30] [ERROR] [Message] Unable to load DLL 'ArtemisHSC.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) at NINA.Utility.AtikSDK.AtikCameraDll.ArtemisRefreshDevicesCount() at NINA.Utility.AtikSDK.AtikCameraDll.RefreshDevicesCount() at NINA.ViewModel.CameraChooserVM.GetEquipment() at NINA.ViewModel.EquipmentChooserVM..ctor(Type equipmentType) at NINA.ViewModel.CameraVM.RefreshCameraList(Object obj) at NINA.Utility.RelayCommand.Execute(Object parameter) at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(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)

Comments (5)

  1. Stanley Dimant

    Likely a missing visual c++ redistributable. Please install/repair VC++ redists from 2010 on to 2015 and check in between each installation if the application starts, so we can include the installer to NINA.

  2. Stefan B repo owner

    Seems like an x86 issue. Not sure why the DLL cannot be loaded there. For the latest version will try to load the module and if unsuccessful log the error but continues instead of not loading any camera at all.

  3. Stanley Dimant

    Error 0x8007007E is very often related to not being able to load DLLs because of missing dependencies.

    Here are the x86 dependencies for this DLL.

    Dependencies of ArtemisHSC.dll

    As you can tell it's MSVCR/P120.dll which corresponds to VC++ Redistributable 2013.

    NINA (1.5.0.1, before the fix) in x86 is working fine for me, does not crash and loads the DLL successfully.

  4. Stefan B repo owner

    I got this issue when updating to the latest sdk so i reverted it back. Maybe you can have a look here.

  5. Log in to comment