ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.79k stars 2.41k forks source link

Ubuntu mono 2.10.8.1 MissionPlanner Unhandled Exception #197

Open wolkstein opened 11 years ago

wolkstein commented 11 years ago

After last online update some days ago MissionPlanner won't start with mono. the previous version runs without any problems.

exception: wolke@schnell:~/Downloads/MissionPlanner-latest$ mono MissionPlanner.exe

Unhandled Exception: System.TypeLoadException: Could not load type 'MissionPlanner.Program' from assembly 'MissionPlanner, Version=1.1.5031.12842, Culture=neutral, PublicKeyToken=null'. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'MissionPlanner.Program' from assembly 'MissionPlanner, Version=1.1.5031.12842, Culture=neutral, PublicKeyToken=null'.

my mono version: wolke@schnell:~/Downloads/MissionPlanner-latest$ 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: x86 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark)

meee1 commented 11 years ago

please run using MONO_LOG_LEVEL=debug mono MissionPlanner.exe

wolkstein commented 11 years ago

hello, the debug output.

wolke@schnell:~/Downloads/MissionPlanner-latest$ MONO_LOG_LEVEL=debug mono MissionPlanner.exe Mono: gc took 34 usecs Mono: Assembly Loader probing location: '/usr/lib/mono/4.0/mscorlib.dll'. Mono: Image addref mscorlib[0x869f0c8] -> /usr/lib/mono/4.0/mscorlib.dll[0x869e760]: 2 Mono: AOT failed to load AOT module /usr/lib/mono/4.0/mscorlib.dll.so: /usr/lib/mono/4.0/mscorlib.dll.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

Mono: Assembly Loader loaded assembly from location: '/usr/lib/mono/4.0/mscorlib.dll'. Mono: Config attempting to parse: '/usr/lib/mono/4.0/mscorlib.dll.config'. Mono: Config attempting to parse: '/etc/mono/assemblies/mscorlib/mscorlib.config'. Mono: Assembly mscorlib[0x869f0c8] added to domain MissionPlanner.exe, ref_count=1 Mono: Config attempting to parse: '/etc/mono/config'. Mono: Config attempting to parse: '/home/wolke/.mono/config'. Mono: Assembly Loader probing location: 'MissionPlanner.exe'. Mono: Image addref MissionPlanner[0x86ef9c0] -> /home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe[0x86eeda0]: 2 Mono: Assembly MissionPlanner[0x86ef9c0] added to domain MissionPlanner.exe, ref_count=1 Mono: AOT failed to load AOT module /home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe.so: /home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

Mono: Assembly Loader loaded assembly from location: 'MissionPlanner.exe'. Mono: Config attempting to parse: '/home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe.config'. Mono: Config attempting to parse: '/etc/mono/assemblies/MissionPlanner/MissionPlanner.config'. Mono: Assembly Loader probing location: 'MissionPlanner.exe'. Mono: AOT failed to load AOT module /home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe.so: /home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

Mono: Assembly Ref addref MissionPlanner[0x86ef9c0] -> mscorlib[0x869f0c8]: 2 Mono: Config attempting to parse: '/home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe.config'. Mono: Assembly Loader probing location: '/home/wolke/Downloads/MissionPlanner-latest/log4net.dll'. Mono: Image addref log4net[0x86f0a28] -> /home/wolke/Downloads/MissionPlanner-latest/log4net.dll[0x86f1330]: 2 Mono: Assembly log4net[0x86f0a28] added to domain MissionPlanner.exe, ref_count=1 Mono: AOT failed to load AOT module /home/wolke/Downloads/MissionPlanner-latest/log4net.dll.so: /home/wolke/Downloads/MissionPlanner-latest/log4net.dll.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

Mono: Assembly Loader loaded assembly from location: '/home/wolke/Downloads/MissionPlanner-latest/log4net.dll'. Mono: Config attempting to parse: '/home/wolke/Downloads/MissionPlanner-latest/log4net.dll.config'. Mono: Config attempting to parse: '/etc/mono/assemblies/log4net/log4net.config'. Mono: Assembly Ref addref MissionPlanner[0x86ef9c0] -> log4net[0x86f0a28]: 2 Mono: Assembly Loader probing location: '/usr/lib/mono/gac/System.Windows.Forms/4.0.0.0b77a5c561934e089/System.Windows.Forms.dll'. Mono: Assembly Loader probing location: '/home/wolke/Downloads/MissionPlanner-latest/System.Windows.Forms.dll'. Mono: Assembly Loader probing location: '/usr/lib/System.Windows.Forms.dll'. Mono: Assembly Loader probing location: '/usr/lib/mono/gac/System.Windows.Forms/4.0.0.0b77a5c561934e089/System.Windows.Forms.exe'. Mono: Assembly Loader probing location: '/home/wolke/Downloads/MissionPlanner-latest/System.Windows.Forms.exe'. Mono: Assembly Loader probing location: '/usr/lib/System.Windows.Forms.exe'. Mono: The following assembly referenced from /home/wolke/Downloads/MissionPlanner-latest/MissionPlanner.exe could not be loaded: Assembly: System.Windows.Forms (assemblyref_index=1) Version: 4.0.0.0 Public Key: b77a5c561934e089 The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/wolke/Downloads/MissionPlanner-latest/).

Mono: Failed to load assembly MissionPlanner[0x86ef9c0]

Mono: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Mono: The class MissionPlanner.Splash could not be loaded, used in MissionPlanner, Version=1.1.5031.12842, Culture=neutral, PublicKeyToken=null

Unhandled Exception: System.TypeLoadException: Could not load type 'MissionPlanner.Program' from assembly 'MissionPlanner, Version=1.1.5031.12842, Culture=neutral, PublicKeyToken=null'. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'MissionPlanner.Program' from assembly 'MissionPlanner, Version=1.1.5031.12842, Culture=neutral, PublicKeyToken=null'. wolke@schnell:~/Downloads/MissionPlanner-latest$

wolkstein commented 11 years ago

ups, unintentionally issue closed button clicked.

meee1 commented 11 years ago

you need to install System.Windows.Forms I think its lib-mono.*winforms

foobarbecue commented 11 years ago

I reported this issue as #187 but it was closed without fixing.

foobarbecue commented 11 years ago

I have all packages from the Ubuntu repository containing "mono" and "forms" in their name installed: libmono-system-winforms4.0-cil libmono-system-windows-forms4.0-cil system-windows-forms-datavisualization4.0-cil

Is there another package?

wolkstein commented 11 years ago

hello, i already have System.Windows.Forms installed on my system. maybe there is a mismatch between versions. however, at least the problem is done. today, after downloading latest MissionPlanner it was possible to start MP. but it crashed with an "System.Windows.Forms.SplitContainer doesn't implement interface System.ComponentModel.ISupportInitialize" error. google-ing this results a problem with mono 2.10. i update my mono to 3.0.7 via ppa "https://launchpad.net/~borgdylan/+archive/ppa". but now, additionally, i have to install the "Mono System.Xml.Linq" library. after this MP runs fine here. thx a lot for supporting me. keep your good work. MP is a great project.

AndKe commented 11 years ago

@wolkstein : I installed mono 3.0.7 Now I get a huge, and strange error about .config file... dud you see this before ?

andre@andre-OptiPlex-990:~/Linux/MP$ mono MissionPlanner.exe
log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/andre/Linux/MP/MissionPlanner.exe.config line 6)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSettings.get_AppSettings () [0x00000] in <filename unknown>:0 
  at log4net.Util.SystemInfo.GetAppSetting (System.String key) [0x00000] in <filename unknown>:0 
log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/andre/Linux/MP/MissionPlanner.exe.config line 6)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSettings.get_AppSettings () [0x00000] in <filename unknown>:0 
  at log4net.Util.SystemInfo.GetAppSetting (System.String key) [0x00000] in <filename unknown>:0 
log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/andre/Linux/MP/MissionPlanner.exe.config line 6)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSettings.get_AppSettings () [0x00000] in <filename unknown>:0 
  at log4net.Util.SystemInfo.GetAppSetting (System.String key) [0x00000] in <filename unknown>:0 
log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/andre/Linux/MP/MissionPlanner.exe.config line 6)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSettings.get_AppSettings () [0x00000] in <filename unknown>:0 
  at log4net.Util.SystemInfo.GetAppSetting (System.String key) [0x00000] in <filename unknown>:0 
log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/andre/Linux/MP/MissionPlanner.exe.config line 6)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSettings.get_AppSettings () [0x00000] in <filename unknown>:0 
  at log4net.Util.SystemInfo.GetAppSetting (System.String key) [0x00000] in <filename unknown>:0 
log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML.
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <startup> (/home/andre/Linux/MP/MissionPlanner.exe.config line 6)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 
  at System.Configuration.ConfigurationSettings.get_AppSettings () [0x00000] in <filename unknown>:0 
  at log4net.Util.SystemInfo.GetAppSetting (System.String key) [0x00000] in <filename unknown>:0 

Unhandled Exception:
System.DllNotFoundException: libc
  at (wrapper managed-to-native) System.IO.InotifyWatcher:ReadFromFD (intptr,byte[],intptr)
  at System.IO.InotifyWatcher.Monitor () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libc
  at (wrapper managed-to-native) System.IO.InotifyWatcher:ReadFromFD (intptr,byte[],intptr)
  at System.IO.InotifyWatcher.Monitor () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
wolkstein commented 11 years ago

hello, did you also install "libmono-system-xml-linq4.0-cil"? i have to do this on mono 3.0.7 before MP start up well.

AndKe commented 11 years ago

@wolkstein - I even tried mono-complete, and by that time, the library you mention was already installed. It's important to mention that I run x64 on 13.10 , and 13.10 is not mentioned in that PPA... so I'm not sure if the problem can be related to that..

meee1 commented 11 years ago

please try starting with MONO_LOG_LEVEL=debug mono MissionPlanner.exe

this will give me a better idea on the actual issue. also try removing the .config files like the original error message states

AndKe commented 11 years ago

@meee1 Thanks for looking into this. Installed mono 3.0.7 again, libmono-system-xml-linq4.0-cil already installed Great.. (logged, there's still a lot of logged errors that may be useful to you.) now: reverted to mono 2.10x (stable mono used in Ubuntu) It crashed after splash-screen with:

andre@andre-OptiPlex-990:~/MP$ MONO_LOG_LEVEL=debug mono MissionPlanner.exe >>logmono210.txt
Stacktrace:

  at MissionPlanner.GCSViews.FlightData.InitializeComponent () <0x01699>
  at MissionPlanner.GCSViews.FlightData..ctor () <0x0045f>
  at (wrapper remoting-invoke-with-check) MissionPlanner.GCSViews.FlightData..ctor () <0xffffffff>
  at MissionPlanner.MainV2..ctor () <0x01273>
  at (wrapper remoting-invoke-with-check) MissionPlanner.MainV2..ctor () <0xffffffff>
  at MissionPlanner.Program.Main (string[]) <0x002d3>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    mono() [0x49d619]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0xfbb0) [0x7fa448ab0bb0]
    /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7fa44870ff77]
    /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7fa4487135e8]
    mono() [0x5d35df]
    mono() [0x5d3662]
    mono() [0x49e22f]
    mono() [0x49e8a4]
    [0x41683bba]

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Aborted (core dumped)

Made another log, both logs are available to you from http://madhacker.org/log_mono210.txt http://madhacker.org/log_mono307.txt

I hope we can make it work (again) with stable mono provided with Ubuntu. Please say so if you need me to try something else. Thanks.

macrokernel commented 9 years ago

Here is a work-around that helped me:

cd MissionPlanner # the directory you have installed MissionPlanner to
ln -s MissionPlanner.exe 'mono MissionPlanner.exe'
./ArdupilotMegaPlanner10.exe