Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HouseTeleporterTile.Initialize() produces array out of bounds exception on startup #5036

Open
sayotte opened this issue Dec 24, 2022 · 1 comment

Comments

@sayotte
Copy link

sayotte commented Dec 24, 2022

https://github.com/ServUO/ServUO/blob/master/Scripts/Multis/Houses/HouseTeleporterTile.cs#L19

Getting this error on a fresh build / pristine server:

[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Server.Multis.HouseTeleporterTile.Initialize () [0x00006] in <df87df4d7fc14ca79d67b45c04d8d8c3>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007c] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0009a] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at Server.ScriptCompiler.Invoke (System.String method) [0x00091] in <f242fcc245a54a6b9f5c59ca96742211>:0 
  at Server.Core.Setup (System.String[] args) [0x006ab] in <f242fcc245a54a6b9f5c59ca96742211>:0 
  at ServUO.ServUO.Main (System.String[] args) [0x00001] in <719e40fa258c4397939c7b3071d92c51>:0 

I've verified with strace that the server is accessing the file tiledata.mul, so I believe the array should be populated.

@sayotte
Copy link
Author

sayotte commented Dec 25, 2022

Have just confirmed this with a fresh set of UO client files from the Broadsword installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant