Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008583opensim[GRID] Other Servicepublic2019-08-27 11:252019-08-28 00:30
ReporterBob Wellman 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version0.9.0.1 
Target VersionFixed in Version 
Summary0008583: Generate map command does not update regionMapTexture
DescriptionWhen you generate a map it should store the results in 2 ways.

For v2 style viewers it stores it as JPEGS in the maptile directory. For v1 style viewers it stores it as an asset and stores the UUID of that asset in db table=regions column=regionMapTexture.

osGetRegionMapTexture relies on the V1 method to get the map back.

When we start a region it creates a brand new regions record with the regionMapTexture = null uuid and the auto map generation fills in that field. If we dont run auto map at startup it doesnt so the map cant be retrieved by V1 viewers or by osGetRegionMapTextue at that time.

Unfortuantely the console command generate map only stores it for V2 viewers and doesnt update the regionMapTexture on regions. A bug in my view.

I think generate map command should be fixed as v2 and V1 viewers could see the map differntly after its run.
Steps To Reproduce1. Restart a region with auto generation of map on startup

2. Restart the same region without auto generation of map on startup

Each time check regions/regionMapTexture on db for this region. You will observer the second case leaves this data null.

3 Run the console command gernerate map and check the db and you will see this is still null.
 
Additional InformationA Thought:

It maybe be the regionMapTexture should be stored in all cases on the regionsettings db table so that it can survive region restart. Then when the new regions record is generated it could be copied to the new regions record as the default. This would save regenerating a map (that hasnt changed) each time we restart a sim.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
EnvironmentMono / Linux64
Mono Version5.x
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0035616)
UbitUmarov (administrator)
2019-08-27 12:40

Yes seen that map texture asset (for V1 viewers) is only updated on grid at region start, as part of the registration process
(0035617)
UbitUmarov (administrator)
2019-08-27 13:21

<cia-opensim> opensim: ajlduarte * r718c6d1e4d9f OpenSim/Region/ScriptEngine/Shared/Api (3 files in 3 dirs):
<cia-opensim> mantis 8583: osGetRegionMapTexture(""); now returns prim region map textureID, without any requests to grid

unlike other cases, osGetRegionMapTexture(""); will return the current region map id without any requests to grid.

Even when Grid is updated, information can take some time to travel caches
(0035618)
UbitUmarov (administrator)
2019-08-27 13:25

Grid map information should now be updated on map regen
(0035619)
UbitUmarov (administrator)
2019-08-27 13:31

we actually already had osGetMapTexture() that does the same..
(0035621)
aiaustin (developer)
2019-08-28 00:30
edited on: 2019-08-28 00:30

Can I check if we are meant to be able to see a foreign grid’s map rile when using the map tool and looking up a hypergrid address via dns:port:region? I don’t think it shows any image in my setups and tests.


- Issue History
Date Modified Username Field Change
2019-08-27 11:25 Bob Wellman New Issue
2019-08-27 12:40 UbitUmarov Note Added: 0035616
2019-08-27 13:21 UbitUmarov Note Added: 0035617
2019-08-27 13:25 UbitUmarov Note Added: 0035618
2019-08-27 13:31 UbitUmarov Note Added: 0035619
2019-08-28 00:30 aiaustin Note Added: 0035621
2019-08-28 00:30 aiaustin Note Edited: 0035621 View Revisions


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker