Cool VL Viewer forum
http://sldev.free.fr/forum/

Region settings
http://sldev.free.fr/forum/viewtopic.php?f=4&t=2232
Page 1 of 1

Author:  Jeeper [ 2021-11-15 17:31:54 ]
Post subject:  Region settings

I don't know when this started, I know it used to work, but when I try to change the region settings, PG Mature or Adult, on both my OSGrid and Stand Alone regions, I get the following error in the opensim console and no change is made. I tried with an old version of Singularity to be sure it wasn't opensim, and it worked.

09:26:03 - [LLCLIENTVIEW]: Caught exception while processing OpenMetaverse.Packets.EstateOwnerMessagePacket for Jeeper Shim System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Int16.Parse (System.ReadOnlySpan`1[T] s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00002] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Int16.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at System.Convert.ToInt16 (System.String value) [0x0000b] in <a17fa1457c5d44f2885ac746c1764ea5>:0
at OpenSim.Region.ClientStack.LindenUDP.LLClientView.HandleEstateOwnerMessage (OpenMetaverse.Packets.Packet Pack) [0x004a2] in <bf087efcbe1b420abf0ac47bbf6951d2>:0
at OpenSim.Region.ClientStack.LindenUDP.LLClientView+<>c__DisplayClass822_0.<ProcessPacketMethod>b__0 () [0x00002] in <bf087efcbe1b420abf0ac47bbf6951d2>:0

Attachments:
CoolVLViewer.log.tar.gz [23.05 KiB]
Downloaded 118 times

Author:  Henri Beauchamp [ 2021-11-15 21:03:44 ]
Post subject:  Re: Region settings

OpenSIM bug, obviously... and not knowing what is the "expected format", I cannot work around it...

There is also an issue with an OpenSIM simulator not replying to the viewer:
Code:
2021-11-15 17:25:28Z WARNING: LLViewerRegion::requestSimulatorFeatureCoro: HTTP error fetching simulator feature for region: White Wolf (8d806862-591a-410d-adb9-b43a83c5a92d). Will retry...
2021-11-15 17:25:28Z WARNING: LLViewerRegion::requestSimulatorFeatureCoro: HTTP error fetching simulator feature for region: White Wolf 20 (8ae953e9-bd1d-4185-a241-e9c5ddb92aa4). Will retry...
2021-11-15 17:25:28Z WARNING: LLViewerRegion::requestSimulatorFeatureCoro: Retries count exceeded attempting to get simulator feature for region White Wolf 20 (8ae953e9-bd1d-4185-a241-e9c5ddb92aa4) from: http://whitewolf.zapto.org:9004/89f0dfbd-807d-4de9-a9fc-93f7793d0dba
Which might explain the failure itself (if it was the sim you were attempting to set the data for)...

Author:  Jeeper [ 2021-11-15 22:03:17 ]
Post subject:  Re: Region settings

It was that sim I was trying to change the region settings for. I even loaded a 2019 version of opensim and got the same error so it's been there a long time. Good thing it's not something that gets changed very often. If at all for some.

Author:  Henri Beauchamp [ 2021-11-15 23:33:19 ]
Post subject:  Re: Region settings

In fact, it's indeed a viewer (copy/paste) bug... It does not show in SL, because in the latter, a capability is used, and the bug only affects the old UDP-message based code (which apparently, OpenSIM is still depending onto).
To prettify/simplify the code, I added (a looooong while ago) some macros, and the ASINTEGER() one is using a %f format string instead of a %d for an integer (I obviously copied/pasted ASFLOAT() to make it into ASINTEGER() and forgot to change the format string)...
OpenSIM's code could have accepted and silently converted the float to an integer, but it instead throws a format error.

Fixed for next release. If you compile the viewer yourself, simply change "%f" for %d" in ASINTEGER() line 1261 of linden/indra/newview/llfloaterregioninfo.cpp...

Author:  Jeeper [ 2021-11-16 01:45:12 ]
Post subject:  Re: Region settings

Thanks Henri. I'll probably never use that option again but someone else might. Good it's fixed

Author:  Henri Beauchamp [ 2021-11-20 13:21:07 ]
Post subject:  Re: Region settings

Fixed in today's release (v1.28.2.48).

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/