• 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-11420
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: dan linden
Votes: 47
Watchers: 18
Operations

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

Textures are removed from viewer memory too aggressively

Created: 06/Jan/09 06:39 PM   Updated: 23/Jul/09 02:32 PM
Return to search
Component/s: Graphics
Affects Version/s: 1.23 Release Candidate, 1.23 Public Nightly
Fix Version/s: 1.23 Release Candidate, 1.23

File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(436 kB)

2. Snapshot_002.png
(909 kB)

3. Snapshot_047.png
(2.40 MB)

4. texturejira.jpg
(213 kB)

5. texturejira2.png
(51 kB)

6. turn90degreesafter5minutes.png
(472 kB)
Issue Links:
Duplicate
 
Relates

Last Triaged: 19/May/09 11:23 AM
Linden Lab Issue ID: DEV-32579
Linden Lab Internal Branch: viewer/viewer_1-23


 Description  « Hide
'When I turn around, the objects behind me have disappeared and must be reloaded.'

This was reported in VWR-8503 and needs more specific details. If you see this bug, please add a comment with the following info.

  • Make sure your Texture Memory is not set higher than 512 MB. Preferences > Graphics > Hardware Options > Texture Memory (MB)
  • Please include the information from the Help > About Second Life window.
  • Please attach (use Attach file over there on the left) a screenshot that shows your texture console. To display the texture console, first toggle on the Advanced menu (ctrl-alt-shift-d), then toggle on the texture console, (ctrl-shift-3). In SL, click the Snapshot button, choose Save to hard drive, click ">> more", check "Show interface in snapshot", set format to PNG, and save it.
  • Describe where you are standing, which way you are facing, and how long you wait before turning around.


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Wolfpup Lowenhar added a comment - 30/Apr/09 08:36 PM
Second Life 1.23.0 (118316) Apr 23 2009 21:20:14 (Second Life Public Nightly)
Release Notes

Built with MSVC version 1400

You are at 241067.7, 274119.6, 27.9 in Sunbeam located at sim2065.agni.lindenlab.com (216.82.16.70:13000)
Second Life Server 1.26.2.117266
Release Notes

CPU: Intel Pentium 4 (Unknown model) (2800 MHz)
Memory: 1022 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 6600/PCI/SSE2
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.23573 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 45/122503 (0.0%)

The snapshot was taken after facing south for about 30 seconds the turning left to fave northeast


leliel Mirihi added a comment - 12/May/09 09:57 PM
Second Life 1.23.1 (119104) May 4 2009 17:37:40 (Second Life Release Candidate)
Release Notes

Built with GCC version 40001

You are at 241126.2, 282609.5, 22.8 in George 5 located at sim2839.agni.lindenlab.com (216.82.19.82:13001)
Second Life Server 1.26.3.118673
Release Notes

CPU: Dual PowerPC 970 (2000 MHz)
Memory: 4096 MB
OS Version: Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:39:01 PST 2008; root:xnu-1228.9.59~1/RELEASE_PPC Power Macintosh
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: NVIDIA GeForce 7800 GS OpenGL Engine
OpenGL Version: 2.0 NVIDIA-1.5.36

libcurl Version: libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.750000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.23862 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 53/29870 (0.2%)

I faced south until everything rezzed then faced north for one minute turned back to south and took the snapshot


Jamie Ondeko added a comment - 13/May/09 01:10 PM
Problem is the same with me, Region that i've been on for a hour and just zooming out the textures are downloaded again even though i have viewed them some time ago before turning my avatar round. Also getting a garbled texture info window as noticed on the pictures attached.

Second Life 1.23.1 (119104) May 4 2009 17:53:10 (Second Life Release Candidate)
Release Notes

Built with MSVC version 1400

You are at 147214.3, 236826.4, 22.8 in Ciel located at sim8329.agni.lindenlab.com (216.82.38.142:13002)
Second Life Server 1.26.3.118673
Release Notes

CPU: Intel Core 2 Series Processor (2400 MHz)
Memory: 8191 MB
OS Version: Professional (Build 7100)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce GTX 285/PCI/SSE2
OpenGL Version: 3.0.0

libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.23878 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 2033/269975 (0.8%)


Yukinoroh Kamachi added a comment - 15/May/09 09:40 AM
Adding "textures" in the summary to avoid more dups

Opensource Obscure added a comment - 15/May/09 02:25 PM - edited
Confirmed on Linux Ubuntu 9.04, and as a general feeling I'd say that after 10-15 minutes, most textures are discarded.

Reproduced and documented:
I loaded a scene, I turned around without moving the avatar, I zoomed around, after 4 minutes I turned back and a texture was gone, as shown here:
http://www.sluniverse.com/pics/pic.aspx?ID=370659
During other short test sessions, when turning back after 2-3-4 minutes, some textures appeared blurred and not-fully-loaded.

Second Life 1.23.2 (2259) May 14 2009 16:06:24 (Second Life OSS)
Second Life 1.23.1 (119104) May 4 2009 17:57:12 (Second Life Release Candidate)

Built with GCC version 40102
Sei a 268516.3, 298785.9, 20.8 in embryo located at sim7646.agni.lindenlab.com (216.82.35.139:13012)
Second Life Server 1.26.3.118673
CPU: Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
Memory: 4025 MB
OS Version: Linux 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:48:10 UTC 2009 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 9600 GT/PCI/SSE2
OpenGL Version: 3.0.0 NVIDIA 180.44
libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3.3 c-ares/1.4.0
J2C Decoder Version: KDU
Audio Driver Version: OpenAL, version 1.1 / OpenAL Community / OpenAL Soft: ALSA Software on default
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.23926 (Mozilla GRE version 1.8.1.18_0000000000)
Packets Lost: 0/59744 (0.0%)


Opensource Obscure added a comment - 15/May/09 02:26 PM
Updated to reflect this happens on "http-texure" aka "oss build" viewer too.

Marianne McCann added a comment - 15/May/09 03:20 PM
See this often on MAC, especially in texture rich environments.

Second Life 1.22.8 (109366) Feb 1 2009 12:55:38 (Second Life Release Candidate)
Release Notes

You are at 253713.7, 256271.0, 26.2 in Bay City - Rollers located at sim7310.agni.lindenlab.com (8.10.146.58:13000)
Second Life Server 1.25.5.109327
Release Notes

CPU: Dual i386 (Unknown) (2400 MHz)
Memory: 1024 MB
OS Version: Darwin 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386
Graphics Card Vendor: ATI Technologies Inc.
Graphics Card: ATI Radeon HD 2600 PRO OpenGL Engine
OpenGL Version: 2.0 ATI-1.5.36


Qie Niangao added a comment - 16/May/09 06:26 AM
Please note: I'm going to elevate this to "Showstopper" for the moment, and encourage a Linden to put it back to something like Major, but only after considering that this problem may overwhelm LL's internet bandwidth if this release goes GA like this. I observe this to be very substantially worse in 1.23 than with the 1.22 release, so unless there's something idiosyncratic about that, LL just won't be able to afford concurrency volume of viewers downloading all their textures over and over again. So I think this really is a showstopper for LL, albeit merely a major pain for users.

Attaching "turn90degreesafter5minutes.png"... from a sky build at 3200m, turning 90 degrees from one modestly textured view back to another, after just 5 minutes.

Second Life 1.23.2 (120258) May 13 2009 18:53:50 (Second Life Public Nightly)
Release Notes

Built with GCC version 40102

CPU: Intel(R) Pentium(R) D CPU 2.66GHz
Memory: 2026 MB
OS Version: Linux 2.6.22-gentoo-r9 #8 SMP Mon Dec 10 12:30:13 EST 2007 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8500 GT/PCI/SSE2
OpenGL Version: 2.1.2 NVIDIA 173.14.09

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3 c-ares/1.4.0
J2C Decoder Version: KDU
Audio Driver Version: OpenAL, version 1.1 / OpenAL Community / OpenAL Soft: ALSA Software on default
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.23943 (Mozilla GRE version 1.8.1.18_0000000000)


EddyFragment Robonaught added a comment - 18/May/09 11:45 AM
Agreeing with heading.

Second Life 1.23.1 (119104) May 4 2009 17:53:10 (Second Life Release Candidate)
Release Notes

Built with MSVC version 1400

You are at 287030.8, 279761.1, 76.0 in Roclaren located at sim4837.agni.lindenlab.com (216.82.55.233:13002)
Second Life Server 1.26.4.120562
Release Notes

CPU: Intel Core 2 Series Processor (2000 MHz)
Memory: 3071 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce GTS 250/PCI/SSE2
OpenGL Version: 3.0.0

libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.23996 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 160/976045 (0.0%)


Buckaroo Mu added a comment - 19/May/09 11:00 PM
Agree entirely with everything here. Textures are being dropped from the memory cache far too aggressively, including inventory folder icons, inventory item icons - but NOT, apparently, other UI elements. Simply standing in a moderately built-out sim, if you wait for everything to rez, then turn around - everything must decode & redraw. Turn back around, and the objects you were JUST looking at must RE-DECODE (the slowest part of the cache retrieval) and redraw. Not just a matter of grey textures, but completely rebuilding the prims even before the grey is applied.

This is yet another good reason separate the texture cache and the virtual cache, and store textures as GL textures (ready-to-use) rather than JPG2000 textures that have to be decoded again every read.

Second Life 1.23.2 (120258) May 13 2009 19:37:00 (Second Life Public Nightly)
Release Notes

Built with MSVC version 1400

You are at 262547.5, 255159.8, 104.6 in Honeoye located at sim4920.agni.lindenlab.com (216.82.27.131:13002)
Second Life Server 1.26.3.118673
Release Notes

CPU: Intel Pentium 4 (Unknown model) (2992 MHz)
Memory: 3071 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8600 GTS/PCI/SSE2
Windows Graphics Driver Version: 6.14.0011.8250
OpenGL Version: 3.0.0

libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.24031 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 165/167748 (0.1%)


dan linden added a comment - 20/May/09 09:27 AM
Is this behavior worse in 1.23 RC viewers than in the 1.22.11(release) viewer?

Opensource Obscure added a comment - 20/May/09 11:42 AM - edited
Dan: in my experience yes, totally.
I can't even reproduce this in the Linux 1.22.11(release) viewer, while it's easy to reproduce, and it's pretty tough, on both 1.23 RC1 and Snowglobe viewers.

System specs as above.

Two more screenshots of discarded/grey textures and texture console:
http://www.flickr.com/photos/opensourceobscure/3548707847/
http://www.flickr.com/photos/opensourceobscure/3548707819/


Yukinoroh Kamachi added a comment - 20/May/09 05:27 PM
Dan: totally. Enough to notice. Moreover textures take way more time to load.
Here are my specs :

-

Second Life 1.23.2 (120719) May 18 2009 12:02:26 (Developer)
リリースノート

Built with GCC version 40102

169527.7, 271803.1, 26.0 in Shinobiya land located at sim5905.agni.lindenlab.com (216.82.51.207:13002)
Second Life Server 1.26.3.118673
リリースノート

CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Memory: 1010 MB
OS Version: Linux 2.6.17-19mdv #1 SMP Tue Jun 3 15:34:25 EDT 2008 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 7300 GT/PCI/SSE2
OpenGL Version: 2.1.2 NVIDIA 173.14.05

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3 c-ares/1.4.0
J2C Decoder Version: OpenJPEG: 1.3.0, Runtime: 1.3.0
Audio Driver Version: OpenAL, version 1.1 / OpenAL Community / OpenAL Soft: ALSA Software on default
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.24050 (Mozilla GRE version 1.8.1.18_0000000000)
Packets Lost: 4/24157 (0.0%)


Ardy Lay added a comment - 22/May/09 05:21 AM
Dan, I am also running 1.23.rc2 and see textures that are not active on screen but are very near having to be decoded again when I turn or move bringing them on screen again.

Second Life 1.23.2 (120719) May 18 2009 09:43:42 (Second Life Release Candidate)
Release Notes

Built with MSVC version 1400

You are at 300880.2, 280906.1, 30.6 in Eyharts located at sim8325.agni.lindenlab.com (216.82.38.138:13001)
Second Life Server 1.26.4.120562
Release Notes

CPU: Intel Core 2 Series Processor (2400 MHz)
Memory: 4094 MB
OS Version: Professional (Build 7100)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8800 GT/PCI/SSE2
Windows Graphics Driver Version: 8.15.0011.8581
OpenGL Version: 3.0.0

libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.24086 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 0/1144 (0.0%)


Ardy Lay added a comment - 22/May/09 05:26 AM
Ardy Lay's screenshot

dan linden added a comment - 22/May/09 03:43 PM
Thanks folks!

It looks like textures outside of the camera view are discarded from memory after 60 seconds. As some of you already said, those textures do not need to be downloaded from the network again, just decoded from disk. That's still annoying.

I made a couple videos for our Developers illustrating the difference between 1.22 and 1.23.


Tayra Dagostino added a comment - 22/May/09 04:15 PM
just an opinion... isn't safer keep in memory all texture within "draw distance" and discard (and re-decode from disk if needed) all other?

Maggie Darwin added a comment - 22/May/09 05:59 PM
Hoky smokes...Dan...it takes that long to decode a cached texture? I shouldn't even be able to see the delay. If there's that much work involved, maybe the decoded form should be cached.

Qie Niangao added a comment - 23/May/09 06:06 AM
Not that it matters much, but since I was the one to push this to Showstopper on the basis of it causing network load, and since that's not really the case, I'm dropping it back down to Critical.

Maggie's comment is pretty much what I'm wondering about now, too. Even if the algorithm changes to not flush so much from memory so quickly, something is sure taking a long time to decode stuff off disk. Maybe there's something users could be tuning differently, if we only knew what that was?


Moon Metty added a comment - 23/May/09 06:06 AM
The number to look at is in the texture-console: "GL Tot".

In the 1.23 viewer, you can see the number drop 60 seconds after you turned the camera.
Every texture that's not in the scene is removed from GL-memory. This does not change frame-rate.
Turning the camera causes textures to load again, and this lowers frame-rate temporarily.

In the 1.22 viewer, textures that are behind the camera aren't removed from GL-memory.
What's more, if you travel through a sim, even textures that are outside of the drawing-distance aren't removed (until memory is full, I guess).
But after a teleport to a different sim, once the texture console doesn't show activity anymore, there is a cleanup of old textures.

On my system, the frame-rate of 1.23 is noticeably higher than that of 1.22 in all cases.

=======

Maggie, it doesn't take that long to decode a cached texture. There's a bug in the cache that makes the decoding wait for "something" on the network with the first two discard-levels, or only the first discard-level when you have the mouse over the texture.
See this_repro_VWR-9509
There's no difference between 1.22 and 1.23 in this aspect.

=======

Second Life 1.23.3 (121118) May 20 2009 15:45:07 (Second Life Public Nightly)
Built with MSVC version 1400

You are at 251722.7, 246594.5, 406.4 in Neptune located at sim5443.agni.lindenlab.com (216.82.49.190:13001)
Second Life Server 1.26.4.120562

CPU: Intel Core 2 Series Processor (2401 MHz)
Memory: 2048 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 7600 GS/PCI/SSE2
Windows Graphics Driver Version: 6.14.0011.6921
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.24111 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 0/16087 (0.0%)


Tofu Linden added a comment - 26/May/09 07:51 AM
A 1.23 change is coming that makes textures stay around unless they've been out of view for around 9 minutes (instead of the current 50 seconds). Viewers from 1.24 onwards have all of this code rewritten again.

TriloByte Zanzibar added a comment - 27/May/09 05:02 PM
Testing with Public Nightly Viewer 1.23.3 (121709), this appears to be working much better - thanks for the fix!

Ann Otoole added a comment - 27/May/09 07:12 PM
Not reproducing the reloading textures with with Second Life 1.23.3 (121709) May 26 2009 21:57:56 (Second Life Public Nightly)

Wolfpup Lowenhar added a comment - 28/May/09 07:09 AM
Enviroment:
Second Life 1.23.3 (121709) May 26 2009 21:57:56 (Second Life Public Nightly)
Release Notes

Built with MSVC version 1400

You are at 250689.5, 240446.8, 32.6 in ParrotHead Cove located at sim4838.agni.lindenlab.com (216.82.55.234:13001)
Second Life Server 1.26.4.120562
Release Notes

CPU: Intel Pentium 4 (Unknown model) (2800 MHz)
Memory: 1022 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 6600/PCI/SSE2
Windows Graphics Driver Version: 6.14.0011.7824
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.18.1 OpenSSL/0.9.8j zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.24232 (Mozilla GRE version 1.8.1.21_0000000000)
Packets Lost: 18/328877 (0.0%)

i have been in an area for a while with a lot of changing textuers and have my graphics set for draw distance of 256m and so far i have seen the textures and objects sticking around much better. and when i have had my cam in one place(in close on an object,playing a zyngo card) the zoom out to across the sim after having it that way for a long period of time everything very quickly reloads and is not greyed(no texture). So it seems that so far it is working again for the textures(keeps fingers crossed).


dan linden added a comment - 10/Jun/09 04:58 PM
Retitling. Was "Objects/textures are removed from viewer memory too aggressively". From my experience, this bug only affected textures.

Dessie Linden added a comment - 15/Jun/09 04:52 PM
Fixed in 1.23.4, released on 06/15/2009.