Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004716opensim[REGION] OpenSim Corepublic2010-05-19 09:212011-08-27 04:08
ReporterStrawberryFride 
Assigned Tojustincc 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004716: Web loading region configuration stops physical prims working
DescriptionLoad 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
Additional InformationINI data:
[Black]
RegionUUID = 5a65941b-e04b-4bce-9f56-1428edfd9fdb
Location = 2001,2001
InternalAddress = 127.0.0.1
InternalPort = 9000
AllowAlternatePorts = False
ExternalHostName = 127.0.0.1
MasterAvatarFirstName = Reaction
MasterAvatarLastName = Core
MasterAvatarSandboxPassword =

XML data loaded via the web:
<Regions>
  <Root>
    <Config sim_UUID="5a65941b-e04b-4bce-9f56-1428edfd9fdb" sim_name="Black" sim_location_x="2001" sim_location_y="2001" internal_ip_address="127.0.0.1" internal_ip_port="9004" allow_alternate_ports="False" external_host_name="127.0.0.1" 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="" />
  </Root>
...
</Regions>
TagsNo tags attached.
Git Revision or version number0.6.9
Run Mode Grid (Multiple Regions per Sim)
Physics EngineODE
Environment.NET / Windows64
Mono VersionNone
Viewer
Attached Filesxml file icon GridTest.xml [^] (2,358 bytes) 2010-05-21 13:28

- Relationships

-  Notes
(0015477)
StrawberryFride (reporter)
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.
(0015479)
justincc (administrator)
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.
(0015480)
nebadon (administrator)
2010-05-19 13:33
edited on: 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.

(0015497)
StrawberryFride (reporter)
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);
            configMember.performConfigurationRetrieve();

            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.
(0015622)
melanie (administrator)
2010-06-11 15:16

that is not a solution. it prevents intentionally setting it to 0
(0019764)
makopoppo (manager)
2011-08-27 04:08

Is it still an issue?

- Issue History
Date Modified Username Field Change
2010-05-19 09:21 StrawberryFride New Issue
2010-05-19 09:21 StrawberryFride Git Revision => 0.6.9
2010-05-19 09:21 StrawberryFride SVN Revision => 0
2010-05-19 09:21 StrawberryFride Run Mode => Grid (Multiple Regions per Sim)
2010-05-19 09:21 StrawberryFride Physics Engine => ODE
2010-05-19 09:21 StrawberryFride Environment => .NET / Windows64
2010-05-19 09:21 StrawberryFride Mono Version => None
2010-05-19 10:10 StrawberryFride Note Added: 0015477
2010-05-19 13:24 justincc Note Added: 0015479
2010-05-19 13:33 nebadon Note Added: 0015480
2010-05-19 13:33 nebadon Note Edited: 0015480
2010-05-21 13:20 StrawberryFride File Added: GridTest.xml
2010-05-21 13:24 StrawberryFride Note Added: 0015497
2010-05-21 13:28 justincc File Deleted: GridTest.xml
2010-05-21 13:28 StrawberryFride File Added: GridTest.xml
2010-06-11 14:54 justincc Status new => assigned
2010-06-11 14:54 justincc Assigned To => justincc
2010-06-11 15:16 melanie Note Added: 0015622
2011-08-27 04:08 makopoppo Note Added: 0019764


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker