• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: VWR-1609
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Low Low
Assignee: Tofu Linden
Reporter: Lex Neva
Votes: 4
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
1. Second Life Viewer - VWR

disabling "Show Selection Beam" makes beam render incorrectly for others

Created: 08/Jul/07 01:21 PM   Updated: 21/Dec/07 11:59 AM
Return to search
Component/s: None
Affects Version/s: 1.17.0.x, 1.17.3, 1.18.3 Release Candidate, 1.18.0, 1.18.1.2, 1.18.2.0
Fix Version/s: Other (please specify in issue description)

File Attachments: 1. File selection_beam_bug.avi (1.16 MB)
2. Text File SL-55944-patch.txt (0.7 kB)
3. Text File VWR-1609.patch (0.5 kB)


Source Version: 1.18.3.2
Linden Lab Issue ID: SL-55944
Patch attached: Patch attached


 Description  « Hide
This is kind of an odd one.

Steps to reproduce:

1. Disable "Show selection beam" under the Tools menu.
2. Right-click something.
3. Have someone else closely examine your selection beam.
4. While they're watching, select something else.

Observed results:

The rendering of your selection beam on others' screens is oddly corrupted. It's as if the particles of the beam are being drawn too many times. Maybe the particles that would be rendering on your screen are actually travelling across the internet to their screens. Or something.

Expected results:

Changing whether your selection beam renders on your screen should not affect how it renders on other people's screens.

This issue has, I believe, been around since this option was created.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
McCabe Maxsted added a comment - 08/Jul/07 05:54 PM
Can you attach a screenshot? I'm curious what the difference looks like for you, as compared to one my friend took of me.

Torley Linden added a comment - 16/Jul/07 10:33 AM
Yes, picture please.

Lex Neva added a comment - 27/Jul/07 11:04 AM
It'll require a movie to really show what happens. I'll have to wait until I have two computers or a friend handy.

Lex Neva added a comment - 11/Aug/07 10:39 AM
Okay, I finally got around to creating a video of this bug. It uses the XVid codec which you can download at http://www.xvid.org . Here's what you'll see:

You're looking at my av, Lex Neva. This video is actually taken from the client of my alt account, but that av is off-frame and has its camera focused on Lex Neva.

I start video capturing. I select some prims in edit mode, with "show selection beam" on, to demonstrate how the selection beam SHOULD look.

Then I turn "show selection beam" off on Lex Neva's client about halfway through the movie. On Lex Neva's client (not shown), the selection beam is invisible. On my alt account, you'll see an almost immediate change in teh selection beam to a weird blotchy set of circles. It appears that the beam particles are being drawn over each other repeatedly. I select other objects to show how the selection beam seems to leave trails. This effect is amplified if I walk while I have something selected: note the fan of selection beams that are left behind.

This bug has been around since "Show selection beam" was introduced, months ago. It's a really strange bug, since "show selection beam", in theory, only affects MY view of my selection beam, and this bug seems to affect everyone else's view of my beam. I can only think that somehow my client sends a lot of information about how to render the selection beam, and this information is not being sent when the beam is hidden.


candide lemay added a comment - 19/Sep/07 03:41 PM
If you look at the stats bar and watch Packets Out, you normally see 10-15 packets/sec going out. When you disable selection beam, packet output suddenly jumps to around 150 p/s (while you have something selected of course). So the viewer definitely does something very weird.

Blakar Ogre added a comment - 20/Sep/07 03:06 PM
Here's the simple patch. Haven't tested it yet with another person but the packet rate is fixed after this which indicates I probably nailed it. Most likely what it does without the patch is an endless kill/create cycle on the stream. I only spend a few minutes on this so I haven't researched it in full.

Lex Neva added a comment - 21/Sep/07 08:11 AM
Thanks, Blakar. I think maybe some more work ought to be done on that code... I'm not up on LL's coding standards, but I think some parentheses are needed in that conditional to ensure that the &&s and ||s are given the precedence intended by the author.

Winter Ventura added a comment - 21/Sep/07 09:33 AM
This bug has been around for as long as I've been in SL.. and here's what I THINK may be happening (from a non programmer's perspective)

At some point in the past, The Option "Tools > X Show Selection Beam" used to read "Tools > X Show Selection Beams" and a second option existed that read "Tools > _ Hide My Selection Beam"

2 settings, not one. "Hide/Show all selection beams I can see" and "hide my selection beam from others". It is my hypothesis that these were once TWO functions... and were combined by a well meaning programmer looking to clean up the menus. What happened, it seems (to the casual user) is that the setting got messed up some how in the process of combining them, perhaps because one was "true to show" and one was "false to show". So that

[FALSE] Show Selection Beam

hid all "selection beam particles for the user" but rather than also "hiding the user's selection beam from others" it "doubled" the beam's intensity in some fashion, as viewed by others. It's currently "broken" function is rather odd.

I would expect that this "unified" function would serve to both "hide all those damn selection beams" and at the same time "make my beam invisible to others". Instead, it "hides all the beams from me" and makes my beam extra strong?


Blakar Ogre added a comment - 21/Sep/07 05:09 PM
Lex,
I'm not touching the parentheses simply because there were none in the first place. As such for QA it's easier if there are no cosmetic changes. The patch now only changes what should be really changed.

Winter,
interesting theory. Though given the actual cause of the bug I think whether it would be 1 or 2 options doesn't really matter. In both cases the code could contain the bug it does now. Note also that I don't think you're actually supposed to be able to hide your beam from others. It's an option to avoid a visual nuisance for yourself but it's not an option that is supposed to help you hide what you're doing.


Lex Neva added a comment - 22/Sep/07 09:07 AM
Winter, that's an interesting theory, but I'm pretty sure that's not how it happened. I remember when we got "Show Selection Beam", and there wasn't any other option having to do with selection beams previous to that. As far as I know, there's no way at all to prevent your selection beam from being shown to others... aside from hacking the client source.

Tofu Linden added a comment - 02/Oct/07 02:59 PM
Fixed internally. Thanks for the report and patch! I didn't use the patch in the end (it had some issues), but I'll attach the diff I did use.

Lex Neva added a comment - 02/Oct/07 03:55 PM
Sweet! I'm glad to see this little glitch resolved.

Torley Linden added a comment - 21/Dec/07 11:59 AM
========-
Changed status to "Fixed" – I'm going through the Issue Tracker and updating issues that've been publicly fixed!
========-