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!

Server Restarts on Player Connect

Server Restarts on Player Connect

Running this with Ubuntu 8.10 and Linux. I started copying over some custom scripts and saves, and after a bit of editing got the server started with no errors, pointed to a custom data path.

Something weird happens however when a player goes to connect. The area of my custom map I had made appears, so does a custom building there. Their paperdoll looks correct... but after about 1 second, there is a disconnect.

The server spits out:

Code:
Error:
System.DllNotFoundException: libz
  at (wrapper managed-to-native) Server.Network.CompressorUnix32:compress2 (byte[],int&,byte[],int,Server.Network.ZLibQuality)
  at Server.Network.CompressorUnix32.Compress (System.Byte[] dest, System.Int32& destLength, System.Byte[] source, Int32 sourceLength, ZLibQuality quality) [0x00000]
  at Server.Network.Compression.Pack (System.Byte[] dest, System.Int32& destLength, System.Byte[] source, Int32 sourceLength, ZLibQuality quality) [0x00000]
  at Server.Network.DisplayGumpPacked.WritePacked (Server.Network.PacketWriter src) [0x00000]
  at Server.Network.DisplayGumpPacked.Flush () [0x00000]
  at Server.Gumps.Gump.Compile (Server.Network.NetState ns) [0x00000]
  at Server.Gumps.Gump.SendTo (Server.Network.NetState state) [0x00000]
  at Server.Mobile.SendGump (Server.Gumps.Gump g, Boolean throwOnOffline) [0x00000]
  at Server.Mobile.SendGump (Server.Gumps.Gump g) [0x00000]
  at Server.Engines.VeteranRewards.RewardSystem.EventSink_Login (Server.LoginEventArgs e) [0x00000]
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_LoginEventArgs (Server.LoginEventArgs)
  at Server.EventSink.InvokeLogin (Server.LoginEventArgs e) [0x00000]
  at Server.Network.PacketHandlers.DoLogin (Server.Network.NetState state, Server.Mobile m) [0x00000]
  at Server.Network.PacketHandlers+LoginTimer.OnTick () [0x00000]
  at Server.Timer.Slice () [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]

I seem to be missing something zlib related? :confused:
 

stormwolff

Knight
It has been a while but I am pretty sure you need to have both zlib.dll and zlib32.dll in your RunUO folder. If you have both of those then it may be some other kind of error.

Get zlib32.dll here:
http://www.runuo.com/mark/zlib32.dll

I also attached a zip of the zlib.dll you can find it below.
 

Attachments

  • zlib.zip
    32.2 KB · Views: 20
I added both of those files to /home/WoG/RunUO, but I'm still receiving the same error. :eek:

Is the main RunUO folder not the right place for these files?

EDIT: I believe my problem may lie in the fact I don't have the Linux equivelent of Zlib installed. A quick search of "libz" (yes, it's backwards) in the Synaptic Package Manager revealed the things I didn't have installed.
 
New weirdness

Ok so re-installing magically fixed the original issue. But now, I have a new issue, whenever a client of slightly higher version number tries to connect. I haven't tried with like-version client yet (server is running 6.0.0.0) except my own running Wine... but if a windows user can crash the server with a different version, that could be a serious exploit lol!

My terminal output running RunUO.exe with mono:

Code:
World: Loading...done (18425 items, 579 mobiles) (1.27 seconds)
Listening: 127.0.0.1:2593
Listening: 127.0.1.1:2593
Jail System: Starting
Jail System: 0 jailed players loaded.
Client: 192.168.1.1: Connected. [1 Online]
Login: 192.168.1.1: Valid credentials for 'admin'
Client: 192.168.1.22: Connected. [2 Online]
Client: 192.168.1.1: Disconnected. [1 Online] [admin]
Login: 192.168.1.22: Account 'admin' at character list
Error:
System.DllNotFoundException: libz
  at (wrapper managed-to-native) Server.Network.CompressorUnix32:compress2 (byte[],int&,byte[],int,Server.Network.ZLibQuality)
  at Server.Network.CompressorUnix32.Compress (System.Byte[] dest, System.Int32& destLength, System.Byte[] source, Int32 sourceLength, ZLibQuality quality) [0x00000] 
  at Server.Network.Compression.Pack (System.Byte[] dest, System.Int32& destLength, System.Byte[] source, Int32 sourceLength, ZLibQuality quality) [0x00000] 
  at Server.Network.DisplayGumpPacked.WritePacked (Server.Network.PacketWriter src) [0x00000] 
  at Server.Network.DisplayGumpPacked.Flush () [0x00000] 
  at Server.Gumps.Gump.Compile (Server.Network.NetState ns) [0x00000] 
  at Server.Gumps.Gump.SendTo (Server.Network.NetState state) [0x00000] 
  at Server.Mobile.SendGump (Server.Gumps.Gump g, Boolean throwOnOffline) [0x00000] 
  at Server.Mobile.SendGump (Server.Gumps.Gump g) [0x00000] 
  at Server.Engines.VeteranRewards.RewardSystem.EventSink_Login (Server.LoginEventArgs e) [0x00000] 
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_LoginEventArgs (Server.LoginEventArgs)
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_LoginEventArgs (Server.LoginEventArgs)
  at Server.EventSink.InvokeLogin (Server.LoginEventArgs e) [0x00000] 
  at Server.Network.PacketHandlers.DoLogin (Server.Network.NetState state, Server.Mobile m) [0x00000] 
  at Server.Network.PacketHandlers+LoginTimer.OnTick () [0x00000] 
  at Server.Timer.Slice () [0x00000] 
  at Server.Core.Main (System.String[] args) [0x00000] 
Crash: Backing up...done
Crash: Generating report...done
Crash: Restarting...done
jizaboz@BOZ:~/RunUO$ fixme:ole:CoGetContextToken stub
fixme:shell:URL_ParseUrl failed to parse L"System"

And what's REEEEALLY weird, is that after it spits out that, out pops a Wine window (I didn't even start wine?!) Which displays (even after restart and connecting from another machine instead of the host) :

Code:
RunUO - [www.runuo.com] Version 2.0, Build 3344.2856                            Core: Running on .NET Framework Version 2.0.50727                               Core: Optimizing for 2 processors                                               Scripts: Compiling C# scripts...Error:                                          System.ArgumentException: Empty path name is not legal.                            at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
Core: Running on .NET Framework Version 2.0.50727                               Core: Optimizing for 2 processors                                               Scripts: Compiling C# scripts...Error:                                          System.ArgumentException: Empty path name is not legal.                            at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess a
Core: Optimizing for 2 processors                                               Scripts: Compiling C# scripts...Error:                                          System.ArgumentException: Empty path name is not legal.                            at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
Scripts: Compiling C# scripts...Error:                                          System.ArgumentException: Empty path name is not legal.                            at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)                                                                   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeC
System.ArgumentException: Empty path name is not legal.                            at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)                                                                   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNa
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)                                                                   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)      at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(Com
nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)                                                                   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)      at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)
ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)                                                                   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)      at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)                                              at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)                                                                   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)      at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)                                              at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache, Assembly& assembly)
FileShare share)                                                                   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)      at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)                                              at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache, Assembly& assembly)                                                                     at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)
   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)      at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)                                              at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache, Assembly& assembly)                                                                     at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)                  at Server.Core.Main(String[] args)
.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames)      at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)                                              at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache, Assembly& assembly)                                                                     at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)                  at Server.Core.Main(String[] args)                                           This exception is fatal, press return to exit
   at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile(CompilerParameters options, String[] fileNames)                                              at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache, Assembly& assembly)                                                                     at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)                  at Server.Core.Main(String[] args)                                           This exception is fatal, press return to exit
rameters options, String[] fileNames)                                              at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache, Assembly& assembly)                                                                     at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)                  at Server.Core.Main(String[] args)                                           This exception is fatal, press return to exit
   at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Boolean cache, Assembly& assembly)                                                                     at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)                  at Server.Core.Main(String[] args)                                           This exception is fatal, press return to exit
bly& assembly)                                                                     at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)                  at Server.Core.Main(String[] args)                                           This exception is fatal, press return to exit
   at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache)                  at Server.Core.Main(String[] args)                                           This exception is fatal, press return to exit
   at Server.Core.Main(String[] args)                                           This exception is fatal, press return to exit
This exception is fatal, press return to exit

Anyone have any clue what's going on? A problem with custom scripts or something else?

EDIT: I notice the error is referring to libz, but I just installed libz (???)

I also did this, as noted in the main Linux thread:

If it crash when you or a client open a gump, make a symbolic link like this :

ln -s /usr/lib/libz.so.1 /usr/libz.so

(with root privileges)

EDIT: Duh, that link wasn't even needed. I fixed this by creating a config file that points to my libz stuff, as noted in the SVN313 for Mono release thread. Works now.. and least before adding any custom stuff heh-heh.
 
Top