Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004746opensim[REGION] OpenSim Corepublic2010-06-01 04:522011-08-26 08:02
Assigned To 
PlatformOperating SystemOperating System Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0004746: RegionLoader loads *.dll, doesn't need to
DescriptionOn server startup, ModuleLoader looks up for all region modules by loading ALL
dlls in the bin, which is not a clever thing to do. On a dev box, this can simply lead to the opensim failing trying to load some test DLLs, in any environment loading ALL dlls is excessive, especially considering that there is no way to un-load them.

A nicer solution would be to move all the loadable DLLs into a a subdir, but
meanwhile the following simple tweak seems to work.

This can be picked as branch "module-loader-fix" at

git at

Additional Information@@ -66,9 +66,10 @@ namespace OpenSim.Region.Framework
             DirectoryInfo dir = new DirectoryInfo(moduleDir);
             List<IRegionModule> modules = new List<IRegionModule>();
- foreach (FileInfo fileInfo in dir.GetFiles("*.dll"))
+ foreach (FileInfo fileInfo in dir.GetFiles("OpenSim.Region.*.dll"))
- modules.AddRange(LoadRegionModules(fileInfo.FullName, scene));
+ if( !fileInfo.FullName.ToLower().Contains("tests"))
+ modules.AddRange(LoadRegionModules(fileInfo.FullName, scene));
             return modules;
TagsNo tags attached.
Git Revision or version number12931
Run ModeStandalone (1 Region)
Physics EngineBasicPhysics
Script Engine
Environment.NET / Windows32
Mono VersionNone
Attached Files

- Relationships

-  Notes
Revolution (reporter)
2010-06-01 09:14

IRegionModules will be decapriated soon, and they are the only modules that are loaded via that loader.
makopoppo (manager)
2011-08-26 08:02

Is this issue to be deprecated when "Loading Region's modules (old style)" line is removed?

- Issue History
Date Modified Username Field Change
2010-06-01 04:52 AlexRa New Issue
2010-06-01 04:52 AlexRa Git Revision => 12931
2010-06-01 04:52 AlexRa SVN Revision => 0
2010-06-01 04:52 AlexRa Run Mode => Standalone (1 Region)
2010-06-01 04:52 AlexRa Physics Engine => BasicPhysics
2010-06-01 04:52 AlexRa Environment => .NET / Windows32
2010-06-01 04:52 AlexRa Mono Version => None
2010-06-01 09:14 Revolution Note Added: 0015569
2011-08-26 08:02 makopoppo Note Added: 0019736
2011-08-26 08:02 makopoppo Status new => acknowledged

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker