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 startup problem

mkovero

Wanderer
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>
 

seirge

Wanderer
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)
 

Attachments

  • Emitter.cs
    14.9 KB · Views: 105
  • BaseExtension.cs
    3.5 KB · Views: 82

mkovero

Wanderer
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]
 

rames

Wanderer
seirge;718980 said:
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.
 

SysError

Wanderer
seirge;718980 said:
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

Wanderer
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

Wanderer
:(

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-...ains-legacy-simple-installs-neruns-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
 
Top