Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006794opensim[REGION] Physics Enginespublic2013-10-10 07:082013-10-12 09:27
Assigned ToRobert Adams 
PlatformOperating SystemOperating System Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006794: [BULLETSIM] Avatar flying to edge of a region suddenly jumps to opposite side
DescriptionWhen using Bulletsim, an avatar flies to the edge of a region where no adjacent region is alongside, I find that the avatar suddenly jumps all the way to the opposite boundary... e.g. at 255 and then suddenly at 0.

This does not occur when using ODE, in which case the avatar just stops at the boundary as expected.
Steps To ReproduceFly avatar towards the edge of a region where there is no adjacent region. Using Firestorm 4.4.2 OS in my tests.
TagsNo tags attached.
Git Revision or version numberr/23803
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
Environment.NET / Windows64
Mono VersionNone
ViewerFirestorm 4.4.2 OS
Attached Files

- Relationships
related to 0006461closedtglion Region-crossing result in a wrong SIM if crossing close to NW corner to west 

-  Notes
nebadon (administrator)
2013-10-10 07:14

I am getting same results.
smxy (reporter)
2013-10-10 07:30
edited on: 2013-10-10 08:02

I can confirm this as well.

Possibly/probably related: When flying West to East (possibly other directions), from one region to another to another, I frequently, when crossing into the next region, will find myself briefly in the SE corner of the region I'm leaving, before arriving in the next region where I intended. On rare occasions, I'm thrown into another region altogether.

Just tried recreating this again, in my 4x5 grid:

16 17 18 19 20
11 12 13 14 15
06 07 08 09 10
01 02 03 04 05

Starting in 20, I flew West. Got to 16 just fine, just some small rubber-banding after each crossing. Flew south into 11 okay. At each eastbound crossing, all the way to 15, right at the crossing (I can't tell if it's actually before or after I leave the region), I'd be thrown to the SE-most corner of the region I'm leaving, for a second or two, before arriving in the destination region. From 15, I flew south into 10. As I crossed into 09, I was thrown to the SE-most corner of 09. Because I was still in motion, this immediately crossed me into 08. I started to lose control of the still-moving avatar, which then crossed into 03. The multiple, too-fast, crossings caused something to crash, as all regions but 03 disappeared from the map and the avatar was left in a perpetually flying pose. Moments later, the viewer (Singularity Alpha, though see with Firestorm as well), locked up. I was continually flying, from 20 until I crashed.

Possibly important note: I have DefaultDrawDistance = 1023.0 set, which causes me to have agents in all 20 sims. I'll repeat this test with it set normally.

aiaustin (developer)
2013-10-10 08:56

Expected behaviour is that avatar sticks at the edge of the sim where there is no adjacent region, rather than jumps suddenly 256m across the region to another edge.
smxy (reporter)
2013-10-10 13:14

I repeated my test, flying continuously, 20 -> 16 -> 11 -> 15 -> 10 -> 06 -> 01 -> 05 -> 10 -> 15 -> 20, with DefaultDrawDistance set to the default of 255.

There were no issues going Westbound this time. No issues going Southbound. Almost every Eastbound crossing resulted me in being briefly thrown to the SE corner of the region I was leaving, before ending up where I should have been in the destination region. All Northbound crossings briefly threw me back to the approximate center of the region I was leaving, before ending up where I should have been in the destination region. A repeat of the Northbound test showed it to be an occasional thing, rather than every time. The speed with which I crossed the border seemed to be a factor sometimes, as well.
smxy (reporter)
2013-10-10 14:07

After switching to ODE, I repeated my last test, continuously flying the same flight path. The first thing I noticed is that flying is slower. The second thing I noticed is that every single crossing went perfectly fine. I saw zero instances of the behavior I saw when using BulletSim. I have not tried the OP's test case. I recommend he switch to ODE and report back his results, in this ticket.
smxy (reporter)
2013-10-10 14:14
edited on: 2013-10-10 14:15

Speed, at crossing, may be a factor in what I am seeing. I repeated my last test, but double-tapped the up arrow, so that I was flying fast - comparable to the normal flying speed with BulletSim. I got through the first Westbound traversals fine, but when I crossed, Southbound, from 16 -> 11, all regions in view, other than 11, vanished. I was frozen in a flying pose and about a minute later my viewer disconnected. This was with ODE and a default DefaultDrawDistance, still.

aiaustin (developer)
2013-10-10 14:21
edited on: 2013-10-10 14:22

Take care, you may be reporting a different problem smxy... as there have been long standing issues with boundary crossing with all setups.

The sudden move across to the other side of the sim is ONLY related to hitting a boundary where there is no sim next to it. The regions involved were all running BulletSim.

smxy (reporter)
2013-10-10 14:55

Have you verified that your issue does not happen when using ODE?

As for my issue, yes, there have always been crossing issues, and my last attempt may, indeed, fall under that category. However, the behavior of being 'thrown back', when making an Eastbound or Northbound crossing, is similar to what you see, in your case, and only happens with BulletSim, so may be related. If radams1 determines it isn't, that's fine, but it seemed similar enough to note.
aiaustin (developer)
2013-10-11 01:13
edited on: 2013-10-11 01:15

Absolutely... all reports are valuable smxy, sorry of it sounded like I was suggesting otherwise. I was just saying that your reports sounded like two separate issues.

I can confirm that the problem of the avatar jumping suddenly when hitting a boundary where there is no adjacent region is only seen by when when using BulletSim. I reverted to ODE and the avatar stops correctly at each of the 4 side edges in that case.

I did more testing... when hitting the various boundaries on sims that had no adjacent region on the sides I flew to.

West (0,Y) and South (X,0) I just hit the edge and stay where I am as expected.

East (X,Y) I get placed at (0,0) each time.

North (X,Y) I get placed at approx. (X, 146?) I.e. it keeps my X coordinate but sets me back into the middle of the sim somewhere.

smxy (reporter)
2013-10-11 05:23

Yes, you didn't see that radams1 asked me (in IRC) to retry my test with ODE, so he could see if it was really a BulletSim issue or not. :) Since we see the same behavior under it and no (or a different issue) under ODE, I think we've confirmed it is a BulltSim issue.
shy (reporter)
2013-10-11 05:50

I can confirm this with the following ammendment:

1) West <0,255+1> and South <255+1,0> I I get placed at <0,0> each time. This means when I stay at <255,0> or <0,255> and try to move towards the neigbour-region I get kicked back to <0,0>.

2) North <X,Y> I get placed at (X, ~X). By ~X I mean Y = X + [0..2]. In all my tests the resulting Y was equal or greater than X. In most cases the difference was in the range of [0..2] but depending on speed I've seen differences of up to Y = X+18.

Everything else is the same as reported by aiaustin.
Robert Adams (administrator)
2013-10-11 13:47

I just checked in a fix for this problem. I will blame some of my code supporting mega-regions. The problem was that the avatar's position was getting outside the region (<257,42,40>) and the computation to move the avatar back into an adjacent region was setting the position to the bottom of the region (<1, 42,40>) rather than into the closest location in the adjacent region (<255,42,40>).

The results were complicated by a bug where there was a ".X" where there should have been a ".Y".

Give it a try.
nebadon (administrator)
2013-10-11 14:09

This fix has worked for me, I am now unable to repeat the failure.
smxy (reporter)
2013-10-11 14:54

This fix works for me. I cannot repeat any of the failures under BulletSim, with DefaultDrawDistance set to the default or my usual, high value, in my 20 -> ... -> 20 flight pattern test. Thanks!
aiaustin (developer)
2013-10-12 06:53

Cannot test just now due to travel... but sounds promising.
shy (reporter)
2013-10-12 07:51

At the moment I cannot test all cases as I only have 2 regions available.

But when I try to cross the border at <255,0> I stay in place and get a message "[07:45] Grid: Cannot region cross into banned parcel".

I guess this will be true for <0,255+1> as well because I have seen similar messages in the chat when I tested there two days ago, but as it was not reproduceable I could not see a relationship between the issue and the message at this time.
shy (reporter)
2013-10-12 08:34
edited on: 2013-10-12 08:35

Puhh... it becomes even more complicatet. My guess that the behaviour at <0,255> is the same as for <255,0> is true.

The actual numbers I see at the top of the Firestorm viewer are (255,0,22) or (0,255,22). When I press the cursor once to cross the border I get the "Grid: Cannot region cross into banned parcel" message. The numbers on top stay the same.

Next I try to step away a little from zero, the coordinates displayed on top are now (255,1,22) or (1,255,22). When I click the cursor the 1 on top drops to 0 again without actually moving the avatar and I get the "Grid: Cannot region cross into banned parcel" message again.

Next I try to step a little more away from zero, the coordinates displayed on top are now (255,2,22) or (2,255,22). When I click the cursor the display of the coordinates does not change the 2 and the avatar is moved over the border onto the neighbour region.

I hope this info further helps to finally solve the problem. I know, it's not a major problem, but better to solve it right now.

shy (reporter)
2013-10-12 09:01
edited on: 2013-10-12 09:02

Addendum: I just found out that crossing any region border along neighborless edges results in the error "Grid: Cannot region cross into banned parcel" if the avatar according to the coordinates dislayed in Firestorm is not at least 2 m away from the edge. (2 or 253 is ok, 0/1 or 254/255 result in error).

As such it might be a separate issue *shrugs*

smxy (reporter)
2013-10-12 09:27

I can confirm the behavior shy just mentioned.

- Issue History
Date Modified Username Field Change
2013-10-10 07:08 aiaustin New Issue
2013-10-10 07:14 nebadon Note Added: 0024434
2013-10-10 07:14 nebadon Assigned To => nebadon
2013-10-10 07:14 nebadon Status new => confirmed
2013-10-10 07:15 nebadon Assigned To nebadon =>
2013-10-10 07:30 smxy Note Added: 0024435
2013-10-10 07:56 smxy Note Edited: 0024435 View Revisions
2013-10-10 08:02 smxy Note Edited: 0024435 View Revisions
2013-10-10 08:56 aiaustin Note Added: 0024437
2013-10-10 09:00 Robert Adams Assigned To => Robert Adams
2013-10-10 09:00 Robert Adams Status confirmed => assigned
2013-10-10 13:14 smxy Note Added: 0024439
2013-10-10 14:07 smxy Note Added: 0024440
2013-10-10 14:14 smxy Note Added: 0024441
2013-10-10 14:15 smxy Note Edited: 0024441 View Revisions
2013-10-10 14:21 aiaustin Note Added: 0024442
2013-10-10 14:22 aiaustin Note Edited: 0024442 View Revisions
2013-10-10 14:23 aiaustin Description Updated View Revisions
2013-10-10 14:55 smxy Note Added: 0024443
2013-10-11 01:13 aiaustin Note Added: 0024445
2013-10-11 01:14 aiaustin Category [REGION] OpenSim Core => [REGION] Scripting Engine
2013-10-11 01:14 aiaustin Summary Avatar flying to edge of a region suddenly jumps to opposite side => [BULLETSIM]Avatar flying to edge of a region suddenly jumps to opposite side
2013-10-11 01:14 aiaustin Description Updated View Revisions
2013-10-11 01:15 aiaustin Note Edited: 0024445 View Revisions
2013-10-11 02:06 aiaustin Category [REGION] Scripting Engine => [REGION] Physics Engines
2013-10-11 02:06 aiaustin Summary [BULLETSIM]Avatar flying to edge of a region suddenly jumps to opposite side => [BULLETSIM] Avatar flying to edge of a region suddenly jumps to opposite side
2013-10-11 05:23 smxy Note Added: 0024447
2013-10-11 05:50 shy Note Added: 0024448
2013-10-11 12:42 tglion Relationship added related to 0006461
2013-10-11 13:47 Robert Adams Note Added: 0024449
2013-10-11 14:09 nebadon Note Added: 0024450
2013-10-11 14:54 smxy Note Added: 0024451
2013-10-12 06:53 aiaustin Note Added: 0024454
2013-10-12 07:51 shy Note Added: 0024455
2013-10-12 08:34 shy Note Added: 0024456
2013-10-12 08:35 shy Note Edited: 0024456 View Revisions
2013-10-12 09:01 shy Note Added: 0024457
2013-10-12 09:02 shy Note Edited: 0024457 View Revisions
2013-10-12 09:27 smxy Note Added: 0024458

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker