Hard185 / open-hardware-monitor

Automatically exported from code.google.com/p/open-hardware-monitor
0 stars 0 forks source link

Running OpenHardwareMonitor with mono #450

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?

I expect to see the O.HW.M. gui, in fact i got this error

$ sudo ./OpenHardwareMonitor.exe
Missing method System.Type::op_Equality(Type,Type) in assembly 
/usr/lib/mono/2.0/mscorlib.dll, referenced in assembly 
/usr/lib/mono/gac/UIAutomationProvider/3.0.0.0__31bf3856ad364e35/UIAutomationPro
vider.dll
Error setting up UIA: System.Reflection.TargetInvocationException: Exception 
has been thrown by the target of an invocation. ---> 
System.TypeInitializationException: An exception was thrown by the type 
initializer for System.Windows.Automation.Provider.AutomationInteropProvider 
---> System.MissingMethodException: Method not found: 'System.Type.op_Equality'.
  at System.Windows.Automation.Provider.BridgeManager.GetAutomationBridges () [0x00000] in <filename unknown>:0 
  at System.Windows.Automation.Provider.AutomationInteropProvider..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.UIAutomation.Winforms.FormListener.Initialize () [0x00000] in <filename unknown>:0 
  at Mono.UIAutomation.Winforms.Global.Initialize () [0x00000] in <filename unknown>: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, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Application.InitializeUIAutomation () [0x00000] in <filename unknown>:0 

What version of the product are you using? On what operating system?

$ mono --version
Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-5ubuntu1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. 
www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            Included Boehm (with typed GC and Parallel Mark)

Distributor ID: Ubuntu
Release:    12.10
Codename:   quantal  (x86_64)

$ dpkg -l | grep winform
ii  libmono-uia-winforms1.0-cil               2.1-2                             
        all          Implementation of UIA providers
ii  libmono-winforms2.0-cil                   2.10.8.1-5ubuntu1                 
        all          Mono System.Windows.Forms library (for CLI 2.0)

Please provide any additional information below.

I can recompile the source with mcs, but i'm a noob with .net/mono, and i can't 
found howto compile your source on internet

Please attach a Report created with "File / Save Report...".

Original issue reported on code.google.com by sca...@gmail.com on 13 Mar 2013 at 6:21

GoogleCodeExporter commented 9 years ago
UPDATE

using run with softdebug (in monodevelop)
the compilation stop at line 46 of Program.cs with this exception:

System.MissingMethodException: Method not found: 'System.Type.op_Equality'.
  at System.Windows.Automation.Provider.BridgeManager.GetAutomationBridges () [0x00000] in <filename unknown>:0
  at System.Windows.Automation.Provider.AutomationInteropProvider..cctor () [0x00000] in <filename unknown>:0

Original comment by sca...@gmail.com on 13 Mar 2013 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by moel.mich on 13 Mar 2013 at 7:56