MantisBT - opensim
View Issue Details
0004971opensim[REGION] OpenSim Corepublic2010-08-23 16:122010-08-24 12:59
master (dev code) 
Standalone (Multiple Regions)
Mono / Linux32
0004971: Can create duplicate scenes with console create region command
By specifying an existing region name and ini file with the create region command it is possible to create any number of duplicate scenes for the region. This causes any avatars currently occupying the region to be logged out, and the region cannot be logged in to.
When the simulator is shut down, the following error occurs for any duplicated regions:

23:52:20 - [EVENT MANAGER]: Delegate for TriggerShutdown failed - continuing. The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2[OpenMetaverse.UUID,OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.RegionCache].get_Item (UUID key) [0x00000] in <filename unknown>:0
  at OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid.LocalGridServicesConnector.RemoveRegion (OpenSim.Region.Framework.Scenes.Scene scene) [0x00000] in <filename unknown>:0
  at OpenSim.ApplicationPlugins.RegionModulesController.RegionModulesControllerPlugin.RemoveRegionFromModules (OpenSim.Region.Framework.Scenes.Scene scene) [0x00000] in <filename unknown>:0
  at OpenSim.OpenSimBase.ShutdownRegion (OpenSim.Region.Framework.Scenes.Scene scene) [0x00000] in <filename unknown>:0
  at OpenSim.OpenSimBase+<CreateRegion>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
  at OpenSim.Region.Framework.Scenes.EventManager.TriggerShutdown () [0x00000] in <filename unknown>:0
No tags attached.
Issue History
2010-08-23 16:12randomhumanNew Issue
2010-08-23 16:12randomhumanGit Revision => 8d8436e0cadfdfc03808e8ba4a4ebcad97414f68
2010-08-23 16:12randomhumanSVN Revision => 0
2010-08-23 16:12randomhumanRun Mode => Standalone (Multiple Regions)
2010-08-23 16:12randomhumanPhysics Engine => BasicPhysics
2010-08-23 16:12randomhumanEnvironment => Mono / Linux32
2010-08-23 16:12randomhumanMono Version => Other
2010-08-24 00:57MarckNote Added: 0016581
2010-08-24 12:59randomhumanNote Added: 0016587

2010-08-24 00:57   
This also happens when you specify not any region name with the "create region" command but only an .ini file with an already existing region as its first entry. For example, you run into the same issue when you specify with this command the RegionConfig.ini that has already been read during simulator startup: create region RegionConfig.ini
2010-08-24 12:59   
Somewhat relatedly, the create region command on the console does not prevent you creating a region with the same uuid as a currently running region. If the region was offline it would be alright, but two active regions with the same uuid is bound to cause problems I'm sure (I haven't investigated what problems yet).