summaryrefslogtreecommitdiff
path: root/indra
AgeCommit message (Collapse)Author
2024-08-21Improve accuracy of texture memory tracking (#2371)Rye Mutt
* Fix alloc_tex_image to account for more missing texture memory Change alloc_tex_image calls to pass internal format to properly account for used image type * Fix scaleDown passing primary format in place of internal format to glTexImage2D * Make texture debug view and texture bias calculation consistent and remove double accounting for render target textures
2024-08-21Improve diagnostic output for Lua atexit() functions.Nat Goodspeed
2024-08-21Suppress ~LuaStackDelta() verification during stack unwinding.Nat Goodspeed
Otherwise, an exception raised in the block containing a LuaStackDelta instance -- that might be caught -- would result in an LL_ERRS() crash. We can't expect a block exited via exception to keep its contract wrt the Lua data stack.
2024-08-20Fix a couple more set_interrupts_counter() calls.Nat Goodspeed
2024-08-20Defend timers.Timer(iterate=True) against long callbacks.Nat Goodspeed
Specifically, defend against a callback that runs so long it suspends at a point after the next timer tick.
2024-08-20Fix for #2237: intermittent Lua data stack overflow.Nat Goodspeed
Use a static unordered_map to allow a function receiving (lua_State* L) to look up the LuaState instance managing that lua_State. We've thought about this from time to time already. LuaState's constructor creates the map entry; its destructor removes it; the new static getParent(lua_State* L) method performs the lookup. Migrate lluau::set_interrupts_counter() and check_interrupts_counter() into LuaState member functions. Add a new mInterrupts counter for them. Importantly, LuaState::check_interrupts_counter(), which is indirectly called by a lua_callbacks().interrupt function, no longer performs any Lua stack operations. Empirically, it seems the Lua engine is capable of interrupting itself at a moment when re-entry confuses it. Change previous lluau::set_interrupts_counter(L, 0) calls to LuaState::getParent(L).set_interrupts_counter(0). Also add LuaStackDelta class, and a lua_checkdelta() helper macro, to verify that the Lua data stack depth on exit from a block differs from the depth on entry by exactly the expected amount. Sprinkle lua_checkdelta() macros in likely places.
2024-08-20Fix TempSet to use type VAR to store mOldValue.Nat Goodspeed
In fact we set mOldValue from mVar, and restore mVar from mOldValue, so the VAR type makes the most sense. The previous way, you'd get actual errors if you tried to use TempSet(pointervar, nullptr): that declared mOldValue to be nullptr_t, which you can't initialize from mVar.
2024-08-20Merge branch 'release/2024.06-atlasaurus' of github.com:secondlife/viewer ↵Roxie Linden
into roxie/webrtc-fix-mac-p2p-hang
2024-08-20removed unnecessary commentRoxie Linden
2024-08-20Add LL::scope_exitNat Goodspeed
2024-08-20Fix hang when incoming p2p or group calls throw up dialog.Roxie Linden
There were changes in atlasaurus that resulted in a hang for incoming p2p and group calls which throw up dialogs. The changes revolved around mutex, coroutines, job queues, and such. The fix was to do any processing that may result in callbacks from the webrtc code in a queued job instead of a coroutine.
2024-08-20#2345 Fix for mirrors not being disabled from previous viewer versions.Jonathan "Geenz" Goodman
2024-08-20viewer#2363 Region Day Offset error with Time of DayAndrey Kleshchev
When we have a 23h day cycle and 23h offset, doing a 24h flip will result in -1h. Flip by day length instead so that 23h-23h will result in 0h. This has a negative side effect of values not being saved exactly as users specified them, so a -1h offset will turn to 4h on next load with a 5h long day. But it is nature of a day to 'loop', so I decided there is no point to translate -1 into 14 or something like that.
2024-08-20Add collectDescendentsIf api for LuaMnikolenko Productengine
2024-08-20Increment viewer version in preparation for 2024.08-d RCBrad Linden
2024-08-20Merge remote-tracking branch 'origin/release/2024.06-atlasaurus' into developBrad Linden
# Conflicts: # autobuild.xml # indra/newview/llvoicewebrtc.cpp
2024-08-20Clean up boost includes and remove compiler warning pragma for unreachable ↵Ansariel Hiller
code in PCH (#2361)
2024-08-20viewer#2338 Don't allow pasting into library from My EnvironmentsAndrey Kleshchev
2024-08-20Trim trailing blank line.Nat Goodspeed
2024-08-20#2315 Ensure textures are deleted when they are no longer referenced. (#2343)Dave Parks
* #2315 WIP -- Clean up deletion rules in texture list. Incidental decruft. * Touch up assertions. * Move mLastReferencedTimer to LLViewerMediaTexture since it's no longer used by LLViewerTexture
2024-08-20#2354 Enable Tracy on test builds (#2357)Dave Parks
* #2354 Enable Tracy on test builds * Only enable Tracy by default on windows
2024-08-20Follow up for 4fa41c5 breaking inbox search/hiding (#2356)Rye Mutt
2024-08-20SL-15061 Crash at LLConversationItemSession::clearAndDeparentModels #3Andrey Kleshchev
2024-08-20Fix a bunch of XUI errors (#2347)Ansariel Hiller
* Fix a bunch of XUI errors * Change TRUE to true
2024-08-20Remove orphaned LLAllocator (#2348)Ansariel Hiller
2024-08-19#2345 Disable mirrors from the feature table regardless of quality level. ↵Jonathan "Geenz" Goodman
(#2352)
2024-08-19#2345 Disable mirrors from the feature table regardless of quality level. ↵Jonathan "Geenz" Goodman
(#2352)
2024-08-19Merge pull request #2329 from RyeMutt/probe-fixesAndrey Lihatskiy
Various fixes to probe memory usage
2024-08-19viewer#2342 Return AvatarBakedTextureUploadTimeoutAndrey Kleshchev
Partial rollback of d00b6e4 QA uses AvatarBakedTextureUploadTimeout and requested restoration.
2024-08-19Merge pull request #2328 from secondlife/roxie/webrtc-airpod-fixesRoxanne Skelly
2024-08-19#2289 BugSplat Crash #1496385: ↵Alexander Gavriliuk
SecondLifeViewer!LLFocusableElement::~LLFocusableElement(79)
2024-08-19viewer#2310 Highlight image size when over limit for profile feedAndrey Kleshchev
2024-08-19viewer#2311 When email or profile image upload fails show a more fitting reasonAndrey Kleshchev
2024-08-19Merge pull request #2324 from secondlife/roxie/webrtc-log-devicesRoxanne Skelly
[WebRTC] Log WebRTC devices on webrtc initialization.
2024-08-19Update indra/newview/pipeline.cpp Andrey Lihatskiy
Fix build error
2024-08-19Merge pull request #2334 from RyeMutt/ui-stutter-fixesAndrey Lihatskiy
Fix various findChild calls causing frame drops and ui stutter
2024-08-19Clean up excessive dynamic casts in LLAccordionCtrl (#2333)Rye Mutt
2024-08-19Refactor LLFileSystem for and fix an old issue in LLFile (#2332)Ansariel Hiller
2024-08-18Merge branch 'roxie/webrtc-airpod-fixes' of github.com:secondlife/viewer ↵Roxie Linden
into roxie/webrtc-airpod-fixes
2024-08-18Use the release build of webrtc to avoid pedantic asserts which are handled ↵Roxie Linden
properly anyway.
2024-08-19Update indra/newview/llfloatersidepanelcontainer.h Andrey Lihatskiy
Fix tab indentation
2024-08-19Update indra/newview/llfloatertools.cpp Andrey Lihatskiy
Remove trailing whitespace to pass pre-commit check
2024-08-19viewer#2296 Don't show 'are you sure you want to leave the call' when ↵Andrey Kleshchev
shutting down
2024-08-18Fix find child during search/draw in debug settings floaterRye Mutt
2024-08-18Fix findChild during draw in the tools floaterRye Mutt
2024-08-18Fix findChild during draw in script editorRye Mutt
2024-08-18Fix findChild during draw in texture previewsRye Mutt
2024-08-18Fix findChild during draw in notecard previewsRye Mutt
2024-08-18Fix findChild frame drops when switching inventory panelsRye Mutt
2024-08-18Fix findChild stutter when changing people panel tabsRye Mutt