TheLastRar/CLR-DEV9

Issues on Ubuntu 19.04 + PCSX2 1.5

Closed this issue · 5 comments

Attempted to load the plugin and by the stacktrace, it seems that it fails to read the config file. If I open the generated config, the file is blank :(

Stacktrace:

Initializing plugins...
	Init GS
	Init PAD
	Init SPU2
	Init CDVD
	Init USB
	Init FW
	Init DEV9
Init Mono Runtime
Loaded Plugin
Failed to load configuration section for dataContractSerializer.
  at System.Runtime.Serialization.Configuration.DataContractSerializerSection.UnsafeGetSection () [0x00026] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.DataContract.get_ConfigSection () [0x00007] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.DataContract.LoadKnownTypesFromConfig (System.Type type, System.Collections.Generic.Dictionary`2[TKey,TValue] typesChecked, System.Collections.Generic.Dictionary`2[System.Xml.XmlQualifiedName,System.Runtime.Serialization.DataContract]& knownDataContracts) [0x00000] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.DataContract.ImportKnownTypeAttributes (System.Type type, System.Collections.Generic.Dictionary`2[TKey,TValue] typesChecked, System.Collections.Generic.Dictionary`2[System.Xml.XmlQualifiedName,System.Runtime.Serialization.DataContract]& knownDataContracts) [0x00228] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.DataContract.ImportKnownTypeAttributes (System.Type type) [0x00008] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.ClassDataContract+ClassDataContractCriticalHelper.get_KnownDataContracts () [0x00031] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.ClassDataContract.get_KnownDataContracts () [0x00000] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize (System.Runtime.Serialization.XmlReaderDelegator reader, System.String name, System.String ns, System.Type declaredType, System.Runtime.Serialization.DataContract& dataContract) [0x0001b] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize (System.Runtime.Serialization.XmlReaderDelegator xmlReader, System.Type declaredType, System.Runtime.Serialization.DataContract dataContract, System.String name, System.String ns) [0x0000b] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.DataContractSerializer.InternalReadObject (System.Runtime.Serialization.XmlReaderDelegator xmlReader, System.Boolean verifyObjectName, System.Runtime.Serialization.DataContractResolver dataContractResolver) [0x00118] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions (System.Runtime.Serialization.XmlReaderDelegator reader, System.Boolean verifyObjectName, System.Runtime.Serialization.DataContractResolver dataContractResolver) [0x00072] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions (System.Runtime.Serialization.XmlReaderDelegator reader, System.Boolean verifyObjectName) [0x00000] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.XmlObjectSerializer.ReadObject (System.Xml.XmlDictionaryReader reader) [0x00007] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at System.Runtime.Serialization.XmlObjectSerializer.ReadObject (System.IO.Stream stream) [0x00017] in <cdcf79bf3c1841a3b037e95d0f144bcb>:0 
  at CLRDEV9.Config.ConfigFile.LoadConf (System.String iniFolderPath, System.String iniFileName) [0x0006c] in <b0887aa7b29e4a1980829203f5223716>:0 
  at CLRDEV9.CLR_DEV9.Init () [0x00005] in <b0887aa7b29e4a1980829203f5223716>:0 
InnitError

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.ThemeEngine' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.ThemeWin32Classic' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.KnownColors' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception. ---> System.DllNotFoundException: libc
  at (wrapper managed-to-native) System.Drawing.GDIPlus.uname(intptr)
  at System.Drawing.GDIPlus..cctor () [0x0006e] in <28acd72f175c471fb61f6959352c0e9f>:0 
   --- End of inner exception stack trace ---
  at System.Drawing.KnownColors..cctor () [0x0001a] in <28acd72f175c471fb61f6959352c0e9f>:0 
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at System.Drawing.Color.FromKnownColor (System.Drawing.KnownColor color) [0x00007] in <28acd72f175c471fb61f6959352c0e9f>:0 
  at System.Drawing.Color.get_Black () [0x00000] in <28acd72f175c471fb61f6959352c0e9f>:0 
  at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in <446d39cdea2740d599758d536e1069ad>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Forms.ThemeEngine..cctor () [0x00012] in <446d39cdea2740d599758d536e1069ad>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <446d39cdea2740d599758d536e1069ad>:0 
  at System.Windows.Forms.Control..ctor () [0x000d6] in <446d39cdea2740d599758d536e1069ad>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control..ctor()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <446d39cdea2740d599758d536e1069ad>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x0000d] in <446d39cdea2740d599758d536e1069ad>:0 
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <446d39cdea2740d599758d536e1069ad>:0 
  at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in <446d39cdea2740d599758d536e1069ad>:0 
  at System.Windows.Forms.Form..ctor () [0x00012] in <446d39cdea2740d599758d536e1069ad>:0 
  at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (System.Windows.Forms.IWin32Window owner, System.String text, System.String caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Boolean displayHelpButton) [0x0000c] in <446d39cdea2740d599758d536e1069ad>:0 
  at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (System.Windows.Forms.IWin32Window owner, System.String text, System.String caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon) [0x00000] in <446d39cdea2740d599758d536e1069ad>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox+MessageBoxForm..ctor(System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
  at System.Windows.Forms.MessageBox.Show (System.String text) [0x00000] in <446d39cdea2740d599758d536e1069ad>:0 
  at PSE.CLR_PSE_PluginLog.MsgBoxErrorTrapper (System.Exception e) [0x0003b] in <b0887aa7b29e4a1980829203f5223716>:0 
  at CLRDEV9.CLR_DEV9.Log_Fatal (System.Exception ex) [0x00000] in <b0887aa7b29e4a1980829203f5223716>:0 
  at CLRDEV9.CLR_DEV9.Init () [0x00054] in <b0887aa7b29e4a1980829203f5223716>:0 
  at PSE.CLR_PSE_DEV9.DEV9init () [0x00000] in <b0887aa7b29e4a1980829203f5223716>:0 
  at (wrapper native-to-managed) PSE.CLR_PSE_DEV9.DEV9init(System.Exception&)

ldd output:

ldd /usr/lib/i386-linux-gnu/pcsx2/mono_i386/usr/lib/libgdiplus.so
	linux-gate.so.1 (0xf7f06000)
	libglib-2.0.so.0 => /lib/i386-linux-gnu/libglib-2.0.so.0 (0xf7d27000)
	libcairo.so.2 => /lib/i386-linux-gnu/libcairo.so.2 (0xf7bd7000)
	libfreetype.so.6 => /lib/i386-linux-gnu/libfreetype.so.6 (0xf7b16000)
	libjpeg.so.8 => /lib/i386-linux-gnu/libjpeg.so.8 (0xf7a8b000)
	libtiff.so.5 => /lib/i386-linux-gnu/libtiff.so.5 (0xf7a06000)
	libgif.so.7 => /lib/i386-linux-gnu/libgif.so.7 (0xf79fb000)
	libpng16.so.16 => /lib/i386-linux-gnu/libpng16.so.16 (0xf79bd000)
	libexif.so.12 => /lib/i386-linux-gnu/libexif.so.12 (0xf7982000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7962000)
	libfontconfig.so.1 => /lib/i386-linux-gnu/libfontconfig.so.1 (0xf7915000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7733000)
	libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xf76ba000)
	libpixman-1.so.0 => /lib/i386-linux-gnu/libpixman-1.so.0 (0xf760a000)
	libxcb-shm.so.0 => /lib/i386-linux-gnu/libxcb-shm.so.0 (0xf7605000)
	libxcb.so.1 => /lib/i386-linux-gnu/libxcb.so.1 (0xf75d7000)
	libxcb-render.so.0 => /lib/i386-linux-gnu/libxcb-render.so.0 (0xf75c8000)
	libXrender.so.1 => /lib/i386-linux-gnu/libXrender.so.1 (0xf75bc000)
	libX11.so.6 => /lib/i386-linux-gnu/libX11.so.6 (0xf7470000)
	libXext.so.6 => /lib/i386-linux-gnu/libXext.so.6 (0xf745b000)
	libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf743e000)
	librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7434000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf732e000)
	libwebp.so.6 => /lib/i386-linux-gnu/libwebp.so.6 (0xf72ba000)
	libzstd.so.1 => /lib/i386-linux-gnu/libzstd.so.1 (0xf721f000)
	liblzma.so.5 => /lib/i386-linux-gnu/liblzma.so.5 (0xf71f3000)
	libjbig.so.0 => /lib/i386-linux-gnu/libjbig.so.0 (0xf71e4000)
	/lib/ld-linux.so.2 (0xf7f07000)
	libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf71a9000)
	libuuid.so.1 => /lib/i386-linux-gnu/libuuid.so.1 (0xf719f000)
	libXau.so.6 => /lib/i386-linux-gnu/libXau.so.6 (0xf719b000)
	libXdmcp.so.6 => /lib/i386-linux-gnu/libXdmcp.so.6 (0xf7194000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf718e000)
	libbsd.so.0 => /lib/i386-linux-gnu/libbsd.so.0 (0xf716d000)

Ive also attempted to copy a working config from a windows PC with no luck, as well as followed some of the things tried in this issue.
#15

I should also mention this is running on kernel 5.1.0-050100-generic

What is the contents of /etc/mono/config

The directory does not exist @TheLastRar
Does mono need to be installed for this to work? I assumed having the linked libraries would have sufficed.

Yes, I currently don't bundle enough of mono for it to be standalone

Edit: I mostly bundle just the architecture specific libs, along with some assemblies.

Assumed fixed by installing mono