Commit Graph

46565 Commits (4bef4f94c0ec89ef7b14bc267f52ba00a6dcdc2b)

Author SHA1 Message Date
Nat Goodspeed 4093d5b1eb DRTVWR-575: Use llsdutil.h functions for LLFloaterLandHoldings LLSD
LLFloaterLandHoldings::postBuild() was constructing an LLSD structure by
assigning each map entry and array element one at a time. Chorazinallen
identified a crash bug possibly caused by destroying that LLSD structure.
Diagnostically try building it using nested llsd::map() and llsd::array()
calls instead to see if that improves matters.
2023-01-04 15:13:02 -05:00
Maxim Nikolenko 61a08406c7 SL-18892 FIXED Mac build fails locally 2023-01-04 20:27:12 +02:00
Nat Goodspeed aa112ef17f DRTVWR-575: Fix bug in macOS micro_sleep().
The compiler was deducing an unsigned type for the difference (U64 desired
microseconds - half KERNEL_SLEEP_INTERVAL_US). When the desired sleep was less
than that constant, the difference went hugely positive, resulting in a very
long snooze.

Amusingly, forcing that U64 result into an S32 num_sleep_intervals worked only
*because* of integer truncation: the high-order bits were discarded, resulting
in a negative result as intended.

Ensuring that both integer operands are signed at the outset, though, produces
a more formally correct result.
2023-01-04 12:04:56 -05:00
Nat Goodspeed bb718155bd DRTVWR-575: Replace some LLSDArray() usage with llsd::array().
It seems newer compilers have a different interpretation of exactly when to
engage LLSDArray's copy constructor. In particular, this assignment:

some_LLSD_map[key] = LLSDArray(...)(...)...;

used to convert the LLSDArray object directly to LLSD; now it first calls the
custom copy constructor, which embeds the intended array within an outer array
before assigning it into the containing map.

The newer llsd::array() function avoids that problem because what it returns
is already an LLSD object.

Taking inventory of LLSDArray assignments of that form turned up a number of
workarounds like LLSD(LLSDArray(...)). Replacing those with llsd::array() is
both simpler and more readable.

Tip of the hat to Chorazinallen for surfacing this issue!
2023-01-03 18:06:45 -05:00
PanteraPolnocy bfa8239361 Polish translation: Leftovers cleanup (files not present in /en/) 2023-01-03 23:21:24 +01:00
PanteraPolnocy 030be1d14f Widgets cleanup in Polish translation (up to 6.6.9), fix translatability for density_ctrl.xml file 2023-01-03 23:03:17 +01:00
Fawrsk 74a9280c69
SL-18893 Clean up for loops in llappearance to use C++11 range based for loops (#38) 2023-01-03 23:08:15 +02:00
Pantera Północy 43496fe04e
SL-18891 Remove duplicate entry in settings file 2023-01-03 21:49:23 +02:00
Andrey Kleshchev 9ef48676d4 SL-18874 Rigged mesh upload crash when using Bounding Box physics 2023-01-03 14:36:11 +02:00
Andrey Kleshchev 6f522084ed SL-18426 At log in only a part friends reported to chat as online
Server sends updates in bulk now, so notify per agent instead of per update
2022-12-20 02:03:03 +02:00
Maxim Nikolenko 200e185dff SL-18857 FIXED Editing attachment before Shape can stop av turning for user 2022-12-16 17:27:38 +02:00
Andrey Kleshchev 07baa83ef2 SL-18384 Fix NSException for keyboard handling
Affects accent keys for diacritical marks
2022-12-16 16:31:42 +02:00
Andrey Kleshchev 796d97d190 SL-18384 Fix NSException for keyboard handling
Affects accent keys for diacritical marks
2022-12-14 20:55:22 +02:00
Maxim Nikolenko efb96d8c6e SL-18786 Display updater on the top of other windows 2022-12-14 15:36:24 +02:00
Andrey Kleshchev 0ffe9ff0ae SL-15175 Updates for TP states while the viewer is minimized 2022-12-13 21:25:16 +02:00
Maxim Nikolenko da373e66cb mac build fix - remove unused variables 2022-12-13 18:10:26 +02:00
Maxim Nikolenko a783d6c02e retrigger build 2022-12-13 15:36:47 +02:00
Mnikolenko Productengine 553a98723b Merge branch 'main' into DRTVWR-539
# Conflicts:
#	doc/contributions.txt
#	indra/newview/llappviewer.cpp
#	indra/newview/skins/default/colors.xml
2022-12-13 08:05:03 +02:00
akleshchev e5bd3fc5fe
SL-15175 Merge pull request #26 from sldevel/contribute
Fix failures to update the TP states while the viewer is minimized.
2022-12-13 04:20:42 +02:00
Nat Goodspeed fe4f0fc728 DRTVWR-565: Merge branch 'main' into contribute 2022-12-12 15:27:38 -05:00
Nat Goodspeed 6a97e13115 DRTVWR-565: Merge branch 'master' into contribute 2022-12-12 15:24:29 -05:00
Callum Prentice f7838ca17c Merge branch 'main' into DRTVWR-568 2022-12-12 11:13:10 -08:00
Andrey Lihatskiy f836194516 Merge branch 'main' into DRTVWR-570-maint-Q
# Conflicts:
#	doc/contributions.txt
#	indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
#	indra/newview/llfloater360capture.cpp
2022-12-12 20:53:11 +02:00
Nat Goodspeed a0c3d69c62 Increment viewer version to 6.6.9
following promotion of DRTVWR-565
2022-12-12 13:41:50 -05:00
Nat Goodspeed 12f66fda13 DRTVWR-565: Merge branch 'origin/contribute' into DRTVWR-565 2022-12-12 13:27:57 -05:00
Andrey Lihatskiy b4dd4271a1 SL-16874 Added tool tips to buttons displayed by llDialog() 2022-12-12 20:22:50 +02:00
Andrey Kleshchev 2b7ba3f904 Merge branch 'xcode-14.1' into contribute 2022-12-12 17:44:47 +02:00
Andrey Kleshchev 80e3950781 SL-8839 Make About Land resizable 2022-12-12 17:21:55 +02:00
Maxim Nikolenko ab8dc07630 SL-18826 limit teleport command usage 2022-12-12 13:13:48 +02:00
akleshchev 5bfe93b4ea
SL-18159 Windows' mouse from keyboard emulation causes pointer to jump around the screen.
Emulated mouse was trigering "not a valid zoomable object" case and jumping to garbage mMouseDownX/Y due to 'up' event being too early.
2022-12-11 19:08:48 +02:00
Andrey Kleshchev f01f39afd1 SL-8294 Fixed Incorrect coordinates in address bar
Example: Stepping over 183/255/22 will show position 183/1/22 of the same region
2022-12-09 20:56:10 +02:00
Andrey Lihatskiy 3387fb4897 Merge branch 'SL-18824' into DRTVWR-573-maint-R 2022-12-09 17:40:08 +02:00
Brad Payne (Vir Linden) 4a554bfded SL-18824 - added hardare_concurrency to system stats 2022-12-09 15:02:26 +00:00
Maxim Nikolenko 94cc914947
SL-18823 FIXED Crash when using 'Create folder from selected' 2022-12-09 14:47:26 +02:00
Mnikolenko Productengine 9f7c22bbe5 SL-18810 FIXED "Find Original" doesn't work if Item profile was previously selected 2022-12-09 11:12:20 +02:00
Andrey Kleshchev b79c4e47a8 SL-18776 Fix handling for an empty avatar list 2022-12-09 09:09:54 +02:00
nat-goodspeed 95f682f127
Merge pull request #28 from secondlife/sl-14399
SL-14399: Ditch overflow queue LLViewerAssetStorage::mCoroWaitList.
2022-12-08 13:33:29 -05:00
Maxim Nikolenko 8496ae48dd
SL-18807 FIXED Viewer crashes when trying to purge item using 'Pick: Select settings' floater 2022-12-08 15:07:10 +02:00
Andrey Kleshchev f064cba436 SL-14399 Remove obsolete code
mCoroWaitList covers all assets not just landmarks
2022-12-07 20:21:25 +02:00
Andrey Kleshchev 823dbc8805 SL-18801 Crash at LLPluginProcessParent::pollTick()
Looks like pollTick tried to call an already dead process
2022-12-07 19:33:47 +02:00
Nat Goodspeed 769bf46a3f SL-14399: Ditch overflow queue LLViewerAssetStorage::mCoroWaitList.
mCoroWaitList was introduced to prevent an assertion failure crash:
LLCoprocedureManager never expects to fill LLCoprocedurePool::mPendingCoprocs
queue. The queue limit was arbitrarily set to 4096 some years ago, but in
practice LLViewerAssetStorage can post way more requests than that.

LLViewerAssetStorage checked whether the target LLCoprocedureManager pool's
queue looked close to full, and if so posted the pending request to its
mCoroWaitList instead. But then it had to override the base LLAssetStorage
method checkForTimeouts() to continually check whether pending tasks could be
moved from mCoroWaitList to LLCoprocedureManager.

A simpler solution is to enlarge LLCorpocedureManager::DEFAULT_QUEUE_SIZE, the
upper limit on mPendingCoprocs. Since mCoroWaitList was an unlimited queue,
making DEFAULT_QUEUE_SIZE "very large" does not increase the risk of runaway
memory consumption.
2022-12-07 09:50:02 -05:00
Mnikolenko Productengine 71926db3a5 SL-18800 fix crash in removeMutedAVsLights 2022-12-07 12:55:55 +02:00
Andrey Kleshchev 3d6c4036a6 SL-18799 Crash at requestPostCapability 2022-12-07 08:55:45 +02:00
Andrey Kleshchev 120d9c16fa SL-18776 Avatar picker search not updated on http error 2022-12-07 03:45:00 +02:00
Henri Beauchamp 0dd287df28 Fix failures to update the TP states while the viewer is minimized.
This is a fix for: https://jira.secondlife.com/browse/BUG-230616
2022-12-07 00:01:34 +01:00
Nat Goodspeed 7d9249d180 DRTVWR-575: Try to avoid comparison warnings in llclamp() 2022-12-06 17:16:56 -05:00
Nat Goodspeed 9a7e638b67 DRTVWR-575: Defend unescape_string() against empty line.
The unsigned index arithmetic was problematic in that case.
2022-12-06 15:46:05 -05:00
Nat Goodspeed db1d757aeb DRTVWR-575: Update a few more int lengths in llsdserialize.{h,cpp}. 2022-12-06 14:40:11 -05:00
Nat Goodspeed 73aced620f DRTVWR-575: Use llssize (signed size_t) for max_bytes parameters.
Since LLSDSerialize::SIZE_UNLIMITED is negative, passing that through unsigned
size_t parameters could result in peculiar behavior.
2022-12-06 13:59:06 -05:00
Nat Goodspeed 8f6ffd489d DRTVWR-575: Introduce LLKeyBind::endNonEmpty()
and use it to replace dubious loops in asLLSD() and trimEmpty().
2022-12-06 13:04:35 -05:00