Phred

Member
*needed to edit to give kudos for help*
Just wanted to say thank you to Kalamus and Insanity in the chat room to help get all the other errors resolved!

Code:
Server Crash Report
===================
RunUO Version 0.5, Build 5150.37444
Operating System: Unix 3.13.0.7
.NET Framework: 4.0.30319.17020
Time: 2/7/2014 2:52:57 AM
Mobiles: 0
Items: 2
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Invalid handle to path "/var/ServUO/[Unknown]"
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
  at System.IO.StreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
  at System.IO.StreamReader.Read () [0x00000] in <filename unknown>:0
  at System.TermInfoDriver.ReadKeyInternal (System.Boolean& fresh) [0x00000] in <filename unknown>:0
  at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
  at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
  at System.Console.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
  at Server.Misc.AccountPrompt.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
 
Have you tried updating Mono package to 3.4? .. oh..linux Mint.. that would be Other according to Mono's homepage..and latest version for other is version 1.2 ..sure you got the right mono package installed?
 
Maybe you have to Modify some Path or Folder Path, i remember Linux and Mono that want "\\" within Path of File

Example c:\\program\\

Control It on your Script
 
I tried looking inside Main.cs (where the crash seems to originate from) but couldn't find anything conclusive regarding where exactly it fails... I tried tweaking a couple paths but that didn't do it. It's unfortunate that the crash doesn't report the exact line which failed, that would have narrowed it down a lot more...

Best regards,
UOGadget
 
Try to Use "-Debug Mode" for see more Info of Crash

See this Post to find Solution : "Here"

Or see this other Post in Russian "Here". Traslate Page to simple Read
 
Last edited:
from looking at the error..it looks like an IO exception..not reading a file correctly in your "var\Servuo\[Unknown]" folder..did you miss telling it what file to read from that folder in your path settings?
 
Yeah, and that's really odd, because I have no idea what exactly it's trying to open in that location. I have all my paths set correctly in Scripts/Misc/DataPath.cs and in Server/OpenUOSDK.cs, is there anything else I need to change to make it work?
 
possible a corrupt save file.. test this theory try .. backing up the save folder.. once backed up .. delete the folder and see if it loads without error
 
Umm I don't have a save file yet (there is no "Saves" folder), I'm unable to start the server in full even once so that it makes a save file... So, I don't have anything to delete there :( Not sure what else to do, I tried a few things but nothing actually helped.
Out of curiosity, was anyone able to successfully run ServUO in a Linux environment (and is currently happily running it), or is it basically not supported / not supposed to be possible at the moment? (judging by the presence of the Mono forum, I think it should be possible, but for the most part this forum contains messages about failed attempts to run ServUO with very few fully solved issues... :( )
I'm currently running ServUO from under a virtual machine with Windows inside it (works perfectly well from there), but I'd really love to make it work correctly from my main Linux environment if possible...
Once again, big thanks to everyone who is actively trying to help!
 
not sure if Insanity and Team has made any mono changes to the core..but should be same as setting it up as RunUO for the most part
 
Yep, I was able to set up stock RunUO 2.5 under Linux/Mono without any issues whatsoever, seems to be working just great... not sure why ServUO doesn't want to play ball here... (but yes, there is a number of changes, such as Open UO SDK intergration etc., so I guess there may be complications...)
 
still get crash under *nix. sadly..

logs & etc:

----------------------------------------------------------------------------------------------

[root@Z /home/user/servuo]# uname -a
FreeBSD Z 10.0-RELEASE-p18 FreeBSD 10.0-RELEASE-p18 #8: Wed Feb 25 11:57:11 EET 2015 user@Z:/usr/obj/usr/src/sys/Z i386

----------------------------------------------------------------------------------------------

[root@Z /home/user/servuo]# mono -V

Mono JIT compiler version 3.12.1 (tarball Sun Apr 5 17:42:04 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notification: kqueue
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen

compiled ok, like this:

mcs -sdk:4.0 -out:ServUO.exe -d:MONO -d:Framework_4_0 -d:ServUO -optimize+ -unsafe -r:System,System.Configuration.Install,System.Data,System.Drawing,System.EnterpriseServices,System.Management,System.Security,System.ServiceProcess,System.Web,System.Web.Services,System.Windows.Forms,System.Xml,OpenUO.Core.dll,OpenUO.Ultima.dll,OpenUO.Ultima.Windows.Forms.dll,SevenZipSharp.dll -nowarn:219 -recurse:Server/*.cs

or -sdk:4.5


add path to DataPath.cs

private static string CustomPath = "/usr/home/user/servuo/UOClient/";

----------------------------------------------------------------------------------------------

ServUO last github master v11 publish.txt > 54 (??? im not shure.)

----------------------------------------------------------------------------------------------

RUN like this:

mono ServUO.exe

-----------------------------------------------------------------------------------------------

[root@Z /home/user/servuo]# cat Crash\ 9-5-2015-15-10-36.log
Server Crash Report
===================

RunUO Version 0.5, Build 5607.32641
Operating System: Unix 10.0.18.0
.NET Framework: 4.0.30319.17020
Time: 05/09/2015 15:10:36
Mobiles: 0
Items: 4
Exception:
System.DllNotFoundException: kernel32
at (wrapper managed-to-native) Server.Core/SafeNativeMethods:QueryPerformanceCounter (long&)
at Server.Core.get_TickCount () [0x00000] in <filename unknown>:0
at Server.Timer+TimerThread.ProcessChanged () [0x00000] in <filename unknown>:0
at Server.Timer+TimerThread.TimerMain () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0

Clients:
- Count: 0

[root@Z /home/user/servuo]# cat Crash\ 9-5-2015-15-10-48.log
Server Crash Report
===================

RunUO Version 0.5, Build 5607.32641
Operating System: Unix 10.0.18.0
.NET Framework: 4.0.30319.17020
Time: 05/09/2015 15:10:48
Mobiles: 0
Items: 3
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Invalid handle to path "/usr/home/user/servuo/[Unknown]"
at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.StreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
at System.IO.StreamReader.Read () [0x00000] in <filename unknown>:0
at System.TermInfoDriver.ReadKeyInternal (System.Boolean& fresh) [0x00000] in <filename unknown>:0
at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at System.Console.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at Server.Misc.AccountPrompt.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

[root@Z /home/user/servuo]# cat Crash\ 9-5-2015-15-11-0.log
Server Crash Report
===================

RunUO Version 0.5, Build 5607.32641
Operating System: Unix 10.0.18.0
.NET Framework: 4.0.30319.17020
Time: 05/09/2015 15:11:00
Mobiles: 0
Items: 3
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Invalid handle to path "/usr/home/user/servuo/[Unknown]"
at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.StreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
at System.IO.StreamReader.Read () [0x00000] in <filename unknown>:0
at System.TermInfoDriver.ReadKeyInternal (System.Boolean& fresh) [0x00000] in <filename unknown>:0
at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at System.Console.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at Server.Misc.AccountPrompt.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

[root@Z /home/user/servuo]# cat Crash\ 9-5-2015-15-11-11.log
Server Crash Report
===================

RunUO Version 0.5, Build 5607.32641
Operating System: Unix 10.0.18.0
.NET Framework: 4.0.30319.17020
Time: 05/09/2015 15:11:11
Mobiles: 0
Items: 3
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: Invalid handle to path "/usr/home/user/servuo/[Unknown]"
at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
at System.IO.StreamReader.ReadBuffer () [0x00000] in <filename unknown>:0
at System.IO.StreamReader.Read () [0x00000] in <filename unknown>:0
at System.TermInfoDriver.ReadKeyInternal (System.Boolean& fresh) [0x00000] in <filename unknown>:0
at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at System.Console.ReadKey (Boolean intercept) [0x00000] in <filename unknown>:0
at Server.Misc.AccountPrompt.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

[root@Z /home/user/servuo]# cat Guide.log
Could not find file "/usr/home/user/servuo/Data\Guide\Definitions.cfg".
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.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0
at Server.Mobiles.GuideHelper.Initialize () [0x00000] in <filename unknown>:0
--------------------------------------------------------------------------
Could not find file "/usr/home/user/servuo/Data\Guide\Definitions.cfg".
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.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0
at Server.Mobiles.GuideHelper.Initialize () [0x00000] in <filename unknown>:0
--------------------------------------------------------------------------
Could not find file "/usr/home/user/servuo/Data\Guide\Definitions.cfg".
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.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0
at Server.Mobiles.GuideHelper.Initialize () [0x00000] in <filename unknown>:0
--------------------------------------------------------------------------
Could not find file "/usr/home/user/servuo/Data\Guide\Definitions.cfg".
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.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0
at Server.Mobiles.GuideHelper.Initialize () [0x00000] in <filename unknown>:0
--------------------------------------------------------------------------
Could not find file "/usr/home/user/servuo/Data\Guide\Definitions.cfg".
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.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0
at Server.Mobiles.GuideHelper.Initialize () [0x00000] in <filename unknown>:0
--------------------------------------------------------------------------

still need dev fix this "path bug".

server only for win platform is.. "dark hole" )

RunUO 2.5 on this platform run&work correctly.

pls
apipe_in_ua_cloud_index_php_s_1vwMOxKsyyMM4lg_download_.jpg
 
Last edited:
At last, i have compile and run servuo on *nix :rolleyes:

compile like this:

mcs /target:library /out:"Ultima.dll" /recurse:"/home/user/servuo/Ultima/*.cs" /d:ServUO /nowarn:0618 /debug /nologo /optimize /unsafe -r:System.Drawing

mcs /r:"Ultima.dll" /target:exe /out:"ServUO.exe" /recurse:"/home/user/servuo/Server/*.cs" /d:ServUO /d:MONO /nowarn:0618 /debug /nologo /optimize /unsafe -r:System.Drawing,Ultima.dll

mono --optimize=all --server ServUO.exe

in game in admin acc:
[xmlload Spawns/felucca.xml
[xmlload Spawns/ilshenar.xml
[xmlload Spawns/malas.xml
[xmlload Spawns/termur.xml
[xmlload Spawns/tokuno.xml
[xmlload Spawns/trammel.xml
[genchampions

and it looks like everything is working! yuhuu:)
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back