Menu

Version 5..8.6 on Debian 10 (Click New Simulation) -> Exception has been thrown by the target of an invocation

Lucky
2020-01-22
2020-12-09
  • Lucky

    Lucky - 2020-01-22

    Hi Daniel,

    I have installed the latest linux version of DWSIM and have had issues getting it running. Each time I click on new simulation I get an exception. Could you please point me in the right direction for solving this? I haven't been able to find a solution through the previous forum/discussion threads. Here is the exception report:

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type of field 'Microsoft.VisualBasic.FileIO.TextFieldParser:m_PeekedLine' (11) due to: Could not resolve type with token 010000a6 from typeref (expected class 'System.Collections.Generic.Queue1' in assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') assembly:mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.Collections.Generic.Queue1 member:(null)
    at DWSIM.Thermodynamics.PropertyPackages.Auxiliary.Unifac..ctor () [0x00008] in <e23dff0b127d4234bfa97d0d56dc05ee>:0
    at DWSIM.Thermodynamics.PropertyPackages.UNIFACPropertyPackage..ctor () [0x00018] in <e23dff0b127d4234bfa97d0d56dc05ee>:0
    at DWSIM.FlowsheetBase.FlowsheetBase.AddPropPacks () [0x001ea] in <afa41ad2cc4f4d98b38931ba865ea88c>:0
    at DWSIM.FlowsheetBase.FlowsheetBase.Initialize () [0x0003a] in <afa41ad2cc4f4d98b38931ba865ea88c>:0
    at DWSIM.UI.Forms.Flowsheet.InitializeComponent () [0x000d8] in <3f4c63935ea847a4907ede733b158b5d>:0
    at DWSIM.UI.Forms.Flowsheet..ctor () [0x00058] in <3f4c63935ea847a4907ede733b158b5d>:0
    at DWSIM.UI.MainForm+<>c__DisplayClass10_0.<initializecomponent>b__6 (System.Object sender, System.EventArgs e) [0x00000] in <3f4c63935ea847a4907ede733b158b5d>:0
    at Eto.PropertyStore.TriggerEvent[T] (System.Object key, System.Object sender, T args) [0x0000e] in <23bf6400f02d49eba883a8238fbdb959>:0
    at Eto.Forms.Button.OnClick (System.EventArgs e) [0x00006] in <23bf6400f02d49eba883a8238fbdb959>:0
    at Eto.Forms.Button+Callback.OnClick (Eto.Forms.Button widget, System.EventArgs e) [0x0000c] in <23bf6400f02d49eba883a8238fbdb959>:0
    at Eto.GtkSharp.Forms.Controls.ButtonHandler`3+ButtonConnector[TControl,TWidget,TCallback].HandleClicked (System.Object sender, System.EventArgs e) [0x0001a] in <2084ba8256c9420ea60ad1e5f1df14e5>:0
    at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00044] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
    --- End of inner exception stack trace ---
    at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0005f] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
    at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
    at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x0010d] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
    at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x0000b] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
    at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
    at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0007d] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
    at GLib.Signal+SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
    at GLib.Signal+SignalClosure.MarshalCallback (System.IntPtr raw_closure, GLib.Value return_val, System.UInt32 n_param_vals, GLib.Value param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00050] in <ed39f21b9e9343dcbd442a17ad356a9f>:0 </ed39f21b9e9343dcbd442a17ad356a9f></ed39f21b9e9343dcbd442a17ad356a9f></ed39f21b9e9343dcbd442a17ad356a9f></d0e12f672b88444ab4b6d9b2ecf20142></d0e12f672b88444ab4b6d9b2ecf20142></d0e12f672b88444ab4b6d9b2ecf20142></d0e12f672b88444ab4b6d9b2ecf20142></d0e12f672b88444ab4b6d9b2ecf20142></d0e12f672b88444ab4b6d9b2ecf20142></initializecomponent></afa41ad2cc4f4d98b38931ba865ea88c></afa41ad2cc4f4d98b38931ba865ea88c></e23dff0b127d4234bfa97d0d56dc05ee></e23dff0b127d4234bfa97d0d56dc05ee>

     
  • Daniel Medeiros

    Daniel Medeiros - 2020-01-22

    Hi Lucky,

    Did you install the latest mono version?

     
  • Lucky

    Lucky - 2020-01-23

    mono --version
    Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-3 Wed Apr 17 16:37:36 UTC 2019)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS: __thread
    SIGSEGV: altstack
    Notifications: epoll
    Architecture: amd64
    Disabled: none
    Misc: softdebug
    Interpreter: yes
    LLVM: supported, not enabled.
    Suspend: preemptive
    GC: sgen (concurrent by default)

    vbnc --version
    Could not load type of field 'vbnc.Scanner:m_PeekedChars' (21) due to: Could not resolve type with token 010000d1 from typeref (expected class 'System.Collections.Generic.Queue1' in assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089') assembly:mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.Collections.Generic.Queue1 member:(null)
    at vbnc.Main.Main (System.String[] CmdArgs) [0x00016] in <7fedd23783a04075964efd089fc25329>:0
    Failed compilation took 00:00:00.0335380

    I followed the mono installation procedures you posted onto youtube which allowed me to get vbnc. I was having issues downloading vbnc prior to that since it wasn't included in the debian repository.

    Could this be an issue with vbnc?

     
  • Lucky

    Lucky - 2020-01-23

    HI Daniel,

    I went through the procedure again and upgraded mono to version 6.8.

    mono --version
    Mono JIT compiler version 6.8.0.96 (tarball Wed Jan 15 10:20:48 UTC 2020)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS: __thread
    SIGSEGV: altstack
    Notifications: epoll
    Architecture: amd64
    Disabled: none
    Misc: softdebug
    Interpreter: yes
    LLVM: yes(610)
    Suspend: hybrid
    GC: sgen (concurrent by default)

    vbnc --version
    Visual Basic.Net Compiler version 0.0.0.5943 (Mono 4.7 - tarball)
    Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.

    vbnc : Command line : warning VBNC2009: the option -version was not recognized - ignored
    vbnc : Command line : error VBNC2011: No files to compile! Cannot do anything!
    Compilation took 00:00:00.1517700

    It seems to be working now.

     
  • Daniel Medeiros

    Daniel Medeiros - 2020-01-23

    I'm glad it worked. This is the first time I see an issue with mono-vbnc...

     
  • Ronald Hoffer

    Ronald Hoffer - 2020-12-09

    Hey Daniel,

    I am facing the same problem with 6.3.7 (Debian10) and mono 6.12.00.90:
    Exception has been thrown by the target of an invocation.

    Details:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not set up parent class, due to: Could not set up parent class, due to: Could not set up parent class, due to: Invalid type Eto.GtkSharp.EtoWebView for instance field Eto.WidgetHandler2[Eto.GtkSharp.EtoWebView,Eto.Forms.WebView]:control assembly:/usr/local/lib/dwsim/Eto.dll type:WidgetHandler2 member:(null) assembly:/usr/local/lib/dwsim/Eto.dll type:WidgetHandler3 member:(null) assembly:/usr/local/lib/dwsim/Eto.Gtk2.dll type:GtkControl3 member:(null)
    at Eto.Widget..ctor () [0x0006a] in <23bf6400f02d49eba883a8238fbdb959>:0
    at Eto.Forms.BindableWidget..ctor () [0x00000] in <23bf6400f02d49eba883a8238fbdb959>:0
    at Eto.Forms.Control..ctor () [0x00000] in <23bf6400f02d49eba883a8238fbdb959>:0
    at Eto.Forms.WebView..ctor () [0x00000] in <23bf6400f02d49eba883a8238fbdb959>:0
    at DWSIM.Inspector.Window_Eto.GetInspectorWindow () [0x002e9] in <a2014d41c00745e292091ec8185aed7d>:0
    at DWSIM.UI.Forms.Flowsheet+<>c__DisplayClass53_0.<initializecomponent>b__13 () [0x00000] in <3848cfd224e04bafa2ad6225d937c2a9>:0
    at DWSIM.UI.Forms.Flowsheet+<>c__DisplayClass53_0.<initializecomponent>b__18 (System.Object sender, System.EventArgs e) [0x00000] in <3848cfd224e04bafa2ad6225d937c2a9>:0
    at Eto.Forms.ToolItem.OnClick (System.EventArgs e) [0x00008] in <23bf6400f02d49eba883a8238fbdb959>:0
    at Eto.GtkSharp.Forms.ToolBar.ButtonToolItemHandler+ButtonToolItemConnector.HandleClicked (System.Object sender, System.EventArgs e) [0x0000b] in <2084ba8256c9420ea60ad1e5f1df14e5>:0
    at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
    at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
    --- End of inner exception stack trace ---
    at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
    at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
    at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
    at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
    at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
    at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0007d] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
    at GLib.Signal+SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in <ed39f21b9e9343dcbd442a17ad356a9f>:0
    at GLib.Signal+SignalClosure.MarshalCallback (System.IntPtr raw_closure, GLib.Value return_val, System.UInt32 n_param_vals, GLib.Value param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00050] in <ed39f21b9e9343dcbd442a17ad356a9f>:0 </ed39f21b9e9343dcbd442a17ad356a9f></ed39f21b9e9343dcbd442a17ad356a9f></ed39f21b9e9343dcbd442a17ad356a9f></initializecomponent></initializecomponent></a2014d41c00745e292091ec8185aed7d>

    Is there a package missing?
    Thanks a lot!
    kr,
    Ron
    
     
  • Daniel Medeiros

    Daniel Medeiros - 2020-12-09

    I think that you need to install a package which contains webkit for gtk3: https://github.com/picoe/Eto/issues/1304

     

Log in to post a comment.