summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
AgeCommit message (Collapse)Author
2026-02-24Merge branch 'release/2026.01' into developJonathan "Geenz" Goodman
2026-02-24#5084 Adjust watchdog for bettet tracking of logoutAndrey Kleshchev
2026-02-13#5084 Adjust Window's watchdog to only run after loginAndrey Kleshchev
like mainloop does
2026-01-21Disable disk cache LRU purge on main thread during startup by default and ↵Rye
instead rely on background thread purge
2026-01-21Introduced Tracy instrumentation to app initializationRye
2026-01-19#5084 Adjust watchdog to avoid false-positivesAndrey Kleshchev
And increase allowed time to be more in tune with disconnects.
2026-01-12#5241 Crash at onIdleUpdateFavoritesMaxim Nikolenko
2026-01-09Merge release/2026.01 into developAndrey Kleshchev
2026-01-07#5217 Treat issues with control variables smarter and show a proper warningAndrey Kleshchev
2025-12-20#5084 Cover window's thread with watchdogAndrey Kleshchev
2025-12-18#5084 Improve watchdog's feedbackAndrey Kleshchev
2025-12-12#5148 Crash cleaning LLVOCacheAndrey Kleshchev
2025-12-11Revert #4899 "Add more functionality to LLFile and cleanup LLAPRFile"Andrey Kleshchev
Interferes with linux work, will be moved to a different branch and applied separately.
2025-12-10Refactoring of LLFile class to support additional methodsFrederick Martian
- LLFile with its own class method interface to access files for read and write - Remove rudimentary LLUniqueFile class as LLFile supports now all of that and more - Implement most of the filename based functions using std::filesystem functions - Replace LLFile::rmdir() with LLFile::remove() since this function now supports deleting files and directories on all platforms.
2025-12-10Add a new static function LLFile::size() to determine the size of a file_name.Frederick Martian
Replace LLAPRFile::remove(), LLAPRFile::size() and LLAPRFile::isExist() with according functions from LLFile and retire these LLAPRFile methods and the never used LLAPRFile::rename(), LLAPRFile::makeDir() and LLAPRFile::removeDir() functions. Also clean up remarks about the threading safety of the APRCachePool, which is not used in these locations anymore.
2025-12-02#5084 Better labeling of uncaught events, freezes, crashesAndrey Kleshchev
At least while watchdog is enabled it's more fair to label these as unknowns
2025-12-02#5084 Ressurect WatchdogAndrey Kleshchev
2025-12-01#5078 Remove dead experimental atmospherics codeRye
Remove dead experimental atmospherics code left over from EEP development
2025-12-01#5078 Replace boost::function with std::functionRye
* Replace boost::function usage with std::function for easier debugging and reduced compiler warnings * Remove a few remaining instances of boost::noncopyable that were missed in tests Signed-off-by: Rye <rye@alchemyviewer.org>
2025-11-18#4939 Bugsplat often confuses log files on mac, try to make it more reliableAndrey Kleshchev
2025-11-18#4939 Bugsplat updateAndrey Kleshchev
to version 1.2.6
2025-11-17Fix the cache from being cleared every launch if NewCacheLocation is invalidHecklezz
Signed-off-by: Hecklezz <tj8@live.com.au>
2025-10-21Remove a trailing space and a missed LLFile::remove() call right before the ↵RolfKal
LLFile::rename()
2025-10-01#4768 Crash at retransmitUnackedPacketsAndrey Kleshchev
For some reason there are no logs for these crashes, but lack of connection data indicates that viewer was disconnected prior to crash.
2025-09-29Merge branch 'release/2025.07' into developBennett Goble
2025-09-24#4733 When moving the cache, the old cef_cache should be removedMaxim Nikolenko
2025-09-19#4570 Make 'About' floater use real bandwidthAndrey Kleshchev
2025-09-18Merge remote-tracking branch 'origin/release/2025.07' into geenz/2025.07-developJonathan "Geenz" Goodman
2025-09-17#4432 Change graphics quality via a debug settingMaxim Nikolenko
2025-09-16#4651 Fix marker presence checkAndrey Kleshchev
2025-09-15#4651 Try distinguishing freezes from crashesAndrey Kleshchev
2025-09-12#4651 Handle window's sessions terminationAndrey Kleshchev
2025-09-10Improvements found in reviewing mac_arm branch #4629Brad Linden
2025-08-27Merge branch 'callum/viewer-cef-2025-08' into rye/infinitemacRye
2025-08-22Merge branch 'develop' into callum/viewer-cef-2025-08Callum Prentice
2025-08-22Remove dead code for macos versions 10.6 and olderRye
2025-08-21#4570 Attemp to send logout message when lost networkAndrey Kleshchev
To not leave a ghost behind and for faster reconnect
2025-08-20Merge branch 'develop' of github.com:secondlife/viewer into rye/infinitemacRye
2025-08-14Merge 2025.06 into developAndrey Kleshchev
Merge 2025.06 into develop
2025-08-08Discord without auth & "Hidden Region" instead of blank (#4496)Erik Kundiman
* Rich Presence w/o requiring access to friends list Thank you Signal Linden for the pointer from https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#af0a85e30f2b3d8a0b502fd23744ee58e "Note: On Desktop, rich presence can be set before calling Client::Connect, but it will be cleared if the Client connects. When Client is not connected, this sets the rich presence in the current user's Discord client when available." This lead me to setting the Application ID here https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1Client.html#ad452335c06b28be0406dab824acccc49 in place of setting it on https://discord.com/developers/docs/social-sdk/classdiscordpp_1_1AuthorizationArgs.html which would lead Authorize, GetToken, UpdateToken, Connect, and so on. This means we don't even need the SecAPI saveCredential, loadCredential and deleteCredential parts now. * Discord integration is enabled by default per spec now that we don't need the user to authorise Discord SDK to have any access to the user's friends list, etc. (which are Discord Relationships related, and not needed just for Rich Presence). * "Hidden Region" if Discord location sharing is off instead of blank. The coords are hidden too, but the Party numbers are still shown, for consistency with TPVs' implementations. * Remove toggleDiscordIntegration declaration The definition had already been removed, I had forgotten to remove this one.
2025-08-07First part of work for #4498. This change forces each CEF instance to have ↵Callum Prentice
it's own cache/cookie folder underneath the parent cef_cache folder. The whole cef_cache folder structure is purged at startup (before the parent being created at the first media instance creation)
2025-08-06Merge branch develop into 2025.06Andrey Kleshchev
# Conflicts: # indra/newview/llvoavatar.cpp
2025-08-06Merge release/2025.05 into developAndrey Kleshchev
2025-07-31Rich Presence support using Discord Social SDK (#4457)Erik Kundiman
* Rich Presence support using Discord Social SDK Download DiscordSocialSdk-1.4.9649.zip from https://discord.com/developers/applications/1394782217405862001/social-sdk/downloads Add -DUSE_DISCORD:BOOL=ON to your cmake line. The Discord app needs to be set to be a public client in the OAuth2 tab. All Discord-related code are contained within one file, llstartup.cpp, and other classes access it through some opaque layer, static functions, otherwise we'd get these "duplicate symbol" linking errors. * Move Discord-related code to llappviewer.cpp The doFrame is the one called over and over again, so running the Discord callbacks from there shouldn't have one extra function overhead, while running the Discord initialisation is only once so it's much more okay to have the extra function overhead there. * panel_preferences_privacy tabs Add tab and checkboxes for discord social SDK integration options to panel_preferences_privacy.xml * Shorten Discord-related local variable names * Connect to Discord now through privacy tab Now the access token is saved the way passwords are saved, but without a username, so we can have some persistence without having to implement an OAuth2 backend server cause we would have to store those tokens there anyway still, and it's just simpler to not go that way. Discord Social SDK doesn't have a helper for sending code to a custom server anyway, that we would have to have some asynchronous HTTP requestor ready. Show location check button gets enabled only when Discord integration is enabled, though it's not functioning yet. * Location for Discord Rich Presence Activity State I was going to use LLAgentUI::buildLocationString but there's no location format that shows only region and coords without having to have the parcel name empty, so I copied buildLocationString implementation in the case of LOCATION_FORMAT_NO_MATURITY but when the parcel name is empty. I had to make updateDiscordActivity check agent's ID and the existence of agent avatar pointer first before trying to set Activity Details or State, cause I like the "Show location" button be checkable not only after online when both the ID & pointer will have existed. I think this way is simpler than programmatically enabling the "Show location" button after the user is logged in. I put a trigger to Activity update somewhere after the user is logged in for now, not yet after a TP. The elapsed time gets reset whenever Activity is updated for now, but I'll try to make elapsed time extended instead. No Party for now, because I couldn't find a way to make a Party shown without showing its CurrentSize (I could still get away not showing its MaxSize by setting it to 0), so the State (location) is shown above the elapsed time, not on the right of it. I'll try to figure out to get some representative numbers for its CurrentSize & MaxSize next. Also no privacy on hiding the username for now, until the UI is ready. * Update Rich Presence location on region change I had to find a spot in source code where it doesn't cause a crash (it did in LLAgent::setRegion), but I'm not removing the one in llstartup.cpp because on login, the one in llviewermessage.cpp gets only the placeholder coords (10, 10, 10). * Show display name too on Discord Rich Presence Avatar name cache can be used right away upon login now after I moved the update call to the end of PRECACHE section in llstartup. * Show Discord Rich Presence Activity Party By setting CurrentSize to the number of people within chat radius, and MaxSize to the number of people within near range. * Call updateDiscordActivity too in Discord init so when the user enables the integration after being logged in, the init can show the name and location right away. * Discord Rich Presence: Hide name & connect to llappviewer.cpp Add option to show/hide avatar name in privacy panel & connect rich presense directly to llappviewer.cpp * Discord time elapsed not reset on region change Time elapses right after viewer launch even before login. Plus parameter name change in header to make it the same as in implementation. * Cache bool setting retrievals in updateDiscordActivity As suggested by Andrey Kleschev. getBOOL and getF32 are expensive, so using `static LLCachedControl<>` is the way to do it in llappviewer.cpp. * Check Discord creds existence before getting token as suggested by Andrey Kleshchev, anticipating external factors such as user moving settings from another PC. * Tracy visibility for looped Discord function calls As suggested by Andrey Kleshchev. They likely can get pricey so they need to be visible in the profiler. * Discord-related error handling/logging plus delay saving Discord credentials to only after the access token is successfully updated on Discord, and try to disconnect from Discord when the integration gets disabled regardless whether there are credentials to delete or not and whether there's an access token to revoke or not. * Use getAvatars already called for Discord Party numbers so we don't have to make any extra getAvatars calls just for this, as it's pricy in crowds, and we'll just be piggybacking `updateSpeakerList` and `updateNearbyList`. * Assemble Discord Activity Details only once by saving it to a static global string for reuse. * Remove updateDiscordActivity call in startup loop The State field (region & coords) is updated well enough without it now. * Rename handleDiscordSocial to toggleDiscordIntegration * Update Discord Activity only when integration is enabled No need to check setting for the status change callback one, because getting there would need to be connected to Discord first, which in turn needs the integration to be enabled first. --------- Co-authored-by: Secret Foxtail <remmy@megapahit.net>
2025-07-24#3851 Increase cache sizeAndrey Kleshchev
Increases default to 8GB and maximum to 32GB. Viewer now supports 2K textures which require more space, so altered disk cache vs textures space a little. Made spinner a bit wider to properly fit whole cache string.
2025-07-19#4320 MacOS crash handlingAndrey Kleshchev
2025-07-16#4337 Full Screen debug setting on MacOS results in a black screenAndrey Kleshchev
2025-07-09#4296 Crash at renderMorphMasksAndrey Kleshchev
2025-07-02#4315 Crash in GLTF uploaderAndrey Kleshchev
Properly handle importer's crashes in general
2025-05-28Merge branch 'main' into marchcat/2505-mergeAndrey Lihatskiy
# Conflicts: # .github/workflows/qatest.yaml # indra/llcommon/llsdutil.h # indra/llui/llflatlistview.h # indra/newview/llinventorybridge.cpp # indra/newview/lloutfitgallery.cpp # indra/newview/lloutfitgallery.h