Commit Graph

46129 Commits (d998bcbfb54bf5d129f6b88136729a2e2a23c19f)

Author SHA1 Message Date
Henri Beauchamp d998bcbfb5 SL-19110 revert LLUUID::combine() to old algorithm to match server code. (#75)
As it happens, the change in the LLUUID::combine() algorithm introduced by one
of my previous commits is causing invalid assets creation (seen with
some clothing items, such as Shape and Universal types); obviously, the server
is using the old algorithm for UUID validation purpose of these assets.

This commit reverts LLUUID::combine() code to use LLMD5.
2023-02-13 19:36:54 +02:00
Maxim Nikolenko 50f9f18427
SL-19194 update slurl handling (#74) 2023-02-10 19:02:42 +02:00
Maxim Nikolenko e87d771df5 SL-19189 FIXED My Outfits system items have circle over them 2023-02-10 02:30:05 +02:00
Andrey Kleshchev f1d247809b SL-19190 Laggy behavior when turning
GetAsyncKeyState is luggy in some conditions and no longer needed due to fix for SL-16845 - all 'up' keys get reset when leaving window
2023-02-09 23:49:23 +02:00
Andrey Kleshchev 6c54c9f8a9 Merge branch 'main' into DRTVWR-577-maint-S
# Conflicts:
#	indra/llcommon/llsdserialize.cpp
#	indra/llcommon/llsdserialize.h
#	indra/newview/llfilepicker.h
#	indra/newview/llfilepicker_mac.h
#	indra/newview/llfilepicker_mac.mm
2023-02-09 22:33:52 +02:00
Andrey Kleshchev 8e03f926c7 SL-18970 Heavy name cache spam
If cap fails viewer can spam hundreds of "get legacy for agent" to logs which freezes it.
2023-02-09 01:06:16 +02:00
Brad Payne (Vir Linden) fee55c8928 SL-19161 - logging of basic translation stats in ViewerStats 2023-02-08 23:13:58 +02:00
Andrey Lihatskiy 1377173dec INTL-370
INTL-370 Translate the word Feed for new Viewer Profiles
2023-02-07 17:44:17 +02:00
Nat Goodspeed 8d21d29bd7 Increment viewer version to 6.6.10
following promotion of DRTVWR-570
2023-02-02 14:33:39 -05:00
Andrey Lihatskiy e9370893f7 Merge branch 'contribute' into DRTVWR-577-maint-S 2023-02-02 21:22:50 +02:00
Andrey Kleshchev a6615b3264 SL-19110 Fix coding policy 2023-01-31 19:35:10 +02:00
Andrey Kleshchev 8518154426 SL-19110 Fix xxhash build link and properly register contribution 2023-01-31 19:17:34 +02:00
Henri Beauchamp 9438ef5f79
SL-19110 Fast hashing classes for use in place of the slow LLMD5, where speed matters. (#64)
This commit adds the HBXX64 and HBXX128 classes for use as a drop-in
replacement for the slow LLMD5 hashing class, where speed matters and
backward compatibility (with standard hashing algorithms) and/or
cryptographic hashing qualities are not required.
It also replaces LLMD5 with HBXX* in a few existing hot (well, ok, just
"warm" for some) paths meeting the above requirements, while paving the way for
future use cases, such as in the DRTVWR-559 and sibling branches where the slow
LLMD5 is used (e.g. to hash materials and vertex buffer cache entries), and
could be use such a (way) faster algorithm with very significant benefits and
no negative impact.

Here is the comment I added in indra/llcommon/hbxx.h:

// HBXXH* classes are to be used where speed matters and cryptographic quality
// is not required (no "one-way" guarantee, though they are likely not worst in
// this respect than MD5 which got busted and is now considered too weak). The
// xxHash code they are built upon is vectorized and about 50 times faster than
// MD5. A 64 bits hash class is also provided for when 128 bits of entropy are
// not needed. The hashes collision rate is similar to MD5's.
// See https://github.com/Cyan4973/xxHash#readme for details.
2023-01-31 18:42:51 +02:00
Andrey Kleshchev 21b5928652 SL-19097 Crash when selecting a model for upload and waiting too long
Should be fixed by SL-18996, but just in case user decides to select a model while viewer closes
2023-01-28 02:02:42 +02:00
Andrey Lihatskiy 71657b66f9 Revert "SL-18581 Don't show the starter avatar toolbar button for NUX"
This reverts commit 4d429b7ea3.
2023-01-27 22:04:11 +02:00
Andrey Kleshchev 27080dc7f7 SL-18996 make MacOS picker dialogs modeless to avoid disconnects #2 2023-01-27 17:25:18 +02:00
Andrey Kleshchev 2398a28af6 SL-18996 [WIP] MacOS make picker dialogs non-modal to avoid disconnects #1 2023-01-27 17:25:18 +02:00
Andrey Lihatskiy 11b9b6f5f8 INTL-477 Translation update for Maint S 2023-01-24 15:01:53 +02:00
Andrey Kleshchev 1109fca197 SL-19025 Fix for object's context menu
Inspect and copy doesn't work for face or child selection. Disable them in such cases.
2023-01-24 14:17:08 +02:00
Andrey Kleshchev a94f907a17 SL-18989 Saved notifications some times stops displaying information 2023-01-21 00:04:11 +02:00
Andrey Kleshchev e3a90ba4c1 SL-3033 flv files prompt download instead of playing
Viewer doesn't support web downloads, it should be safe to assume stream and play it
2023-01-18 22:00:01 +02:00
Andrey Lihatskiy 8ff51bdeb2 Merge branch 'contribute' into DRTVWR-577-maint-S 2023-01-16 23:17:19 +02:00
Andrey Lihatskiy 8ec8732ec9 SL-18893 OSX buildfix 2023-01-16 23:16:43 +02:00
Andrey Kleshchev 20b16ddf05 MacOS Build fix 2023-01-16 20:43:12 +02:00
Andrey Kleshchev a1931d8cc4 SL-18735 Using "Find original" in main inventory tab breaks inventory view
Fixes folders being invidible (missing arrange)
Fixes sroll to target not working reliably
2023-01-16 20:42:20 +02:00
Andrey Kleshchev 484e3b6213 Merge branch 'xcode-14.1' into DRTVWR-577-maint-S
D577 should have picked part of the changes from contribute branch, picking up the rest for the sake of branch specific crash fixes
2023-01-16 20:07:02 +02:00
Andrey Kleshchev 77a42cb8d6 Merge branch 'contribute' into DRTVWR-577-maint-S 2023-01-16 20:04:57 +02:00
Pantera Północy b34d209abc
SL-18937 Add missing panel_* files in Polish translation (#50) 2023-01-16 20:03:58 +02:00
Andrey Kleshchev de77dc3ed3 MacOS Build fix 2023-01-16 19:52:35 +02:00
Andrey Lihatskiy bea930071f Merge branch 'contribute' into DRTVWR-577-maint-S 2023-01-16 07:05:01 +02:00
Andrey Kleshchev b3201e75b1 SL-18945 Links have no 'cut' option
Links can be drag and dropped so they should be movable via 'cut' as well
2023-01-11 16:03:33 +02:00
Andrey Kleshchev 007939f0a7 SL-18939 Cannot copy inventory folders with copiable links 2023-01-11 08:30:32 +02:00
Andrey Kleshchev 5d6371f568 SL-18937 Update contributions 2023-01-10 20:05:01 +02:00
akleshchev 9dcf206691
SL-18937 Merge pull request #45 from PanteraPolnocy/contribute
Translate missing control_*, floater_* menu_* and few panel_* files in Polish directory; Fix localizability in various English XMLs
2023-01-10 19:47:53 +02:00
akleshchev f3cd329b58
SL-18911 My Land Holdings floater crashes viewer on the Xcode/+Monterey branches (#47)
Revert part of "DRTVWR-575: Address review comments on Xcode 14.1 type tweaks."
Crash was reproduced when assigning areastr to llsd, but likely present in other cases of assigning ui strings to llsd (instead of going for lluistring's result directly copy constructor was engaged and either copy or original crashed due to invalid pointers, copy shouldn't have been created).
2023-01-10 19:38:44 +02:00
Fawrsk 7419037ef6
SL-18893 Fixes for pull requests #38, #41, and #42 (#46)
Eliminate unnecessary copies, and remove uses of auto
2023-01-10 11:43:27 +02:00
akleshchev 9c250f1a9e
SL-18893 Cleanup for loops in llcommon to use C++11 range based for loops (#44)
* Cleanup for loops in llcommon to use C++11 range based for loops
* Eliminate needless copies
2023-01-10 11:38:34 +02:00
Fawrsk 8767e6995b Eliminate needless copies 2023-01-09 19:19:12 -04:00
PanteraPolnocy 77444ca356 Translate missing control_*, floater_* menu_* and few panel_* files in Polish directory; Fix localizability in various English XMLs 2023-01-07 20:36:50 +01:00
Andrey Kleshchev 30678472ee Revert "SL-18911 [MAC] My Land Holdings floater crashes when not empty"
This reverts commit d6f5e5bc94.
2023-01-07 18:59:39 +02:00
Fawrsk 9e743c99fb Cleanup for loops in llcommon to use C++11 range based for loops 2023-01-07 00:38:12 -04:00
Andrey Kleshchev d6f5e5bc94 SL-18911 [MAC] My Land Holdings floater crashes when not empty 2023-01-07 01:10:22 +02:00
Andrey Kleshchev 73933fe778 SL-18894 The change of 'modify rights' is not recorded in IM history if the user is in DND mode
Revert of commit for SL-15401. Messages are supposed to handle 'mute' on their own.
2023-01-05 18:21:53 +02:00
Fawrsk d0f115ae09
SL-18893 Cleanup for loops in llcharacter to use C++11 range based for loops (#42) 2023-01-05 13:42:27 +02:00
Fawrsk bdfb47cc6b
SL-18893 Clean up for loops in llaudio to use C++11 range based for loops (#41) 2023-01-05 03:06:12 +02:00
Andrey Kleshchev 3fd86c2f23 SL-18871 Debug setting's description is not scrollable 2023-01-05 01:34:03 +02:00
Nat Goodspeed 99c040ea99 DRTVWR-575: Fix possible bad indexing in LLSD::operator[](size_t).
One could argue that passing a negative index to an LLSD array should do
something other than shrug and reference element [0], but as that's legacy
behavior, it seems all too likely that the viewer sometimes relies on it.

This specific problem arises if the index passed to operator[]() is negative
-- either with the previous Integer parameter or with size_t (which of course
reinterprets the negative index as hugely positive). The non-const
ImplArray::ref() overload checks parameter 'i' and, if it appears negative,
sets internal 'index' to 0.

But in the next stanza, if (index >= existing size()), it calls resize() to
scale the internal array up to one more than the requested index. The trouble
is that it passed resize(i + 1), not the adjusted resize(index + 1).

With a requested index of exactly -1, that would pass resize(0), which would
result in the ensuing array[0] reference being invalid.

With a requested index less than -1, that would pass resize(hugely positive)
-- since, whether operator[]() accepts signed LLSD::Integer or size_t,
resize() accepts std::vector::size_type. Given that the footprint of an LLSD
array element is at least a pointer, the number of bytes required for
resize(hugely positive) is likely to exceed available heap storage.

Passing the adjusted resize(index + 1) should defend against that case.
2023-01-04 17:18:31 -05:00
Andrey Kleshchev 64a42aceba SL-18904 Remove unused translation files 2023-01-04 23:52:41 +02:00
akleshchev 5bc16b94cc
SL-18904 Merge pull request #40 from PanteraPolnocy
A small batch of changes in Polish translation subdirectory
2023-01-04 23:36:40 +02:00
Andrey Kleshchev 5ea7cec092 SL-18893 Update list of contributors 2023-01-04 22:21:20 +02:00