Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Mono

Server Support on Mono Forum dedicated to RunUO 2.0 on Mono.

Reply
 
Thread Tools Display Modes
Old 10-16-2007, 04:53 AM   #1 (permalink)
Lurker
 
Join Date: Oct 2007
Age: 20
Posts: 3
Default server startup problem

Server startup fails with following errors. Using mono 1.2.5.1 and latest svn (264) version of runuo without any extra patches. There is custom scripts and might be related to them but how I'm supposed to find guilty script?

Code:
. . . . ENTER: Server.Core:VerifySerialization (System.Reflection.Assembly)([System.Reflection.Assembly:0x41db0], )
. . . . . ENTER: (wrapper managed-to-native) System.Object:__icall_wrapper_mono_array_new_specific (intptr,int)(0x85ddb98, 1, )
. . . . . LEAVE: (wrapper managed-to-native) System.Object:__icall_wrapper_mono_array_new_specific (intptr,int)[System.Type[]:0x29bd0]
. . . . . ENTER: (wrapper stelemref) System.Object:stelemref (object,intptr,object)([System.Type[]:0x29bd0], (nil), [TYPE:Server.Serial)
. . . . . LEAVE: (wrapper stelemref) System.Object:stelemref (object,intptr,object)
. . . . . ENTER: System.Reflection.Assembly:GetTypes ()(this:0x41db0[System.Reflection.Assembly RunUO.exe], )
. . . . . . ENTER: (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)(this:0x41db0[System.Reflection.Assembly RunUO.exe], 0, )

** ERROR **: generic_params table claims method has generic parameters, but signature says it doesn't
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes (bool) <0x00004>
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes (bool) <0xffffffff>
  at System.Reflection.Assembly.GetTypes () <0x0001a>
  at Server.Core.VerifySerialization (System.Reflection.Assembly) <0x0007c>
  at Server.Core.VerifySerialization () <0x00065>
  at Server.ScriptCompiler.Compile (bool,bool) <0x0013f>
  at Server.Core.Main (string[]) <0x0090d>
  at (wrapper runtime-invoke) Server.Core.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>
mkovero is offline   Reply With Quote
Old 10-16-2007, 05:51 AM   #2 (permalink)
Newbie
 
Join Date: Aug 2004
Age: 24
Posts: 35
Default

Ye, this is my exception too.
The main problem of this exception is generic types and delegates in two files (Scripts/Misc/Emitter.cs and
Scripts/Commands/Generic/Extensions/BaseExtension.cs)
Here are workaroungs for these problems. (I simply moved out anonymous function)
Attached Files
File Type: cs Emitter.cs (14.9 KB, 87 views)
File Type: cs BaseExtension.cs (3.5 KB, 71 views)
seirge is offline   Reply With Quote
Old 10-16-2007, 03:09 PM   #3 (permalink)
Lurker
 
Join Date: Oct 2007
Age: 20
Posts: 3
Default

Hi, got it running but crashes during autosave:
Code:
Exception:
System.InvalidCastException: Cannot cast from source type to destination type.
  at System.Collections.Generic.Dictionary`2+ValueCollection[Server.Serial,Server.Mobile].System.Collections.ICollection.Copy
To (System.Array , Int32 ) [0x00000]
  at System.Collections.ArrayList.InsertRange (Int32 index, ICollection c) [0x00000]
  at System.Collections.ArrayList.AddRange (ICollection c) [0x00000]
  at System.Collections.ArrayList..ctor (ICollection c) [0x00000]
  at Server.Misc.AutoSave.Save () [0x00000]
  at Server.Timer+DelayCallTimer.OnTick () [0x00000]
  at Server.Timer.Slice () [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]
mkovero is offline   Reply With Quote
Old 10-16-2007, 10:54 PM   #4 (permalink)
Newbie
 
Join Date: Aug 2004
Age: 24
Posts: 35
Default

It seems you use custom autosave.cs
Please, show it.
seirge is offline   Reply With Quote
Old 10-17-2007, 04:33 AM   #5 (permalink)
Lurker
 
Join Date: Oct 2007
Age: 20
Posts: 3
Default

Thanks for notice, restored old autosave.cs and it works fine now
mkovero is offline   Reply With Quote
Old 12-04-2007, 07:14 PM   #6 (permalink)
Newbie
 
Join Date: Sep 2005
Age: 21
Posts: 11
Default

Quote:
Originally Posted by seirge View Post
Ye, this is my exception too.
The main problem of this exception is generic types and delegates in two files (Scripts/Misc/Emitter.cs and
Scripts/Commands/Generic/Extensions/BaseExtension.cs)
Here are workaroungs for these problems. (I simply moved out anonymous function)
OK. Great.
But, appeared new error in World Loading

** ERROR **: file mini.c: line 4661 (mono_method_to_ir): assertion failed: (mono_method_signature(cmethod)->is_inflated)
aborting...


Suggestion?


Mono version 1.2.5.2
Architecture x86
Mono Windows

Thanks.
rames is offline   Reply With Quote
Old 12-17-2007, 06:26 PM   #7 (permalink)
Newbie
 
Join Date: Sep 2005
Age: 21
Posts: 11
Default

Quote:
Originally Posted by rames View Post
OK. Great.
But, appeared new error in World Loading

** ERROR **: file mini.c: line 4661 (mono_method_to_ir): assertion failed: (mono_method_signature(cmethod)->is_inflated)
aborting...


Suggestion?


Mono version 1.2.5.2
Architecture x86
Mono Windows

Thanks.
solution: Linux again, but it is getting close to run



bye!
rames is offline   Reply With Quote
Old 02-01-2008, 07:52 AM   #8 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 23
Posts: 41
Default

Quote:
Originally Posted by seirge View Post
Ye, this is my exception too.
The main problem of this exception is generic types and delegates in two files (Scripts/Misc/Emitter.cs and
Scripts/Commands/Generic/Extensions/BaseExtension.cs)
Here are workaroungs for these problems. (I simply moved out anonymous function)
I'm changed these files
using latest svn and ml

but have an error

Code:
%mono --debug RunUO.exe
RunUO - [www.runuo.com] Version 2.0, Build 2952.21674
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...Error:
System.Exception: Compiler failed to produce the assembly. Stderr='Scripts/Mondain's Legacy/Engines/Perless System/PeerlessAltar.cs(524,30): warning CS0472: Your code is *very* likely incorrect;   The result of comparing `System.TimeSpan' against null is always True;  mcs supports this to be compatible with the broken CSC behavior

GLib-ERROR **: gmem.c:172: failed to allocate 2097152 bytes
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.build_metadata (System.Reflection.Emit.ModuleBuilder) <0x00004>
  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.build_metadata (System.Reflection.Emit.ModuleBuilder) <0xffffffff>
  at System.Reflection.Emit.ModuleBuilder.Save () <0x004e7>
  at System.Reflection.Emit.AssemblyBuilder.Save (string,System.Reflection.PortableExecutableKinds,System.Reflection.ImageFileMachine) <0x0046b>
  at System.Reflection.Emit.AssemblyBuilder.Save (string) <0x00014>
  at Mono.CSharp.CodeGen.Save (string) <0x00038>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00d8a>
  at Mono.CSharp.Driver.Main (string[]) <0x00055>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>
', Stdout=''
  at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00255] in /usr/ports/lang/mono/work/mono-1.2.5.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:235
  at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00012] in /usr/ports/lang/mono/work/mono-1.2.5.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:138
  at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00015] in /usr/ports/lang/mono/work/mono-1.2.5.1/mcs/class/System/System.CodeDom.Compiler/CodeDomProvider.cs:127
  at Server.ScriptCompiler.CompileCSScripts (Boolean debug, Boolean cache, System.Reflection.Assembly& assembly) [0x00000]
  at Server.ScriptCompiler.Compile (Boolean debug, Boolean cache) [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]
This exception is fatal, press return to exit
SysError is offline   Reply With Quote
Old 02-02-2008, 03:55 AM   #9 (permalink)
Newbie
 
Join Date: Aug 2004
Age: 24
Posts: 35
Default

Out of memory? Check how many memory you have and how many memory does runuo use hile compiling.
seirge is offline   Reply With Quote
Old 06-12-2008, 04:15 PM   #10 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 23
Posts: 41
Default FreeBSD mono 1.9.1. crash (((

using FreeBSD 6.2
mono 1.9.1

I used RunUO from Genova project
it have all fixes (last svn runuo, ml, mono fixes, and other modifications) to start server on mono.
on windows it works, but on my OS it crashes.


if u have FreeBSD, please help me to test it and find bug.

here my crash log :

Code:
GeNova Project [code.google.com/p/genovaproject] Open-Source Server from UO.
RunUO - [www.runuo.com] Version 2.0, Build 3085.15732
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...ScriptCompiler: : aborting...
ScriptCompiler: : Stacktrace:
ScriptCompiler: :   at System.Exception.ToString () <0xffffffff>
ScriptCompiler: :   at System.Exception.ToString () <0x000f7>
ScriptCompiler: :   at (wrapper runtime-invoke) System.Object.runtime_invoke_string (object,intptr,intptr,intptr) <0xffffffff>
done (0 errors, 2 warnings)
Warnings:
 + _GeNova_/Outros_Projetos_Acoplado/Suporte_Completo_ML/Mondain's Legacy/Engines/Peerless System/PeerlessAltar.cs:
    CS0472: Line 527: The result of comparing `System.TimeSpan' against null is always `true'. This operation is undocumented and it is temporary supported for compatibility reasons only
 + Mobiles/Healers/BaseHealer.cs:
    CS0114: Line 18: `Server.Mobiles.BaseHealer.IsActiveVendor' hides inherited member `Server.Mobiles.BaseVendor.IsActiveVendor'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword
    CS0114: Line 20: `Server.Mobiles.BaseHealer.IsInvulnerable' hides inherited member `Server.Mobiles.BaseVendor.IsInvulnerable'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Exiting...done
SysError is offline   Reply With Quote
Old 06-18-2008, 02:43 AM   #11 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 23
Posts: 41
Default :(

freeBSD 6.2 mono 1.9.1

l

used latest runuo svn - 297 + ML Release SVN 297 w-Neruns (Simple Install) + all fixes on mono support forum

http://www.runuo.com/forums/custom-s...uns-distro.htm

Code:
%gmcs -d:MONO -unsafe+ -optimize- -out:RunUO.exe -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,Ultima.dll -nowarn:219 -recurse:'/usr/home/uo/compile/3in1/Server/*.cs'
/usr/home/uo/compile/3in1/Server/TileMatrix.cs(405,78): warning CS0618: `System.IO.FileStream.Handle' is obsolete: `Use SafeFileHandle instead'
/usr/home/uo/compile/3in1/Server/TileMatrix.cs(478,66): warning CS0618: `System.IO.FileStream.Handle' is obsolete: `Use SafeFileHandle instead'
/usr/home/uo/compile/3in1/Server/TileMatrixPatch.cs(105,83): warning CS0618: `System.IO.FileStream.Handle' is obsolete: `Use SafeFileHandle instead'
/usr/home/uo/compile/3in1/Server/TileMatrixPatch.cs(174,91): warning CS0618: `System.IO.FileStream.Handle' is obsolete: `Use SafeFileHandle instead'
/usr/home/uo/compile/3in1/Server/Item.cs(1922,37): warning CS0169: The private method `Server.Item.SetSaveFlag(ref Server.Item.SaveFlag, Server.Item.SaveFlag, bool)' is never used
/usr/home/uo/compile/3in1/Server/Timer.cs(380,36): warning CS0414: The private field `Server.Timer.m_QueueCountAtSlice' is assigned but its value is never used
/usr/home/uo/compile/3in1/Server/ScriptCompiler.cs(531,30): warning CS0169: The private method `Server.ScriptCompiler.LoadScriptedAssembly(System.Collections.Generic.List<System.Reflection.Assembly>, string, Server.ScriptCompiler.Compiler, bool)' is never used
/usr/home/uo/compile/3in1/Server/Gumps/Gump.cs(370,32): warning CS0169: The private method `Server.Gumps.Gump.Compile()' is never used
/usr/home/uo/compile/3in1/Server/Persistence/FileQueue.cs(39,37): warning CS0414: The private field `Server.FileQueue.Chunk.offset' is assigned but its value is never used
Compilation succeeded - 9 warning(s)
%mono RunUO.exe                                                                                                                                               RunUO - [www.runuo.com] Version 2.0, Build 3091.16902
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...ScriptCompiler: : aborting...
ScriptCompiler: : Stacktrace:
ScriptCompiler: :   (null)
ScriptCompiler: :   (null)
ScriptCompiler: :   at System.Reflection.Emit.TypeBuilder.CreateType () <0x00361>
ScriptCompiler: :   at Mono.CSharp.TypeContainer.CloseType () <0x00076>
ScriptCompiler: :   at Mono.CSharp.RootContext.CloseTypes () <0x001c9>
ScriptCompiler: :   at Mono.CSharp.Driver.MainDriver (string[]) <0x00a3d>
ScriptCompiler: :   at Mono.CSharp.Driver.Main (string[]) <0x00055>
ScriptCompiler: :   at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>
done (0 errors, 2 warnings)
Warnings:
 + Nerun's Distro/Customs/New/Commands/ChampionSpawnController/ChampionSpawnController.cs:
    CS0168: Line 437: The variable `cs' is declared but never used
 + Mondain's Legacy/Engines/Peerless System/PeerlessAltar.cs:
    CS0472: Line 527: The result of comparing `System.TimeSpan' against null is always `true'. This operation is undocumented and it is temporary supported for compatibility reasons only
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Exiting...done
SysError is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5