Menu

Issues with recent DWSIM5 download

Brad
2017-08-11
2017-08-14
  • Brad

    Brad - 2017-08-11

    Just downloaded 5 today. Went to go open a new simulation and have been unable to get past the launcher window. Any help would be appreciated.

    I have been getting the following error message "The type initializer for 'SkiaSharp.SKImageInfo' threw an exception."

    with the following Details:

    System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libSkiaSharp.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
    at SkiaSharp.SKImageInfo..cctor()
    --- End of inner exception stack trace ---
    at DWSIM.UI.Desktop.WPF.FlowsheetSurface_WPF.OnRender(DrawingContext drawingContext) in c:\Users\Daniel\Source\Repos\dwsim5\DWSIM.UI.Desktop.WPF\SkiaSharp\SKSurface.cs:line 104
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.DockPanel.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.DockPanel.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.DockPanel.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.DockPanel.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
    at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Decorator.ArrangeOverride(Size arrangeSize)
    at System.Windows.Documents.AdornerDecorator.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Window.ArrangeOverride(Size arrangeBounds)
    at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
    at System.Windows.UIElement.Arrange(Rect finalRect)
    at System.Windows.Interop.HwndSource.SetLayoutSize()
    at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
    at System.Windows.Window.SetRootVisual()
    at System.Windows.Window.SetRootVisualAndUpdateSTC()
    at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
    at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
    at System.Windows.Window.ShowHelper(Object booleanBox)
    at Eto.Wpf.Forms.FormHandler.Show()
    at Eto.PropertyStore.TriggerEventT
    at Eto.Forms.Button.OnClick(EventArgs e)
    at Eto.Forms.Button.Callback.OnClick(Button widget, EventArgs e)
    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
    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.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.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.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)

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-11

    Check if you have 'libSkiaSharp.dll' on DWSIM's installation directory. Are you running a 64-bit version of Windows? Do you have .NET 4.5 installed?

     
  • Brad

    Brad - 2017-08-11

    Yes the .dll file is in the installation directory. I am running 64-bit windows. I have .NET Framework 4.6.1 installed

     
  • Brad

    Brad - 2017-08-11

    I am able to open files in the classic UI, but the new launcher will not open a new or old simulation.

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-11

    Can you check if it is blocked by Windows Explorer (right click on it, Properties)?

     
  • Brad

    Brad - 2017-08-11

    Under Properties->Security it claims that I have full control, modify, read &execute, read, and write permissions.

     
    • Daniel Medeiros

      Daniel Medeiros - 2017-08-14

      Brad, try installing the C++ redistributable version 2015: https://www.microsoft.com/en-us/download/details.aspx?id=52685

       
      • Daniel

        Daniel - 2017-08-23

        I had the same issue (The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.) and installing this redistributable solved it. Thank you.

         
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-11

    Try starting DWSIM directly by opening "DWSIM.UI.Desktop.exe" on the installation folder.

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-11

    If it still doesn't work you can default to the class "DWSIM.exe" executable.

     
  • Petrus

    Petrus - 2017-08-14

    I add an attachment to show the page where I land in following the link to find the update.

    Where do I click to from here to launch the update? The "Buy This" button is the only live thing there, but that does not seem to be it.

     
    • Daniel Medeiros

      Daniel Medeiros - 2017-08-14

      On the box above the "Buy this" button you'll have to enter a number if you want to donate or 0 if you don't.

       
  • Petrus

    Petrus - 2017-08-14

    In other words click on the box that says "Name a fair price" (after entering a number)? That does nothing, the box is not a live link.

     
  • Daniel Medeiros

    Daniel Medeiros - 2017-08-14

    I'm sorry but are you're really not seeing the logic here? I didn't thought it would be so difficult. See the attached picture.

     
  • Nemmani Rama Gopal

    I have tried to update dwsim. Since then i am unable to use the software. Following is the message i am gettting.

    I am desperate for help.

    Thanks in advance.

    DWSIM Updater Application
    Copyright c 2016 DWSIM Project
    Version 5.0, Build 6460 (08-09-2017 19:07)
    Microsoft .NET Framework Runtime Version v4.0.30319

    Update failed: Value cannot be null.
    Parameter name: No update files were processed.

    DWSIM was not updated successfully. Press any key to close the updater.

     
    • Daniel Medeiros

      Daniel Medeiros - 2017-09-11

      You can re-download the installer package, it already includes the latest update.

       
  • Nemmani Rama Gopal

    Issue is resolved. Thanks and regards.

     
MongoDB Logo MongoDB