MantisBT - opensim
View Issue Details
0004716opensim[REGION] OpenSim Corepublic2010-05-19 09:212019-02-05 12:25
Grid (Multiple Regions per Sim)
.NET / Windows64
0004716: Web loading region configuration stops physical prims working
Load 4 regions on an instance of OpenSim 0.6.9 in grid mode, URM configuration.

With the same OpenSim.ini file, loading region configuration from the web, users are unable to set any prim to physical, either inworld or in code - the flag does not stick.

Change to loading region configuration from a regions.ini file and physical prims suddenly work as normal.

Settings in OpenSim.ini:

physical_prim = true
meshing = Meshmerizer
physics = OpenDynamicsEngine
NonPhysicalPrimMax = 256
PhysicalPrimMax = 10
ClampPrimSize = false
INI data:
RegionUUID = 5a65941b-e04b-4bce-9f56-1428edfd9fdb
Location = 2001,2001
InternalAddress =
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName =
MasterAvatarFirstName = Reaction
MasterAvatarLastName = Core
MasterAvatarSandboxPassword =

XML data loaded via the web:
    <Config sim_UUID="5a65941b-e04b-4bce-9f56-1428edfd9fdb" sim_name="Black" sim_location_x="2001" sim_location_y="2001" internal_ip_address="" internal_ip_port="9004" allow_alternate_ports="False" external_host_name="" master_avatar_uuid="00000000-0000-0000-0000-000000000000" estate_covenant_uuid="00000000-0000-0000-0000-000000000000" master_avatar_first="Reaction" master_avatar_last="Core" master_avatar_pass="" />
No tags attached.
xml GridTest.xml (2,358) 2010-05-21 13:28
Issue History
2010-05-19 09:21StrawberryFrideNew Issue
2010-05-19 09:21StrawberryFrideGit Revision => 0.6.9
2010-05-19 09:21StrawberryFrideSVN Revision => 0
2010-05-19 09:21StrawberryFrideRun Mode => Grid (Multiple Regions per Sim)
2010-05-19 09:21StrawberryFridePhysics Engine => ODE
2010-05-19 09:21StrawberryFrideEnvironment => .NET / Windows64
2010-05-19 09:21StrawberryFrideMono Version => None
2010-05-19 10:10StrawberryFrideNote Added: 0015477
2010-05-19 13:24justinccNote Added: 0015479
2010-05-19 13:33nebadonNote Added: 0015480
2010-05-19 13:33nebadonNote Edited: 0015480
2010-05-21 13:20StrawberryFrideFile Added: GridTest.xml
2010-05-21 13:24StrawberryFrideNote Added: 0015497
2010-05-21 13:28justinccFile Deleted: GridTest.xml
2010-05-21 13:28StrawberryFrideFile Added: GridTest.xml
2010-06-11 14:54justinccStatusnew => assigned
2010-06-11 14:54justinccAssigned To => justincc
2010-06-11 15:16melanieNote Added: 0015622
2011-08-27 04:08makopoppoNote Added: 0019764
2019-02-05 12:12BillBlightAssigned Tojustincc => administrator
2019-02-05 12:25BillBlightNote Added: 0034209
2019-02-05 12:25BillBlightStatusassigned => closed

2010-05-19 10:10   
Additionally, set a prim to be physical when loading region configuration via ini and it remains physical after a reboot. Load up under the web load configuration and the physical prim remains physical. Clone it, the clone is physical. But soon as you click the physical checkbox in the settings for the prim, the prim turns back to a normal non-physical prim and refuses to go back to being physical.
2010-05-19 13:24   
Ah, now I remember hearing about this in a very similar context now a couple of months ago. Possibly some setting is getting a bad value for region loading via the web.
2010-05-19 13:33   
we have this same problem on OSGrid with standard region loading, if you use XML for Regions configuration, you will not get proper physics, if you remember Justin it was Adelle who figured it out few months ago.

2010-05-21 13:24   
No clue why, but in the attached file GridTest.xml, loading via a web server (http://localhost/gridtest.xml [^] as the link) I get normal physical prim behavior on Cyan region, kick around existing physical prims, create new physical prims. On Black region I can interact with existing physical prims but not create new ones - suspicion is that PhysicalPrimMax is set to 0 on affected regions, with neither the value in the XML being picked up nor the value in OpenSim.ini.

A temporary workaround I have tested successfully is to check each region loaded via OpenSim/Framework/RegionInfo.cs around line 160:

 // The web loader uses this
        public RegionInfo(string description, XmlNode xmlNode, bool skipConsoleConfig, IConfigSource configSource)
            configMember =
                new ConfigurationMember(xmlNode, description, loadConfigurationOptions, handleIncomingConfiguration, !skipConsoleConfig);

            if (m_physPrimMax == 0)
                m_physPrimMax = 10;

this hacky solution "fixes" the issue but is obviously not ideal. A more elegant solution is required, or if anyone can figure out what is wrong on my configuration I'd be very happy to know.
2010-06-11 15:16   
that is not a solution. it prevents intentionally setting it to 0
2011-08-27 04:08   
Is it still an issue?
2019-02-05 12:25   
Old Issues, closed, can be reopened if they still exist