Commit Graph

43897 Commits (03e0640212e69a6794d034a049fd6bdb042dd157)

Author SHA1 Message Date
Mnikolenko Productengine 03e0640212 SL-15571 update ‘Reset’ button in the ‘Covenant’ tab correctly 2021-07-20 16:58:25 +03:00
Andrey Lihatskiy 52c898b765 Merge branch 'master' into DRTVWR-543-maint 2021-07-19 22:23:14 +03:00
Andrey Kleshchev 8a14d89582 SL-15592 Emergency login failure dialog
Server message by id "LoginFailure" was pulling in header instead of a message
2021-07-19 22:06:12 +03:00
Andrey Kleshchev eacd9a30bb SL-15574 If login response provides ISO8601 time, convert to local 2021-07-16 20:19:20 +03:00
Andrey Kleshchev 85f3345c35 SL-15574 Fixed message mising some text 2021-07-15 18:22:52 +03:00
Nat Goodspeed be6066eae2 Increment viewer version to 6.4.22
following promotion of DRTVWR-516
2021-07-14 23:27:32 -04:00
Andrey Kleshchev 35f2b14c1d Revert "SL-15434 Change default landmark destination"
This reverts commit efc8b268a2.
2021-07-13 00:05:04 +03:00
Mnikolenko Productengine d38866d030 SL-15512 Update text in the Favorites Bar and Favorites window 2021-07-01 13:42:14 +03:00
Andrey Kleshchev efc8b268a2 SL-15434 Change default landmark destination 2021-06-30 23:24:27 +03:00
Andrey Kleshchev 21f70785d7 SL-15434 The 'Add to my Landmarks' star icon is not marked in the Top menu bar 2021-06-30 23:14:16 +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
Nat Goodspeed 467d8339c9 Increment viewer version to 6.4.21
following promotion of DRTVWR-518
2021-06-24 15:52:37 -04:00
Andrey Kleshchev abf8c4b364 SL-10297 windows local build fix
win_crash_logger will be fully removed in D520, for now just fixing local relwithdebinfo build
2021-06-24 18:37:22 +03:00
Andrey Kleshchev 9451b50b2b SL-15292 waitForChannel crash #4 2021-06-23 19:48:45 +03:00
Andrey Kleshchev 7cc5b01ded SL-15292 waitForChannel crash #3 2021-06-23 19:19:35 +03:00
Andrey Kleshchev 9241a87b6f SL-15292 waitForChannel crash #2 2021-06-23 18:32:57 +03:00
Andrey Kleshchev c6b1aca74f SL-15406 Removed text below initial login screen screenshots 2021-06-16 21:35:11 +03:00
Callum Prentice d1b52bd9d8 Fix for SL-15381 Import Vivox VAD voice fixes into 'Viewer UI changes' branch 2021-06-10 16:22:59 -07:00
Andrey Kleshchev 79f8c024c3 SL-15363 how_to on older viewers is forced to persist
Older how_to floater is not set to persist in between sessions and gets stuck, ranamed new how_to into guidebook to avoid the issue
2021-06-09 19:48:19 +03:00
Andrey Kleshchev 5b730160f6 SL-15168 A bit of debug logging 2021-06-08 00:51:08 +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
Nat Goodspeed 4623b82238 Increment viewer version to 6.4.20
following promotion of DRTVWR-525
2021-06-07 13:48:49 -04:00
Andrey Lihatskiy 34ef50f3b2 SL-15350 Update images for New User viewer log in page 2021-06-04 23:35:10 +03:00
Andrey Kleshchev 76ab0e2775 SL-15292 waitForChannel crash 2021-06-03 21:32:21 +03:00
Andrey Kleshchev 823f97ac59 SL-15272 Bugsplat crashes at condition wait()
Made sure all waits will be triggered, won't loop back and that in case of http queue it had some time to trigger
2021-06-03 21:31:30 +03:00
Mnikolenko Productengine 7d726d1b4a SL-15319 FIXED Crash in LLFloaterCreateLandmark::onCancelClicked 2021-05-27 02:17:39 +03:00
Euclid Linden 4cb5d10a3f Merged in euclid-15299 (pull request #580)
SL-15299 SL-15313 BUG-230802 Revert BOM fix causing issues with avatar alpha masks.

Approved-by: Andrey Kleshchev
2021-05-26 18:53:28 +00:00
Dave Houlton 7199ce4514 SL-15299 SL-15313 BUG-230802 Revert BOM fix causing issues with avatar alpha masks.
Revert "SL-12069 Issues with bakes-on-mesh and alpha modes"
This reverts commit 5691d302ef.
2021-05-26 10:57:39 -06:00
Andrey Kleshchev 242ae3e073 SL-15285 Restore 'drop item' functionality in right click menu 2021-05-25 21:56:07 +03:00
Andrey Kleshchev 0aba47476f SL-15298 Move Landmark's Edit button 2021-05-25 00:27:32 +03:00
Andrey Lihatskiy 2922c59316 Merge branch 'sl-10297' into DRTVWR-516-maint 2021-05-21 20:31:53 +03:00
Mnikolenko Productengine 646cde231d SL-15268 update the description of the 'VivoxVadSensitivity' debug setting 2021-05-19 12:37:40 +03:00
Andrey Lihatskiy a442f8b451 Revert "Merge branch 'DRTVWR-531' into DRTVWR-516-maint"
This reverts commit 07456abe92, reversing
changes made to 8a33636e8f.
2021-05-13 20:29:01 +03:00
Nat Goodspeed 24501dfa0e SL-10297: Use initializer_list<std::string> vs. <std::string_view>.
This is somewhat more expensive for string literals, but switching to
std::string_view implies more extensive changes, to be considered separately.
2021-05-12 22:35:09 -04:00
Nat Goodspeed a58eea7419 SL-10297: Revert "Need VS switch /std:c++17 to use std::string_view."
This reverts commit 28deadab5b.

Going there implies other changes, will take up on another branch.
2021-05-12 22:30:34 -04:00
Andrey Lihatskiy 9626649f90 Merge branch 'DRTVWR-533' into DRTVWR-516-maint 2021-05-13 00:51:28 +03:00
Nat Goodspeed 28deadab5b SL-10297: Need VS switch /std:c++17 to use std::string_view. 2021-05-12 17:08:15 -04:00
Nat Goodspeed d10badf0d2 SL-10297: #include <string_view> in llsingleton.h 2021-05-12 16:26:53 -04: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
Nat Goodspeed 91c20363ee SL-10297: Get rid of LLError::LLCallStacks::allocateStackBuffer().
Also freeStackBuffer() and all the funky classic-C string management of a big
flat buffer divided into exactly 512 128-byte strings. Define StringVector as
a std::vector<std::string>, and use that instead.

Retain the behavior of clearing the vector if it exceeds 512 entries.

This eliminates the LLError::Log::flush(const std::ostringstream&, char*)
overload as well, with its baffling mix of std::string and classic-C (e.g.
strlen(out.str().c_str()).

If we absolutely MUST use a big memory pool for performance reasons, let's
use StringVector with allocators.
2021-05-12 13:37:24 -04:00
Andrey Kleshchev 3917de54db SL-15245 Multiple guide books open, but cannot close them all
Opening and closing single-instance floaters rapidly and multiple times could result in cleaning instance from floaterreg twice, thus removing new isntance instead of current one
2021-05-12 20:25:04 +03:00
Nat Goodspeed 5b96ee0e10 SL-10297: Eliminate llerror.cpp's Globals::messageStream and bool.
Instead of a single std::ostringstream instance shared by all callers, even
those on different threads, make each of the relevant lllog_test_() and
llcallstacks macros instantiate independent (stack) std::ostringstream
objects. lllog_test_() is called by LL_DEBUGS(), LLINFOS(), LL_WARNS(),
LL_ERRS(), LL_VLOGS() et al.

Eliminate LLError::Log::out(), whose sole function was to arbitrate use of
that shared std::ostringstream. Amusingly, if the lock couldn't be locked or
if messageStreamInUse was set, out() would allocate a new (heap!)
std::ostringstream anyway, which would then have to be freed by flush().

Make both LLError::Log::flush() overloads accept const std::ostringstream&.
Make LL_ENDL pass the local _out instance. This eliminates the need to check
whether the passed std::ostringstream* references the shared instance and
(if so) reset it or (if not) delete it.

Make LLError::LLCallStacks::insert() accept the local _out instance as non-
const std::ostream&, rather than acquiring and returning std::ostringstream*.
Make end() accept the local instance as const std::ostringstream&.
2021-05-12 12:02:57 -04:00
Nat Goodspeed 147c66d67c SL-10297: Simplify implementation of LLSingletonBase::logwarns() etc.
Introduce 'string_params' typedef for std::initialization_list<std::string>,
and make logwarns(), loginfos(), logdebugs() and logerrs() accept const
string_params&.

Eliminate the central log() function in llsingleton.cpp that used LL_VLOGS().
To cache the result of a (moderately expensive) Log::shouldLog() call,
LL_VLOGS() wants its CallSite object to be static -- but of course the
shouldLog() result will differ for different ELevel values, so LL_VLOGS()
instantiates a static array of CallSite instances. It seems silly to funnel
distinct logwarns(), etc., functions through a common log() function only to
have LL_VLOGS() tease apart ELevel values again. Instead, make logwarns()
directly invoke LL_WARNS(), and similarly for the rest.

To reduce boilerplate in these distinct functions, teach std::ostream how to
stream a string_params instance by looping over its elements. Then each
logwarns(), etc., function can simply stream its string_params argument to
LL_WARNS() or whichever.

In particular, eliminate the LLERROR_CRASH macro in logerrs(). The fact that
it invokes LL_ERRS() ensures that its LL_ENDL macro will crash the viewer.
2021-05-12 09:46:49 -04: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
Andrey Kleshchev 87f1d6071e SL-15168 Added 'Title' argument 2021-05-12 00:41:14 +03:00
Andrey Kleshchev 8eede89c0f Revert "SL-15168 Changed format" 2021-05-12 00:41:14 +03:00
Andrey Lihatskiy 07456abe92 Merge branch 'DRTVWR-531' into DRTVWR-516-maint 2021-05-11 21:27:58 +03:00
Andrey Kleshchev a7fada58ac SL-15249 Fix MAC build issue 2021-05-11 17:12:27 +03:00