RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Windows - Mono Conversion Crash

Giraffelitis

Wanderer
I am just starting running this on a Mono and I am getting the following crash error

Code:
Server Crash Report
===================
 
RunUO Version 2.2, Build 4982.35801
Operating System: Unix 3.5.0.17
.NET Framework: 4.0.30319.17020
Time: 8/22/2013 10:01:01 PM
Mobiles: 15154
Items: 128575
Exception:
System.DllNotFoundException: libz.so.1.2.3.4
  at (wrapper managed-to-native) Server.Network.CompressorUnix64:compress2 (byte[],ulong&,byte[],int,Server.Network.ZLibQuality)
  at Server.Network.CompressorUnix64.Compress (System.Byte[] dest, System.Int32& destLength, System.Byte[] source, Int32 sourceLength, ZLibQuality quality) [0x00000] in <filename unknown>:0
  at Server.Network.Compression.Pack (System.Byte[] dest, System.Int32& destLength, System.Byte[] source, Int32 sourceLength, ZLibQuality quality) [0x00000] in <filename unknown>:0
  at Server.Network.DisplayGumpPacked.WritePacked (Server.Network.PacketWriter src) [0x00000] in <filename unknown>:0
  at Server.Network.DisplayGumpPacked.Flush () [0x00000] in <filename unknown>:0
  at Server.Gumps.Gump.Compile (Server.Network.NetState ns) [0x00000] in <filename unknown>:0
  at Server.Gumps.Gump.SendTo (Server.Network.NetState state) [0x00000] in <filename unknown>:0
  at Server.Mobile.SendGump (Server.Gumps.Gump g, Boolean throwOnOffline) [0x00000] in <filename unknown>:0
  at Server.Mobile.SendGump (Server.Gumps.Gump g) [0x00000] in <filename unknown>:0
  at Xanthos.Motd.NewsGump.SafelySendGumpTo (Server.Mobile mobile, Boolean admin) [0x00000] in <filename unknown>:0
  at Xanthos.Motd.NewsGump.MOTD_Login (Server.LoginEventArgs args) [0x00000] in <filename unknown>:0
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___LoginEventArgs (Server.LoginEventArgs)
  at Server.EventSink.InvokeLogin (Server.LoginEventArgs e) [0x00000] in <filename unknown>:0
  at Server.Network.PacketHandlers.DoLogin (Server.Network.NetState state, Server.Mobile m) [0x00000] in <filename unknown>:0
  at Server.Network.PacketHandlers+LoginTimer.OnTick () [0x00000] in <filename unknown>:0
  at Server.Timer.Slice () [0x00000] in <filename unknown>:0
  at Server.Core.Main (System.String[] args) [0x00000] in <filename unknown>:0
 
Clients:
- Count: 1
+ 72.19.62.41: (account = Giraffelitis) (mobile = 0x6 'Syscio')

I used this code to compile the new core

gmcs -optimize -unsafe -d:MONO -out:RunUO.exe -win32icon:Server/runuo.ico -recurse:Server/*.cs

and this is the libraries update where i think the error is coming from.

echo "<configuration>" >> RunUO.exe.config echo " <dllmap dll=\"libz\" target=\"libz.so.1.2.3.4\"/>" >> RunUO.exe.config echo "</configuration>" >> RunUO.exe.config

from this thread
http://www.runuo.com/community/threads/runuo-on-ubuntu-13-04-mono.534406/
 

Giraffelitis

Wanderer
Oh and forgot to mention ... It compiles just fine and i can login but as soon as the character hits the world is when it crashes.

I tried this as a non Staff character and it crashed and rebooted and got into a crash loop every second it spit out a crash log ... Here is one of those logs

Code:
Server Crash Report
===================
 
RunUO Version 2.2, Build 4982.35801
Operating System: Unix 3.5.0.17
.NET Framework: 4.0.30319.17020
Time: 8/22/2013 10:34:03 PM
Mobiles: 15156
Items: 128515
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/root/Relapse/Server/Saves/Staff Runebook/Rune Accounts.xml".
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url, System.String& absoluteUriString) [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadTextReader (Int32 remained) [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.PeekChar () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at Mono.Xml.EntityResolvingXmlReader.Read () [0x00000] in <filename unknown>:0
  at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml.DTDValidatingReader.Read () [0x00000] in <filename unknown>:0
  at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlValidatingReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.Load (System.String filename) [0x00000] in <filename unknown>:0
  at Joeku.SR.SR_Load.ReadData (System.String filePath) [0x00000] in <filename unknown>:0
  at Joeku.SR.SR_Main.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 Server.ScriptCompiler.Invoke (System.String method) [0x00000] in <filename unknown>:0
  at Server.Core.Main (System.String[] args) [0x00000] in <filename unknown>:0
 
Clients:
- Count: 0
 

Giraffelitis

Wanderer
This has been resolved for now.

I changed this
echo "<configuration>" >> RunUO.exe.config echo " <dllmap dll=\"libz\" target=\"libz.so.1.2.3.4\"/>" >> RunUO.exe.config echo "</configuration>" >>

to this
echo "<configuration>" >> RunUO.exe.config echo " <dllmap dll=\"libz\" target=\"//usr/lib/libz.so/"/>" >> RunUO.exe.config echo "</configuration>" >>

It fixed the problem and when I did some testing and figured it was working fine so I moved the data over from my windows server which was what i originally used to setup the server anyways and when i did so it started crashing the exact same way as before I then changed the config file back to its original state and it works fine now.

I dont understand it and it doesnt make any sense but maybe this will help someone in the future
 
Top