Commit Graph

1731 Commits (8ea7867528cf2c03f2fc60a361663af2a4084bfb)

Author SHA1 Message Date
Mnikolenko Productengine c09155574d SL-15083 Remove old vfs files 2022-01-11 19:31:51 +02:00
Mnikolenko Productengine c8f761fe93 SL-15083 Add 'DiskCacheVersion' to keep 'filesystem cache' in check 2022-01-10 18:52:18 +02:00
Howard Stearns edc641fb0b Merged in SL-13297 (pull request #820)
SL-13297 Show both voice versions

Approved-by: Andrey Kleshchev
Approved-by: Andrey Lihatskiy
2022-01-07 17:06:48 +00:00
Howard Stearns 4dfecb6e1a SL-13297 - Change names to match coding standard. 2022-01-06 16:33:38 -08:00
Howard Stearns bdd8a52dfe SL-13297 - Record and use build version reported by SLVoice 2022-01-06 15:44:21 -08:00
Howard Stearns b829efe759 SL-13297 - Show both server/voice versions only if mismatched. Otherwise show the longer one. 2022-01-06 15:43:45 -08:00
Howard Stearns cac54c8760 SL-13297 - Create LLLicenseInfo and use it in LLAppViewer::getViewerInfo and LLFloaterAbout::postBuild. 2022-01-06 15:43:05 -08:00
Mnikolenko Productengine d91606b354 Merge branch 'master' into DRTVWR-544-maint 2021-12-20 15:36:23 +02:00
Andrey Lihatskiy caa780fd3a Merge branch 'master' into DRTVWR-544-maint
# Conflicts:
#	indra/newview/llvoicevivox.cpp
2021-11-19 04:33:53 +02:00
Andrey Lihatskiy ab4d4a4817 Merge branch 'DRTVWR-519' into DRTVWR-552-cache-360
# Conflicts:
#	indra/newview/app_settings/settings.xml
2021-11-16 01:24:03 +02:00
Andrey Lihatskiy 0505c6ebbb Merge branch 'master' into DRTVWR-534
# Conflicts:
#	indra/newview/VIEWER_VERSION.txt
2021-11-16 01:21:55 +02:00
Andrey Lihatskiy 0bffd3d365 Merge branch 'master' into DRTVWR-519
# Conflicts:
#	README.md
2021-11-16 01:21:05 +02:00
Andrey Kleshchev 875e502cc9 SL-13867 Developer ability to select and reposition multiple avatars 2021-11-09 19:05:24 +02:00
Andrey Kleshchev 404e69e594 SL-15462 Convert waitForChannel() into state machine 2021-10-28 21:25:38 +03:00
Callum Linden 3c2ccd879c Merge with master after latest Viewer release 2021-10-13 16:54:08 -07:00
Callum Prentice 8a1bc1b9e2 Merge with head of Master after a new Viewer release 2021-10-13 14:47:06 -07:00
Andrey Lihatskiy fb170ffe21 Merge branch 'master' into DRTVWR-545-maint-mix 2021-10-14 00:35:08 +03:00
Andrey Kleshchev f30cc7b5bb Revert "SL-11841 make ‘Push to talk’ the default setting"
This reverts commits:
126877bc5b
b661f62a7a
ce660c7e7b
2021-09-21 00:20:37 +03:00
Andrey Kleshchev ce660c7e7b SL-11841 Fix PushToTalkToggle being set incorectly
Due to changed defaults, legacy compatibility will no longer work corectly, remove it
2021-09-18 00:08:27 +03:00
Mnikolenko ProductEngine 8c7db0ad6c SL-15902 Cleanup gSecAPIHandler 2021-09-03 22:21:29 +03:00
Andrey Kleshchev 7fc6519208 DRTVWR-545 Megre fix 2021-09-03 10:49:45 +03:00
Andrey Lihatskiy b18f328c08 Merge branch 'DRTVWR-522-maint' into DRTVWR-545-maint-mix
# Conflicts:
#	indra/newview/llappviewer.cpp
#	indra/newview/llappviewerwin32.cpp
#	indra/newview/llmachineid.cpp
2021-09-03 00:18:26 +03:00
Mnikolenko Productengine efb50dced0 SL-15872 fixed more cases where sUseFBO wasn't updated correctly 2021-09-01 17:42:22 +03:00
Andrey Lihatskiy 97f09de4fc Merge branch 'master' into DRTVWR-520-apple-notarization
# Conflicts:
#	autobuild.xml
#	build.sh
#	indra/CMakeLists.txt
#	indra/newview/CMakeLists.txt
#	indra/newview/llappviewermacosx.cpp
#	indra/newview/llappviewerwin32.h
#	indra/newview/viewer_manifest.py
#	indra/win_crash_logger/llcrashloggerwindows.cpp
2021-08-12 23:13:12 +03:00
Andrey Kleshchev 1de9a6e32e SL-15696 Don't be so persistent with outdated driver notification
Some manufactures provide no own updated drivers yet forbid users from updating to intel provided one
2021-08-06 20:44:02 +03:00
Andrey Lihatskiy b388191062 DRTVWR-521 post-merge build fix 2021-07-20 03:02:05 +03:00
Andrey Lihatskiy 6c8e6f033b Merge branch 'master' into DRTVWR-521-maint
# Conflicts:
#	autobuild.xml
#	indra/llcommon/llerror.cpp
#	indra/llui/llnotifications.h
#	indra/newview/llappviewer.cpp
#	indra/newview/llappviewermacosx.cpp
2021-07-20 02:48:05 +03:00
Callum Prentice 8631a7a077 Merge with tip of Master after a Viewer release 2021-07-19 14:35:44 -07:00
Andrey Lihatskiy 2ded530f93 Merge branch 'master' into DRTVWR-522-maint
# Conflicts:
#	doc/contributions.txt
#	indra/newview/llappcorehttp.cpp
#	indra/newview/llappcorehttp.h
2021-07-19 22:20:45 +03:00
Andrey Lihatskiy 3d92a7dfe2 Merge branch 'master' into DRTVWR-520-apple-notarization 2021-06-25 01:02:29 +03:00
Andrey Lihatskiy 7f19c512c9 Merge branch 'master' into DRTVWR-522-maint
# Conflicts:
#	indra/newview/app_settings/settings.xml
2021-06-25 00:54:35 +03:00
Andrey Lihatskiy 293272c2c7 Merge branch 'master' into DRTVWR-521-maint 2021-06-25 00:52:03 +03:00
Andrey Lihatskiy a4c6c7059f Merge branch 'master' into DRTVWR-516-maint
# Conflicts:
#	indra/newview/app_settings/settings.xml
#	indra/newview/llvoicevivox.cpp
2021-06-25 00:51:02 +03:00
Callum Prentice 57da3e609f Merge branch 'master' into DRTVWR-519 2021-06-24 14:35:24 -07:00
Callum Prentice ad9ed0a94d Merge with tip of Master after Viewer release 2021-06-07 18:55:00 -07:00
Andrey Lihatskiy 88ac2812b4 Merge branch 'master' into DRTVWR-522-maint 2021-06-07 21:04:46 +03:00
Andrey Lihatskiy a4595bdaf2 Merge branch 'master' into DRTVWR-521-maint
# Conflicts:
#	doc/contributions.txt
2021-06-07 21:04:32 +03:00
Andrey Lihatskiy fa8f186213 Merge branch 'master' into DRTVWR-520-apple-notarization 2021-06-07 21:03:36 +03:00
Andrey Lihatskiy e7319fb671 Merge branch 'master' into DRTVWR-518-ui 2021-06-07 21:03:27 +03:00
Andrey Lihatskiy fef6c1f51e Merge branch 'master' into DRTVWR-516-maint 2021-06-07 20:54:41 +03:00
Mnikolenko Productengine 74711a2cf2 SL-15196 Attach correct log file to Bugsplat report 2021-05-26 14:57:31 +03:00
Andrey Lihatskiy 2922c59316 Merge branch 'sl-10297' into DRTVWR-516-maint 2021-05-21 20:31:53 +03:00
Nat Goodspeed 28862ab53b SL-10297: Clean up a few merge glitches. 2021-05-12 14:21:27 -04:00
Nat Goodspeed fd1545197a SL-10297: Merge branch 'sl-10297-oz' into sl-10297.
Bring in Oz's tweaks to the way BugSplat is engaged and tested, plus a few
other miscellaneous goodies.
2021-05-12 13:56:19 -04:00
Ansariel 0e253cb909 BUG-230673: Trim asset disk cache regularly 2021-05-12 10:45:23 +02:00
Nat Goodspeed c9fc4349b7 SL-10297: Move LL_ERRS crash location into the LL_ERRS macro itself.
Introduce Oz's LLERROR_CRASH macro analogous to the old LLError::crashAndLoop()
function. Change LL_ENDL macro so that, after calling flush(), if the CallSite
is for LEVEL_ERROR, we invoke LLERROR_CRASH right there.

Change the meaning of LLError::FatalFunction. It used to be responsible for
the actual crash (hence crashAndLoop()). Now, instead, its role is to disrupt
control flow in some other way if you DON'T want to crash: throw an exception,
or call exit() or some such. Any FatalFunction that returns normally will fall
into the new crash in LL_ENDL.

Accordingly, the new default FatalFunction is a no-op lambda. This eliminates
the need to test for empty (not set) FatalFunction in Log::flush().

Remove LLError::crashAndLoop() because the official LL_ERRS crash is now in
LL_ENDL.

One of the two common use cases for setFatalFunction() used to be to intercept
control in the last moments before crashing -- not to crash or to avoid
crashing, but to capture the LL_ERRS message in some way. Especially when
that's temporary, though (e.g. LLLeap), saving and restoring the previous
FatalFunction only works when the lifespans of the relevant objects are
strictly LIFO.

Either way, that's a misuse of FatalFunction. Fortunately the Recorder
mechanism exactly addresses that case. Introduce a GenericRecorder template
subclass, with LLError::addGenericRecorder(callable) that accepts a callable
with suitable (level, message) signature, instantiates a GenericRecorder, adds
it to the logging machinery and returns the RecorderPtr for possible later use
with removeRecorder().

Change llappviewer.cpp's errorCallback() to an addGenericRecorder() callable.
Its role was simply to update gDebugInfo["FatalMessage"] with the LL_ERRS
message, then call writeDebugInfo(), before calling crashAndLoop() to finish
crashing. Remove the crashAndLoop() call, retaining the gDebugInfo logic. Pass
errorCallback() to LLError::addGenericRecorder() instead of setFatalFunction().

Oddly, errorCallback()'s crashAndLoop() call was conditional on a compile-time
SHADER_CRASH_NONFATAL symbol. The new mechanism provides no way to support
SHADER_CRASH_NONFATAL -- it is a Bad Idea to return normally from any LL_ERRS
invocation!

Rename LLLeapImpl::fatalFunction() to onError(). Instead of passing it to
LLError::setFatalFunction(), pass it to addGenericRecorder(). Capture the
returned RecorderPtr in mRecorder, replacing mPrevFatalFunction. Then
~LLLeapImpl() calls removeRecorder(mRecorder) instead of restoring
mPrevFatalFunction (which, as noted above, was order-sensitive).

Of course, every enabled Recorder is called with every log message. onError()
and errorCallback() must specifically test for calls with LEVEL_ERROR.

LLSingletonBase::logerrs() used to call LLError::getFatalFunction(), check the
return and call it if non-empty, else call LLError::crashAndLoop(). Replace
all that with LLERROR_CRASH.

Remove from llappviewer.cpp the watchdog_llerrs_callback() and
watchdog_killer_callback() functions. watchdog_killer_callback(), passed to
Watchdog::init(), used to setFatalFunction(watchdog_llerrs_callback) and then
invoke LL_ERRS() -- which seems a bit roundabout. watchdog_llerrs_callback(),
in turn, replicated much of the logic in the primary errorCallback() function
before replicating the crash from llwatchdog.cpp's default_killer_callback().

Instead, pass LLWatchdog::init() a lambda that invokes the LL_ERRS() message
formerly found in watchdog_killer_callback(). It no longer needs to override
FatalFunction with watchdog_llerrs_callback() because errorCallback() will
still be called as a Recorder, obviating watchdog_llerrs_callback()'s first
half; and LL_ENDL will handle the crash, obviating the second half.

Remove from llappviewer.cpp the static fast_exit() function, which was simply
an alias for _exit() acceptable to boost::bind(). Use a lambda directly
calling _exit() instead of using boost::bind() at all.

In the CaptureLog class in llcommon/tests/wrapllerrs.h, instead of statically
referencing the wouldHaveCrashed() function from test.cpp, simply save and
restore the current FatalFunction across the LLError::saveAndResetSettings()
call.

llerror_test.cpp calls setFatalFunction(fatalCall), where fatalCall() was a
function that simply set a fatalWasCalled bool rather than actually crashing
in any way. Of course, that implementation would now lead to crashing the test
program. Make fatalCall() throw a new FatalWasCalled exception. Introduce a
CATCH(LL_ERRS("tag"), "message") macro that expands to:
LL_ERRS("tag") << "message" << LL_ENDL;
within a try/catch block that catches FatalWasCalled and sets the same bool.

Change all existing LL_ERRS() in llerror_test.cpp to corresponding CATCH()
calls. In fact there's also an LL_DEBUGS(bad tag) invocation that exercises an
LL_ERRS internal to llerror.cpp; wrap that too.
2021-05-11 21:42:14 -04:00
Callum Prentice 3898609ae2 Fix for SL-15226 Simple cache viewer: Integer overflow in cache size - via FS:Ansariel 2021-05-11 12:58:05 -07:00
Andrey Kleshchev cfb6ca569b SL-15168 Viewer side functionality for guidebook window opening 2021-05-06 02:46:42 +03:00
Andrey Lihatskiy 789be6b933 Merge branch 'master' into DRTVWR-520-apple-notarization 2021-04-30 03:05:19 +03:00
Andrey Lihatskiy e00edbeb4a Merge branch 'master' into DRTVWR-522-maint
# Conflicts:
#	doc/contributions.txt
2021-04-30 03:04:06 +03:00