Commit Graph

112 Commits (7a006ea3a217ca27d8d79b1afdf6642fdc7c15ec)

Author SHA1 Message Date
Andrey Kleshchev 6e445e82e2 MAINT-8091 Removed deprecated and unused private memory pooling 2018-01-30 14:03:26 +00:00
AndreyL ProductEngine 57a99273ed Merged in lindenlab/viewer-release 2018-01-17 03:20:12 +02:00
Nat Goodspeed 5002bf5660 MAINT-8087: Use env vars from VMP for AppData\Roaming and Local.
On Windows, when logged in with a non-ASCII username, every one of the three
documented APIs -- SHGetSpecialFolderPath(), SHGetFolderPath() and
SHGetKnownFolderPath() -- fails to retrieve any pathname at all. We cannot
account for the fact that the oldest of these continues to work with the
release viewer and within a Python script (though not, curiously, from a
Python interactive session). With a non-ASCII username, they consistently fail
when called from an Alex Ivy viewer build: "The filename, directory name, or
volume label syntax is incorrect."

Empirically, with a non-ASCII username, the preset APPDATA and LOCALAPPDATA
environment variables are also useless, e.g. c:\Users\??????\AppData\Roaming
where those are, yup, actual question marks.

Empirically, the VMP is able to successfully call SHGetFolderPath() to
retrieve both AppData\Roaming and AppData\Local. Therefore, we make the VMP
set the APPDATA and LOCALAPPDATA environment variables to the UTF-8 encoded
correct pathnames. Instead of calling SHGetSomethingFolderPath() at all, make
LLDir_Win32 retrieve those environment variables.

Make LLFile::mkdir() treat "directory already exists" as a success case. Every
single call fell into one of two categories: either it didn't check success at
all, or it tested specially to exempt errno == EEXIST. Migrate that test into
mkdir(); eliminate it from call sites.

Make LLDir::append() and add() convenience functions accept variadic
arguments. Replace add(add()...) constructs, as well as clumsy concatenations
of directory names and getDirDelimiter(), with simple variadic add() calls.
2017-12-20 22:51:26 -05:00
andreykproductengine 34d3b49d1f MAINT-2124 Texture allocation issues 2017-12-05 17:54:17 +02:00
andreykproductengine 7161619d6c MAINT-7978 - Fixed allocation crash in doRead(), workers should never crash 2017-11-06 16:46:16 +02:00
andreykproductengine 76c7eb7310 Backed out changeset: bfa432c3c7d5 (SL-775) 2017-10-23 17:28:18 +03:00
andreykproductengine 7697f7f9a6 MAINT-7929 Viewer shouldn't attempt to access unreadable cache indefientely 2017-10-23 17:15:00 +03:00
andreykproductengine 5ee30b7da5 MAINT-7895 Fix for setHeaderCacheEntry infinite loop 2017-10-11 19:37:35 +03:00
Mnikolenko Productengine e0265d3754 build fix 2017-10-03 12:00:11 +03:00
andreykproductengine 5844a9372f SL-775 Texture cache purge improvements 2017-09-28 17:10:38 +03:00
andreykproductengine 18483e902c MAINT-7779 Protections against wrong data 2017-09-18 18:11:04 +03:00
ruslantproductengine 6dcde6469d [SL-711] - Eliminate some overheads in texturecache.
- Eliminate memory overhead when need duplicated scaled image.
- Small improvement in LLImageBase::getCodecFromExtension()
2017-06-06 15:30:03 +03:00
andreykproductengine a0b57c0cd7 SL-776 Disk cache purge not purging headers if headers are corrupt or on version mismatch 2017-08-29 16:45:29 +03:00
andreykproductengine d290f2c512 BUG-134134 Additional logging 2017-08-21 17:41:41 +03:00
andreykproductengine 654aead8a1 SL-684 Improve cache version guard 2017-08-09 18:19:28 +03:00
AndreyL ProductEngine 2e52d12ef1 MAINT-6819 Fix for LLTextureCacheRemoteWorker::doWrite crash 2016-10-19 02:09:47 +03:00
AndreyL ProductEngine 41f1d0b667 MAINT-6123 Fix for LLTextureCache::writeToFastCache crash 2016-09-28 18:39:36 +03:00
Oz Linden 950c41d184 merge 4.0.4-release and MAINT-5974 2016-05-06 10:28:42 -04:00
andreykproductengine 8351acc78c MAINT-6105 FIXED Lowering Cache Size and relogging results in many corrupted textures 2016-02-05 19:30:16 +02:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
andreykproductengine 1f1b5dc51d MAINT-5230 FIXED Viewer gets stuck clearing texture cache 2015-06-08 16:25:59 +03:00
Xiaohong Bao d8c02bf062 Merge 2013-08-19 16:09:28 -06:00
Richard Linden e340009fc5 second phase summer cleaning
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-08-09 17:11:19 -07:00
Richard Linden a2a6bf20d7 merge with release 2013-06-20 16:46:23 -07:00
Dave Parks 9ea2d90a0d Automated merge with http://bitbucket.org/lindenlab/viewer-release 2013-06-20 12:10:26 -05:00
simon f62d04d425 MAINT-2791: Yet another crash in LLTextureCache::writeToFastCache(). Reviewed
by Kelly
2013-06-14 11:32:12 -07:00
Graham Madarasz fe077cfba6 MAINT-2414 fix for texture cache crasher 2013-06-10 10:45:15 -07:00
Richard Linden 0a96b47663 merge with viewer-release 2013-06-05 19:05:43 -07:00
Xiaohong Bao 52e8b2a1a2 for SH-4004: interesting: need debug option to clear viewer cache while still logged in 2013-05-28 18:25:12 -06:00
simon c7f7c4bc4d Merge viewer-beta 2013-05-09 13:14:49 -07:00
Graham Madarasz bf6182daa8 Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
Xiaohong Bao d3b9f446a6 fix for MAINT-2147: crash in LLTextureCache::writeToFastCache on OSX 2013-01-03 22:37:44 -07:00
Xiaohong Bao 11bebcbcac more for MAINT-1955: Viewer crashes while login after clearing cache 2012-12-03 21:34:36 -07:00
Xiaohong Bao e3b5d8b24f more for MAINT-1955: Viewer crashes while login after clearing cache 2012-12-03 21:34:36 -07:00
Xiaohong Bao a1c52b7cd1 fix for MAINT-1955: Viewer crashes while login after clearing cache 2012-11-26 17:27:25 -07:00
Xiaohong Bao fe2f9e12f7 fix for MAINT-1955: Viewer crashes while login after clearing cache 2012-11-26 17:27:25 -07:00
Xiaohong Bao 0d80aced24 for SH-3073: implement a fast cache system for texture fetching 2012-06-12 17:01:48 -06:00
Dave Parks 78233d1bf9 SH-2652 WIP -- Add timers to relevant areas, pause render pipeline while occlusion queries from previous frame are still pending and perform texture decode work. 2011-12-05 17:55:40 -06:00
Brad Payne (Vir Linden) 51c7887f8d merge 2011-10-31 11:35:22 -04:00
Xiaohong Bao fa04683aba fix for SH-2573: Flaw in Purging Texture Cache when it Exceeds Limit 2011-10-26 11:10:18 -06:00
Dave Parks 4924f0c99b b782a75c99e6 backout cleanup 2011-10-14 12:38:48 -05:00
Dave Parks c0ca8e5e2e Merge backout of b782a75c99e6 2011-10-14 11:58:35 -05:00
Dave Parks 4331c112ab Backed out changeset b782a75c99e6 2011-10-14 11:52:40 -05:00
Xiaohong Bao d951267467 Merge from viewer-development 2011-07-15 12:14:34 -06:00
Logan Dethrow 2662c4b679 Merge. Pulling fix for VWR-25862 into bigger cache tree. 2011-06-01 17:05:38 -04:00
Logan Dethrow 57bdcd6bda VWR-25862 Potential fix for caches not clearing when they are supposed to.
* Removed leading delimiter from filename mask in all calls to
  LLDir::deleteFilesInDir() that are related to the viewer asset caches
  (texture, VFS, and VO).
2011-05-25 15:44:03 -04:00
Xiaohong Bao b594d3b04d add debug mode to track the memory allocation/deallocation. 2011-05-10 21:02:20 -06:00
Logan Dethrow 5c7a906b44 Increased the viewer cache size limit to 10GB. Increased the default to 1GB.
* Changed the hard coded cache limit in llappviewer.cpp to 10GB as well as the
   slider maximum in the preferences menu. * The VFS cache is capped at 1GB due
   to file system limitations. The former 80/20 split between texture/vfs is
   maintained up to 5GB. Above this limit the texture cache is given all
   the additional cache space up to 10GB.
 * Fixed a log message in lltexturecache.cpp that was not showing the correct
   texture size. ER-883
 * Fixed a bug in llfloaterpreference.cpp that caused new cache value to be
   written to the old cache setting. This resulted in the the cache not being
   cleared when the location was set back to the default. ER-882
 * Disabled the "The cache will be cleared on reboot" message that is triggered
   by the reset button in the cache preferences in the case where the cache
   is already located in the default location.  The cache is only cleared when
   its location is changed. This is intended to address resident confusion
   regarding the purpose of the reset button, as demonstrated in VWR-19562.
2011-05-06 15:15:17 -04:00
Merov Linden 005da00fff STORM-1059 : Fix for cache purging (fix by Aleric) 2011-03-11 14:38:09 -08:00
Xiaohong Bao 29415d1407 Merge 2011-02-23 13:48:35 -07:00