• 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-8841
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: WorkingOnIt Linden
Reporter: Maggie Darwin
Votes: 24
Watchers: 12
Operations

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

Memory usage goes to 2 gig, graphics frame rate tanks, crash dump taken, viewer not responding

Created: 29/Aug/08 12:38 PM   Updated: 25/Oct/09 12:36 PM
Component/s: Crashes
Affects Version/s: 1.21 Release Candidate, 1.21, 1.22 Release Candidate, 1.22, 1.23 Release Candidate, Snowglobe 1.1, 1.23
Fix Version/s: 1.22 Release Candidate

File Attachments: 1. Text File debug_info.log (12 kB)
2. File Memory Leak in 1.21.RC4.bmp (375 kB)
3. Text File SecondLife.log (43 kB)
4. Text File SecondLife.log (866 kB)
5. Text File SecondLife.log (288 kB)
6. File SecondLife.old (137 kB)
7. Text File SecondLifeCrashReport.log (541 kB)
8. Text File SecondLifeCrashReport.log (369 kB)

Image Attachments:

1. memoryGraph.jpg
(284 kB)

2. SLmeters.jpg
(70 kB)

3. SLV1_23_4snapshot.jpg
(475 kB)
Environment:
Second Life 1.21.0 (95157) Aug 26 2008 16:03:19 (Second Life Release Candidate)
Release Notes

You are at 173291.1, 285680.5, 26.0 in Harrington located at sim4707.agni.lindenlab.com (63.210.159.103:13001)
Second Life Server 1.24.3.95195
Release Notes

CPU: Intel Core 2 Series Processor (2399 MHz)
Memory: 3327 MB
OS Version: Microsoft Windows Vista (Build 6000)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8800 GTS/PCI/SSE2
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3
J2C Decoder Version: KDU
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.17709 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 0/11548 (0.0%)
Issue Links:
Duplicate
 
Relates

Last Triaged: 15/Jun/09 10:19 AM
Linden Lab Issue ID: DEV-21553


 Description  « Hide
It looks like the new behavior of the 1.18 - 1.20 "out of memory error" that was VWR-5949. Hope real-time crash dump is more helpful.

REPRO: Most reliable repro to date:

1. Use a multicore CPU, preferably quad, on a high-speed connection: Ours is 15mbps fiber
2. Go to http://slurl.com/secondlife/Atropos/149/146/39
3. Flycam though the "Need4Speed" for a minute or three. This location has objects playing audio, many many densely packed campers (24) and about a zillion textures.

OBSERVE:
2009-01-07T23:15:56Z newview/llappviewer.cpp(1073) : error
2009-01-07T23:15:56Z ERROR: LLAppViewer::mainLoop: Bad memory allocation in LLAppViewer::mainLoop()!

TEMPORARY WORKAROUND: Go to Preferences > Graphics tab > "Hardware Options" to set the Texture Memory to be 256MB if the current number is above that. This should prevent the out-of-memory problem that leads to a crash.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Maggie Darwin added a comment - 06/Sep/08 09:23 AM
Still broken in RC1

Alexa Linden added a comment - 12/Sep/08 09:07 AM
Hi Maggie! Have you tried updating your drivers?

Maggie Darwin added a comment - 12/Sep/08 09:44 AM
@Alexa: Have you seen the total freaking mess that SL Viewer support is for nVidia drivers lately?

Perhaps you can prod someone in LL to comment on VWR-7957 as to exactly which nVidia drivers LL is going to support.


nekololi woodget added a comment - 13/Sep/08 01:00 PM - edited
I had this too in RC0.
It's less in RC1 and RC2 but still there.
My nVidia drivers are current as August something. I have a GeForce7600GS WinXP SP3

Update: the memory leak is faster or slower at different places. I can stay on all day in most sims. But there's a few places where I'll crash several times in a few hours. On sim in particular is a rather uneventful openspace sim, not really sure why it was bad there.


Maggie Darwin added a comment - 19/Sep/08 11:41 AM - edited
Unfortunately having a RL job prevents me from making it to triages.

from http://wiki.secondlife.com/wiki/Bug_triage/2008-09-17/Transcript

[15:14] Bridie Linden: # VWR-8841[c
[15:14] Nya Linden: current info from QA is no repro.

I'm unclear which issue Nya is commenting on here. If it's VWR-8814, I'd like to ask her to make sure she is testing on something very SMP like a Core 2 quad and moving her camera rapidly a lot.

SpaceNav flycam may be involved...not implicitly but because it makes rapid camera movement easier and more common.

It's possible that being on nVidia may be part of this to.

[15:14] Bridie Linden: https://jira.secondlife.com/browse/VWR-8841
[15:14] Nya Linden: still trying, though.
[15:14] Bridie Linden: Any thoughts on this one Zen?
[15:15] Zen Linden: checking now
[15:15] Bridie Linden: or https://jira.secondlife.com/browse/VWR-7957 ?
[15:16] Bridie Linden: Looks like that one is also under investigation by QA
[15:16] Bridie Linden: Torley says he got bit by it too
[15:16] Zen Linden: hmm..
[15:16] Garn Conover: wonders if Torley got his Wezday sign
[15:16] Zen Linden: i'd definitely import the clothing error one
[15:16] Zen Linden: esp if torley's experiencing it
[15:17] Bridie Linden: already is
[15:17] Ellla McMahon: yes please ... waiting for it to be fixed so I can update my drivers )
[15:17] Zen Linden: wow, 96 votes
[15:17] Bridie Linden: Yeah
[15:17] Squirrel Wood: latest rc plus latest certified drivers... should not make this happen
[15:18] Bridie Linden: We can update with more info when we have it from QA...
[15:18] Squirrel Wood: though I can't say if that holds true for vista
[15:18] Nya Linden: yep.
[15:18] Bridie Linden: Squirrel feel free to comment
[15:18] Zen Linden: we can have qa see if there are any leaks with 8800 with those drivers
[15:18] Bridie Linden: Ok
[15:18] Zen Linden: but I'm doubtful it'll turn up anything
[15:18] Bridie Linden: sighs
[15:19] Bridie Linden: Moving on then...
[15:19] Zen Linden: i'd import and try


nya Linden added a comment - 19/Sep/08 12:38 PM
ah, no. I was commenting on the previous issue we'd been discussing. QA has also tried to repro several of the memory usage issues, but we haven't been able to repro them yet either.

If the leaks are different in different places, can someone give us specifics as to where this seems to be the worst? Also, log files help and of course, environment for each person seeing this.

Thanks!


Maggie Darwin added a comment - 19/Sep/08 08:42 PM - edited
Seems worse in texture-rich environments; try cheap shopping malls crowded with many small vendors that you've never been to before so the textures aren't cached. Move your camera in them rapidly; orbiting in particular. Definately seems SMP related, so work that camera hard on a Core 2 Quad. Keep an eye on your virtual size as reported by Process Exporer; when it exceeds 2 gig you'll know you'll be going bye-bye soon.

You're not going to get a solid repro because there are too many variables (SMP dispatching, UDP network latencies, texture cacheing).

Is there some reason the crash dumps are not sending you logs?


Maggie Darwin added a comment - 19/Sep/08 08:59 PM
Product
Second Life

Problem
Stopped working

Date
9/17/2008 11:24 PM

Status
Not Reported

Problem signature
Problem Event Name: APPCRASH
Application Name: SecondLifeReleaseCandidate.exe
Application Version: 1.21.2.30544
Application Timestamp: 48c6a877
Fault Module Name: SecondLifeReleaseCandidate.exe
Fault Module Version: 1.21.2.30544
Fault Module Timestamp: 48c6a877
Exception Code: c0000005
Exception Offset: 0082e8b9
OS Version: 6.0.6000.2.0.0.768.3
Locale ID: 1033
Additional Information 1: 8aa5
Additional Information 2: 07fe8cea266a66d4cc69dd9f4166119f
Additional Information 3: f994
Additional Information 4: ed082dc105e5a7d22416f733f949b106

Product
Second Life

Problem
Stopped working

Date
9/16/2008 9:36 PM

Status
Not Reported

Problem signature
Problem Event Name: APPCRASH
Application Name: SecondLifeReleaseCandidate.exe
Application Version: 1.21.2.30544
Application Timestamp: 48c6a877
Fault Module Name: SecondLifeReleaseCandidate.exe
Fault Module Version: 1.21.2.30544
Fault Module Timestamp: 48c6a877
Exception Code: c0000005
Exception Offset: 0082e8b9
OS Version: 6.0.6000.2.0.0.768.3
Locale ID: 1033
Additional Information 1: 8aa5
Additional Information 2: 07fe8cea266a66d4cc69dd9f4166119f
Additional Information 3: f994
Additional Information 4: ed082dc105e5a7d22416f733f949b106

Product
Second Life

Problem
Stopped working

Date
9/14/2008 11:04 PM

Status
Not Reported

Problem signature
Problem Event Name: APPCRASH
Application Name: SecondLifeReleaseCandidate.exe
Application Version: 1.21.2.30544
Application Timestamp: 48c6a877
Fault Module Name: SecondLifeReleaseCandidate.exe
Fault Module Version: 1.21.2.30544
Fault Module Timestamp: 48c6a877
Exception Code: c0000005
Exception Offset: 0082e8b9
OS Version: 6.0.6000.2.0.0.768.3
Locale ID: 1033
Additional Information 1: 8aa5
Additional Information 2: 07fe8cea266a66d4cc69dd9f4166119f
Additional Information 3: f994
Additional Information 4: ed082dc105e5a7d22416f733f949b106


Maggie Darwin added a comment - 20/Sep/08 07:57 AM
There is a metric buttload of errors in this log before the viewer finally crashdumped with over 2gig of memory allocated.

The death rattle is:

2008-09-20T14:41:07Z WARNING: LLAppViewer::mainLoop: Bad memory allocation in LLAppViewer::mainLoop()!
2008-09-20T14:41:07Z INFO: LLAppViewer::idle: Kills on unknown objects: 13
2008-09-20T14:41:07Z INFO: LLAppViewer::idle: Unknown object updates: 4
2008-09-20T14:41:07Z INFO: LLViewerThrottleGroup::sendToSim: Sending throttle settings, total BW 1500
2008-09-20T14:41:07Z INFO: LLViewerThrottle::updateDynamicThrottle: Tightening network throttle to 1.9968e+006
2008-09-20T14:41:07Z WARNING: LLAppViewer::mainLoop: Bad memory allocation in LLAppViewer::mainLoop()!
2008-09-20T14:41:07Z newview/llspatialpartition.cpp(280) : error
2008-09-20T14:41:07Z ERROR: LLSpatialGroup::~LLSpatialGroup: Illegal deletion of LLSpatialGroup!

which was preceded by hundreds of

2008-09-20T14:41:06Z WARNING: LLImageGL::readBackRaw: GL Error happens before reading back texture. Error code: 1285

and

2008-09-20T14:40:56Z INFO: LLSDXMLParser::Impl::parse: LLSDXMLParser::Impl::parse: XML_STATUS_ERROR parsing:Upstream error:

A clue that the texture cache is corrupted in memory may be:

2008-09-20T14:40:41Z WARNING: LLTextureFetchWorker::decodeImage: DECODE FAILED: fafd5543-d106-4bba-3c44-281429dcda5b Discard: 0
2008-09-20T14:40:41Z WARNING: LLTextureCache::removeFromCache: Removing texture from cache: fafd5543-d106-4bba-3c44-281429dcda5b
2008-09-20T14:40:41Z WARNING: LLTextureFetchWorker::doWork: fafd5543-d106-4bba-3c44-281429dcda5b: Decode of cached file failed (removed), retrying


Maggie Darwin added a comment - 20/Sep/08 07:58 AM
@alexa: Is the log file not sent with crashdumps?

Chalice Yao added a comment - 20/Sep/08 04:32 PM
Out of curiosity, I'd like somebody who regularly has the massive memory usage and crash to try the following:

set the client cache to 500mb, and set texture memory to 64mb.

Then watch memory usage over the course of a few hours.


Maggie Darwin added a comment - 25/Sep/08 11:45 AM
@Chalice- I'll give that a try.

By the way, I've been having pretty good success inducing this by going to the Ahern Welcome Area and camming around a lot with a Space Nav.


Maggie Darwin added a comment - 26/Sep/08 01:42 PM
Just reproduced it again with 1.21.3

Repro: Go to Ahern Welcome Area (always has many avs at a sim corner) . Cam around rapidly (orbiting rapidly with a SpaceNav is good).Watch as memory climbs above 2gig. Then crashdump happens.


Maggie Darwin added a comment - 27/Sep/08 12:19 PM
Another repro:

TP to Burning Life and fly towards the center of the Playa at about 80m altitude.


Maggie Darwin added a comment - 27/Sep/08 12:25 PM
Just crashed again at Burning Life.

Maggie Darwin added a comment - 01/Oct/08 09:32 PM
Still present in RC4

Maggie Darwin added a comment - 06/Oct/08 08:37 AM
I'm starting to believe this has less to do with texture caching and more to do with how many avis are nearby.

Maggie Darwin added a comment - 07/Oct/08 05:19 PM
Still present in RC 5.

The "Animated Flosstown" section of Fishers Rest region is a good place to see this happen too.


Sugarcult Dagger added a comment - 07/Oct/08 08:36 PM - edited
i'm not seeing the crash but the frame rate i am seeing in RC5, and memory usage is off also, after i don't move 4 a bit the fps go's down to 2or 3 fps, not all the time but more than it should happen on all the fps issues. or when i run it will go down to 6 to 8 fps, flying down can do this also as i have a spinning fly down, i know 95% is not the sim as i have another av nxt 2 that av and will show what i take 4 a normal fps, 35 to 40 fps,sometimes it will recover but most times not, another thing i'm having, don't know if it's related but the longer i'm in world the "freeze" between opening a new inventory window is longer and longer finally turning into a black screen with a "not responding" error msg that has crashed my client in the past as i said i don't know if it by product of the fps thing, the memory thing i get is it drops down 2 about 39/40%,or lower, free and might recover some when i minimize but most often not, when i try 2 force a bit 2 recover, everything freezes up when i bring the window back up and things will move after a bit but not before most of what i gained is used up again, with the amount of ram i have i would'nt think memory would get eaten up that much, i could b wrong. i do expect larger memory use with 2 av's on but not as fast a drop off like i'm seeing, 1 usually run at least 2 avs 90% of the time i'm in so most of the time i can tell when things r not right as i have been doing this 4 quite a while with 2 or more in world. oh i also have things set to"purge" so my cash dumps every time i log in.

Second Life 1.21.5 (98701) Oct 6 2008 10:27:21 (Second Life Release Candidate)
Release Notes

You are at 201435.4, 265773.4, 623.8 in The Wastelands located at sim5746.agni.lindenlab.com (8.2.35.48:13001)
Second Life Server 1.24.9.98659
Release Notes

CPU: Intel Core 2 Series Processor (2399 MHz)
Memory: 3326 MB
OS Version: Microsoft Windows Vista Service Pack 1 (Build 6001)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8600 GTS/PCI/SSE2
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3
J2C Decoder Version: KDU
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.18653 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 1377/2580223 (0.1%)


Maggie Darwin added a comment - 09/Oct/08 06:38 PM
@chalice:

With texture memory set all the way down to 64MB the crash does seem to take substantially longer to happen. With 512mb a rail trip from Tulpitree crashed shortly after Neumogen. With 64mb I got all the way to Crumbi still below 1.93 GB vmem before I got brave and turned on the Map display.

The crash happened very shortly after turning on the map....before all the map textures loaded, in fact .

What's the theory behind your recommendation?


Maggie Darwin added a comment - 09/Oct/08 06:40 PM
with texture memory set to 64mb

nekololi woodget added a comment - 11/Oct/08 11:00 AM - edited
Uploaded a PrintScreen of WindowsXP task manager while memory usage climbed in a sim with little action and only 2 avatars including myself (FairChang Remolino).

("Memory Leak in 1.21.RC4.bmp")


Maggie Darwin added a comment - 17/Oct/08 05:57 PM
Still failing on 1.21.6 final with default texture mem of 640

nekololi woodget added a comment - 20/Oct/08 04:07 PM
Agreed, this is still a major problem in 1.21.6.
Nothing was fixed.

Doxent Zsigmond added a comment - 23/Oct/08 02:23 PM
I had to revert to 1.20.17 in order to remove those crashes. It works much more stable for me. 1.21.6 also performs much slower on my 9800GT card. In crowdy places there is usually 5fps and it freezes while rotating camera. On 1.20.17 it gets to 25-30fps and rotating camera isnt such a pain though it could use more of my graphics card. I had GeForce 8600GTS that worked much smoother on 163.75 driver. Now im on 175.16 driver that is quite slow but at least does not have texture bug http://jira.secondlife.com/browse/VWR-7957

CPU: Intel Pentium III/Pentium III Xeon (0.25 micron process) with external L2 cache (3333 MHz)
Memory: 3583 MB
OS Version: Microsoft Windows XP Dodatek Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 9800 GT/PCI/SSE2
OpenGL Version: 2.1.2
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.19031 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 4903/214261 (2.3%)


sodovan torok added a comment - 27/Oct/08 04:16 AM
I have seen this spike in memory usage, followed by an out-of-memory crash on my system too.

I have nVidia 9800, with 512Mb in it. The computer is a quad core Intel Core2, with 8G of ram, Vista Home Premium 64 (with SP1) etc etc

When I installed SL on this new machine, it decided to set my texture memory (prefs/graphics/hardware) to 2G, waaaay over the 512M the card actually has.

SL would slow, then crash.

Setting the texture memory in SL to 512M solved this issue completely for me.


Maggie Darwin added a comment - 27/Oct/08 05:47 AM
Mine is currently set to 512 on a 640 mb 8800 GTS card.

I should note that while the Vmem is always at 2 gig or above, the crash does not issue a message indicating that memory is exhausted. It just puts the crash alert box up, no reason is given.


Maggie Darwin added a comment - 01/Dec/08 05:59 PM
So, is this still in the "if there's a memory leak you have to tell us how to reliably reproduce it" pile?

Maggie Darwin added a comment - 08/Dec/08 07:57 AM
I admit I'm growing weary of having to check the viewer VSIZE when I start noticing frame rate going down, and relogging of it's more than about 1.8 gig, because that means The End Is Near.

Often the deteriorating frame rate when orbiting my cam is a clue...other times displaying a profile, launching the map, or starting a search pushes me over the edge without warning.


Maggie Darwin added a comment - 31/Dec/08 08:21 PM
Most reliable repro to date:

Use a multicore CPU, preferably quad, on a high-speed connection: Ours is 15mbps fiber

Go to http://slurl.com/secondlife/Atropos/149/146/39

Flycam though the "Need4Speed" for a minute or three, This location has objects playing audio, many many densely packed campers (24) and about a zillion textures.

2009-01-01T03:55:53Z INFO: LLStartUp::setStartupState: Startup state changing from STATE_LOGIN_SHOW to STATE_LOGIN_WAIT...

Death rattle:

2009-01-01T03:58:01Z INFO: display_stats: FPS: 16.60
2009-01-01T03:58:06Z WARNING: LLImageGL::readBackRaw: GL Error happens before reading back texture. Error code: 1285
2009-01-01T03:58:06Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 2a05690f-4552-6568-ffec-ad0ad16014cd
2009-01-01T03:58:06Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 2a05690f-4552-6568-ffec-ad0ad16014cd
2009-01-01T03:58:07Z INFO: LLTransferManager::processTransferInfo: Receiving 539f7e37-7433-357c-d1bb-f43321048c01, size 139126 bytes
2009-01-01T03:58:07Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-01T03:58:07Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-01T03:58:07Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-01T03:58:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-01T03:58:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-01T03:58:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-01T03:58:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-01T03:58:08Z newview/llappviewer.cpp(1073) : error
2009-01-01T03:58:08Z ERROR: LLAppViewer::mainLoop: Bad memory allocation in LLAppViewer::mainLoop()!

Second Life 1.22.4 (106127) Dec 16 2008 12:22:22 (Second Life Release Candidate)
Release Notes

You are at 257172.9, 262289.8, 39.4 in Atropos located at sim5871.agni.lindenlab.com (8.2.35.173:13000)
Second Life Server 1.24.10.106829
Release Notes

CPU: Intel Core 2 Series Processor (2399 MHz)
Memory: 3327 MB
OS Version: Microsoft Windows Vista (Build 6000)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8800 GTS/PCI/SSE2
OpenGL Version: 2.1.2

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3
J2C Decoder Version: KDU
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.20693 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 0/3585 (0.0%)


Maggie Darwin added a comment - 04/Jan/09 10:59 AM
This repros really well.

Well, I mean..not that it's good...

2009-01-04T18:55:39Z INFO: display_stats: FPS: 11.62
2009-01-04T18:55:42Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 7fc0487f-1b50-4be6-1c29-a32bc70277e5
2009-01-04T18:55:42Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 7fc0487f-1b50-4be6-1c29-a32bc70277e5
2009-01-04T18:55:42Z INFO: LLTransferManager::processTransferInfo: Receiving c88ddd7d-830c-d05d-6f9b-3167999333c5, size 18907 bytes
2009-01-04T18:55:48Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 8931455f-c40b-bb92-a1a4-243174302866
2009-01-04T18:55:48Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 8931455f-c40b-bb92-a1a4-243174302866
2009-01-04T18:55:48Z INFO: LLTransferManager::processTransferInfo: Receiving bbb4323e-769c-86c1-3193-192e0aa804a8, size 73879 bytes
2009-01-04T18:55:53Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 1da43c01-3f4d-6f4b-1457-79cc74e1c656
2009-01-04T18:55:53Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 1da43c01-3f4d-6f4b-1457-79cc74e1c656
2009-01-04T18:55:54Z INFO: LLTransferManager::processTransferInfo: Receiving 21b2a4db-c9f7-02a6-467d-77e8cb8ac516, size 150331 bytes
2009-01-04T18:56:00Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 74be6a55-387f-fb7f-28be-36958a089ac0
2009-01-04T18:56:00Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 74be6a55-387f-fb7f-28be-36958a089ac0
2009-01-04T18:56:00Z INFO: LLTransferManager::processTransferInfo: Receiving 2cc8572b-f229-2de5-dfe8-d7b0c70df5f9, size 73736 bytes
2009-01-04T18:56:03Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 65525326-f703-b601-da76-f68a43b90734
2009-01-04T18:56:03Z INFO: LLTransferManager::processTransferInfo: Receiving a06e31ba-cf96-5a89-1dfe-26ae64f26ebc, size 1222 bytes
2009-01-04T18:56:06Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 6c231744-461f-6249-719c-2c486676860f
2009-01-04T18:56:06Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 6c231744-461f-6249-719c-2c486676860f
2009-01-04T18:56:06Z INFO: LLTransferManager::processTransferInfo: Receiving 5a0233a9-db9f-ad90-d062-cf46ff1de506, size 73895 bytes
2009-01-04T18:56:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:08Z WARNING: LLImageGL::readBackRaw: GL Error happens before reading back texture. Error code: 1285
2009-01-04T18:56:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:08Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z WARNING: LLImageGL::readBackRaw: GL Error happens after reading back texture. Error code: 1285
2009-01-04T18:56:09Z newview/llappviewer.cpp(1073) : error
2009-01-04T18:56:09Z ERROR: LLAppViewer::mainLoop: Bad memory allocation in LLAppViewer::mainLoop()!


Maggie Darwin added a comment - 07/Jan/09 03:30 PM
Still broken in RC 5. Reproed easily using the method described above.

Two hundred and seventy two GL1285 errors issued just before the crash.

Also of possible interest:

2009-01-07T23:14:58Z WARNING: LLViewerImage::setIsMissingAsset: d8d3bb3d-b3be-1953-8d05-132a55f9bc0f: Marking image as missing
2009-01-07T23:14:59Z WARNING: LLViewerImage::setIsMissingAsset: d8d3bb3d-b3be-1953-8d05-132a55f9bc0f: Marking image as missing
2009-01-07T23:15:07Z WARNING: LLImageGL::setSize: texture size is big: width: 2048 height: 1024
2009-01-07T23:15:07Z WARNING: LLImageGL::setSize: max texture size is: 8192
2009-01-07T23:15:08Z WARNING: LLImageGL::setSize: texture size is big: width: 2048 height: 2048
2009-01-07T23:15:08Z WARNING: LLImageGL::setSize: max texture size is: 8192

The 1285s started at 2009-01-07T23:15:23Z

2009-01-07T23:15:34Z WARNING: LLAudioChannelFMOD::play: LLAudioChannelFMOD::play error: An invalid parameter was passed to this function

2009-01-07T23:15:41Z WARNING: LLAudioChannelFMOD::play: Playing without a channelID, aborting

...

2009-01-07T23:15:44Z WARNING: LLImageGL::setSize: texture size is big: width: 2048 height: 64
2009-01-07T23:15:44Z WARNING: LLImageGL::setSize: max texture size is: 8192
2009-01-07T23:15:46Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 34fbf73b-2986-6904-24b2-9593385cf422
2009-01-07T23:15:46Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 34fbf73b-2986-6904-24b2-9593385cf422
2009-01-07T23:15:46Z INFO: LLTransferManager::processTransferInfo: Receiving 76b9b0f3-e0f5-d744-0b77-1e8f6a043be8, size 73308 bytes
2009-01-07T23:15:47Z WARNING: LLImageGL::readBackRaw: GL Error happens before reading back texture. Error code: 1285
2009-01-07T23:15:48Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for b435fe33-d906-5255-24f3-d8a585a0f93f
2009-01-07T23:15:48Z INFO: LLTransferManager::processTransferInfo: Receiving 2951c69a-5425-69d7-b255-95da6b3b6911, size 1574 bytes
2009-01-07T23:15:48Z WARNING: LLImageGL::readBackRaw: GL Error happens before reading back texture. Error code: 1285
2009-01-07T23:15:49Z WARNING: LLImageGL::readBackRaw: GL Error happens before reading back texture. Error code: 1285
2009-01-07T23:15:51Z INFO: LLAudioEngine::getFreeBuffer: Taking over unused buffer 9
2009-01-07T23:15:53Z INFO: LLAudioEngine::getFreeBuffer: Taking over unused buffer 12
2009-01-07T23:15:55Z INFO: LLAudioEngine::startNextTransfer: Getting asset data for: 364c504b-1587-2c79-7ec8-f5e7f1d1ce06
2009-01-07T23:15:55Z INFO: LLAssetStorage::_queueDataRequest: Starting transfer for 364c504b-1587-2c79-7ec8-f5e7f1d1ce06
2009-01-07T23:15:55Z INFO: LLTransferManager::processTransferInfo: Receiving 7396056f-2663-f48a-e270-5d9d48fd801e, size 72326 bytes
2009-01-07T23:15:56Z WARNING: LLImageGL::setSize: texture size is big: width: 2048 height: 512
2009-01-07T23:15:56Z WARNING: LLImageGL::setSize: max texture size is: 8192
2009-01-07T23:15:56Z newview/llappviewer.cpp(1073) : error
2009-01-07T23:15:56Z ERROR: LLAppViewer::mainLoop: Bad memory allocation in LLAppViewer::mainLoop()!


bao linden added a comment - 07/Jan/09 04:59 PM
Hey guys, we are working on this issue. As a temporary measure, goto "preferences -> graphics tab -> hardware options" to set the texture memory to be 256MB if the current number is above that. Try it to see if it helps.

Maggie Darwin added a comment - 07/Jan/09 06:38 PM
Haven't been able to crash it at Need4Speed yet at 256mb, and I've been camming through there for twenty minutes

Texture performance is kind of stinky, but at least I'm not crashing


Maggie Darwin added a comment - 09/Jan/09 06:16 AM
This severely needs fixing, you can't tell your customers to buy hotrod vidcards and then not support them. I hope VWR-11457 isn't related. I would like to hear a more detailed explanation of Zen Linden's statement: "We now cap the amount of texture memory used at 512 MB to prevent some driver bugs when using more than that. 512 MB should be adequate for now."

If there's a bug in nVidia driivers, please give us the nVidia bug numbers so we can press them for a fix.


Ramzi Linden added a comment - 20/Jan/09 01:55 PM
I am updating the Description to include Maggie Darwin's reliable repro steps.

Maggie Darwin added a comment - 20/Jan/09 02:29 PM
Um...the single log record there under "OBSERVE" isn't significant, is it?

Maestro Linden added a comment - 16/Feb/09 01:41 PM
Cannot repro with 1.22RC9 under XP, running on ultra graphics settings. Memory usage is stable at 490MB, even after 90 minutes of being in the sim.

Maggie Darwin added a comment - 18/Feb/09 12:23 PM
You know, I think this is more deserving of "fixed" than "cannot reproduce". It sure as heck was reproducible, and I worked hard with Lindenfolk to help them find the circumstances that reproduced it.

If it can't be reproduced now, it's because it was fixed (or at least the code was shuffled enough that the symptoms are different).


Reka Rockett added a comment - 19/Feb/09 03:40 AM
My client crashes a lot, more so if I'm trying to do some building, but it's not restricted to that.

I've tried everything I can think of from drivers, different clients and graphical settings.

Second Life 1.22.9 (110075) Feb 10 2009 12:43:24 (Second Life Release Candidate)

You are at 232785.1, 257357.6, 22.0 in Ryder Manor Isle located at sim957.agni.lindenlab.com (8.4.129.107:12035)
Second Life Server 1.25.5.109327

CPU: Intel Pentium 4 Northwood (2992 MHz)
Memory: 2559 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: ATI Technologies Inc.
Graphics Card: RADEON 9800 PRO
OpenGL Version: 2.1.8395 Release

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.740000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.21877 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 0/1101 (0.0%)


Maggie Darwin added a comment - 19/Feb/09 04:01 AM
Well, 1.22.9 isn't crash-free, that's for certain. But you might want to make a separate JIRA for yours.

Maggie Darwin added a comment - 26/Apr/09 06:17 PM
1.22.11 isn't leakproof either...for some reason especially since server 1.26 happened, it seems. Attaching new log/debug/memory leak use graph

Maggie Darwin added a comment - 10/Jun/09 05:05 PM
This or something very similar seems to be back in 1.23 RC 3

Maggie Darwin added a comment - 13/Jun/09 06:58 AM
Still happening in 1.23.4

Does this help?

2009-06-13T13:46:46Z INFO: viewer_windows_exception_handler: Entering Windows Exception Handler...
2009-06-13T13:47:18Z INFO: LLAppViewer::handleViewerCrash: Handle viewer crash entry.
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: ************* PRINT OUT LL CALL STACKS *************
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: display line: 686
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 562
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 560
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 555
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 537
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 530
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 528
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 525
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 523
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 521
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImageList::updateImages line: 513
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLBumpImageList::updateImages line: 879
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLBumpImageList::updateImages line: 852
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLBumpImageList::updateImages line: 825
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: LLViewerImage::updateClass line: 155
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: display line: 671
2009-06-13T13:47:18Z INFO: LLError::LLCallStacks::print: *************** END OF LL CALL STACKS ***************


Maggie Darwin added a comment - 13/Jun/09 07:01 AM
Since we're still seeing crashes with the same core symptom: quad core box leaks memory up to 2 gig vmem and then falls over, it seems unlikely this is "fix pending"

nekololi woodget added a comment - 14/Jun/09 02:41 PM - edited
I was getting this really bad in all the 1.21 renditions, but it was fixed in 1.22 and 1.23 is even better so far.

I notice Maggie is running vista I have been using both WindowsXP standard and WindowsXP SP3.

CPU: AMD (Unknown model) (2004 MHz) <-- (Single core AMD64)
Memory: 2048 MB
OS Version: Microsoft Windows XP Service Pack 3 (Build 2600)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 7600 GS/AGP/SSE2/3DNOW!
Windows Graphics Driver Version: 6.14.0011.8208
OpenGL Version: 2.1.2


Maggie Darwin added a comment - 14/Jun/09 03:08 PM - edited
Looking forward to nekolili's full configuration, especially how many cores sie is running.

Meanwhile, we seem to have a nomenclature problem:

How can a bug be "fixed" in 1.22 and "better" in 1.23?

What's better than fixed? I don't consider a bug to be fixed until it doesn't happen anymore.


nekololi woodget added a comment - 14/Jun/09 08:43 PM
Sorry, by fixed I meant my RAM usage wasn't ballooning with SL in 1.22 and not crashing every few hours. And by better I meant 1.23 seems faster and more stable than 1.22, as before SL 1.21 would eventually get all spazzy as RAM filled.

Maggie Darwin added a comment - 14/Jun/09 09:17 PM
Well, of course it's not RAM that's filling as such. It's the address space. I've got oodles of RAM, but on a 32 bit OS you only get so much per address space. There's more on Vista 32 than XP 32, but when you're leaking eventually it runs out....and 2 gig is it.

I think SLV leaks more when stressed on a quad-core simply because there's more opportunities to tickle it in places where it isn't threadsafe, especially if you use flycam a lot.


Maggie Darwin added a comment - 26/Jul/09 08:55 AM
Still leaky on multicores. I guess this is still considered "normal".

Maggie Darwin added a comment - 26/Aug/09 05:18 PM
Rob Linden added a comment to SNOW-177 - 13/Aug/09 04:17 PM
Since this is already captured in VWR-8841, let's not leave this one open. We'll likely be making a switch to tcmalloc soon, which may make this moot, but can't say for sure that that is the fix.

gooden uggla added a comment - 17/Oct/09 08:16 PM
If LL wanted to fix the myriad problems that THEY created in the viewer, it would be fixed...

Incompetence, greed and lies are why this issue is still open.

99% of the people at the Lab are hardworking, honest, smart and devoted to doing a good job for all of us.

It sucks that the ones making policy aren't among them.

Good luck Maggie, you fought the good fight, I'll always appreciate and respect the work you and many others have done here.

Ciao


Maggie Darwin added a comment - 17/Oct/09 09:05 PM
Well, I won't minimize the difficulty of writing un-threadsafe code. I've done it myself, even in modern languages. And the only thing that's more difficult than writing it safe in the first place is finding the unsafe parts once it's already written, especially by somebody else.

When everybody was on a much slower chip with only one core this wasn't so much of a problem. Now it is.


Maggie Darwin added a comment - 17/Oct/09 09:06 PM - edited
I'm trying to reset the fix version because obviously 1.22 doesn't fix it. But I select "unknown" and it doesn;t change.

Maggie Darwin added a comment - 25/Oct/09 12:33 PM
trying again to reset "fix version" This is still happening.