Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008720opensim[REGION] Script Functionspublic2020-06-27 10:202020-06-28 03:49
Assigned To 
PlatformPCOSWindowsOS Version10
Product Version 
Target VersionFixed in Version 
Summary0008720: [SCRIPT FUNCTION] osRegionRestart does not work
DescriptionosRegionRestart does not work
The simulator turns off correctly but it does not restart, it stays off
Steps To ReproduceSimple test with default script @ [^]
Additional InformationIn addition it seems that there is a minimum value for the seconds before restarting but this is not indicated in the wiki.

It seems that the minimum value is 15 seconds ...
Can you confirm this so that I can update the wiki on this subject
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script EngineXEngine
Mono VersionNone
Attached Files

- Relationships

-  Notes
piusnoel (reporter)
2020-06-27 11:02

Running the mentioned default script on Ubuntu 20.04 with Mono worked for me. I used OpenSim Yeti Dev d7089bc (Unix/Mono).
tampa (reporter)
2020-06-27 21:54

This does not restart the region, it only unloads it and then loads it back in while the process is still running. Essentially this is like running reload on services rather than fully shutting down the simulator and starting it again. You can, iirc, configure it to do that instead, but once shutdown there is nothing to restart it again, you would need an external system to check and start the simulator again.

It's a rather useless function as the region restart is messy and can cause issues so I would not recommend using this function.

Not to mention what a potentially bad idea it is to place this in a state_enty function... why is there no check against this?
djphil (reporter)
2020-06-28 02:10
edited on: 2020-06-28 02:12

I could not see the region unload ...
With a delay of less than 15 seconds nothing happens
With a delay greater than or equal to 15 seconds, I receive the message to warn that the region will restart and I see the simulator turning off.
Nothing more ...

If the function is not a real restart but a shutdown, then it would seem to me better to rename it correctly osRegionShutdow and not osRegionRestart

If, as you say, it is necessary to use a third-party application to restart the region after using osRegionRestart (which is not a real restart) then it would be good to specify it also on the wiki do not you think?

If I use the console command "restart region", it really restarts the region without completely shutting down the simulator, but this causes many red console alerts about compiling.
"11:06:34 - [Compile]: Exception trying to delete old script file .... etc"
I specify that delete script on startup is on False at home and must remain on False so that some of my scripts work correctly (they cannot lose some uuids).

So from my point of view things are not going well ...

piusnoel (reporter)
2020-06-28 02:51

Today, I've given it a try on my Windows 10 Home on a Standalone installation of OpenSim Yeti Dev 16cfb3d (Win/.NET) with 3 regions and it worked too.

In both cases I've been Estate Owner and among other not directly related things I've set the following line in my osslEnable.ini:

Btw, I agree with all said by tampa.
djphil (reporter)
2020-06-28 02:57
edited on: 2020-06-28 02:59

I'm god on my grid but ...
On my osslDefaultEnable.ini
On my osslEnable.ini

Please also try with a delay of less than 15 seconds.
Thank you in advance.

PS: I specify that my test is carried out on a simulator in grid mode. I did not try in standalone mode.

piusnoel (reporter)
2020-06-28 03:12
edited on: 2020-06-28 03:20

So far I've tested with delays of 30, 60 and 120 seconds only. Now, I tested again with lower delays. No reaction with a value of 10 seconds, but 15 seconds worked like the others.

I also get these "12:09:51 - [Compiler]: Exception trying delete old script file ..." at the console.

On Linux I've been testing in grid mode too.
On Linux I've seen another issue as well: the message appears too often in the viewer. But that's another issue.

djphil (reporter)
2020-06-28 03:24

This seems to confirm a minimum value for delay ...
I'm waiting for confirmation to modify the wiki accordingly.

For the rest I confirm that, with a delay of 120 seconds (so the default script) my simulator simply turns off and nothing else happens.

This with Windows 10 and Opensim Master in grid mode with 3 regions on a simulator.
djphil (reporter)
2020-06-28 03:36

Ok, I put a small simple standalone (1 region) in place and tested osRegionRestart on it.

It worked fine here too. I received the alert messages and the region has restarted correctly.

The problem therefore seems to concern grid mode or perhaps having several regions on the same simulator, I don't know.

Anyway, there is a problem ...
djphil (reporter)
2020-06-28 03:49

Another point to clarify is also the use of osRegionRestart in conjunction with DeleteScriptsOnStartup = true/false.
This seems mandatory to avoid red compilation error messages when restarting the region.

It remains to be confirmed.
The opensim wiki says nothing about it.

- Issue History
Date Modified Username Field Change
2020-06-27 10:20 djphil New Issue
2020-06-27 11:02 piusnoel Note Added: 0036554
2020-06-27 21:54 tampa Note Added: 0036555
2020-06-28 02:10 djphil Note Added: 0036556
2020-06-28 02:12 djphil Note Edited: 0036556 View Revisions
2020-06-28 02:51 piusnoel Note Added: 0036558
2020-06-28 02:57 djphil Note Added: 0036559
2020-06-28 02:59 djphil Note Edited: 0036559 View Revisions
2020-06-28 02:59 djphil Note Edited: 0036559 View Revisions
2020-06-28 03:12 piusnoel Note Added: 0036561
2020-06-28 03:20 piusnoel Note Edited: 0036561 View Revisions
2020-06-28 03:24 djphil Note Added: 0036562
2020-06-28 03:36 djphil Note Added: 0036563
2020-06-28 03:49 djphil Note Added: 0036564

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker