Commit Graph

38923 Commits (e674f11757ab55c5ca7aab4cb1c8e059fa98f466)

Author SHA1 Message Date
Nat Goodspeed e674f11757 DRTVWR-447: Add (some) metadata to Mac crash reports.
This required reordering certain operations during Mac viewer startup. Split
llappviewermacosx.cpp's initViewer() function into constructViewer() (which
instantiates LLAppViewerMacOSX) and initViewer() (which calls
LLAppViewerMacOSX::init()).

llappdelegate-objc.mm's applicationDidFinishLaunching override now calls
[BugsplatStartupManager start] between constructViewer() and initViewer(): we
want constructViewer() to have set up the logging subsystem so we can log the
actions of BugsplatStartupManagerDelegate override methods, but otherwise we
want BugsplatStartupManager in place as early as possible to catch any early
crashes. Besides, initViewer() ends up overwriting the static_debug_info.log
on which we depend for the *previous* run's crash metadata.

Move the code that initializes the pathname of the static_debug_info.log file
from LLAppViewerMacOSX::init() to the LLAppViewerMacOSX() constructor, since
BugsplatStartupManagerDelegate override methods need to read (the previous
run's) file.

Add code to applicationLogForBugsplatStartupManager override to set new
BugsplatMac 1.0.6 properties userName and userEmail.

Don't log empty fields from static_debug_info.log if we couldn't read it.
2018-08-23 12:31:54 -04:00
Nat Goodspeed afbf243f1a DRTVWR-447: Update to bugsplat build 518982 2018-08-23 10:27:31 -04:00
Nat Goodspeed 8d4e6b6df0 DRTVWR-447: Additional logging getting metadata for previous run 2018-08-22 16:16:26 -04:00
Nat Goodspeed 787053ffeb DRTVWR-447: Add logging to BugsplatMac override methods. 2018-08-22 13:26:19 -04:00
Nat Goodspeed 7dc014474d DRTVWR-447: Attempt to post BugSplat metadata with Mac crash reports.
Introduce CrashMetadata, an LLSingleton in llappviewermacosx.cpp, declared in
llappviewermacosx-for-objc.h and accessed by the various
BugsplatStartupManagerDelegate override methods. CrashMetadata is populated by
reading the previous (presumably crashed) run's static_debug_info.log file.

This replaces the previous getOldLogFilePathname(), getFatalMessage() and
getAgentFullname() functions. To extend that suite for additional metadata,
not only would we have to keep adding new free functions, but we'd have to
keep rereading the static_debug_info.log file.

Override the new applicationKeyForBugsplatStartupManager,
defaultUserNameForBugsplatStartupManager,
defaultUserEmailForBugsplatStartupManager methods to extract relevant fields
from CrashMetadata. Change applicationLogForBugsplatStartupManager and
attachmentForBugsplatStartupManager to do the same.

Enhance llviewerregion.cpp to update the static_debug_info.log file every
time we enter a new region.
2018-08-22 10:48:29 -04:00
Nat Goodspeed 302052700b DRTVWR-447: Add static_debug_info.log file to Windows crash report.
Also use the LLOSInfo information for platform rather than simply Windows32 or
Windows64.
2018-08-21 19:28:19 -04:00
Nat Goodspeed 87763d964a MAINT-8917: For BugSplat viewer, don't create dump-UUID directory.
Just put the static_debug_info.log file in the parent logs directory.

Also update that static_debug_info.log file with "FatalMessage" key taken from
LL_ERRS() message string.
2018-08-21 19:26:07 -04:00
Nat Goodspeed db970c1a5f Don't compare rbegin() iterators, use LLStringUtil::endsWith().
I think the intention of (sDumpDir.rbegin() == mDirDelimiter.rbegin()) was to
test whether sDumpDir endsWith(mDirDelimiter). But those iterators will never
be equal. Instead, use LLStringUtil::endsWith().
2018-08-21 19:23:33 -04:00
Nat Goodspeed 6a61145686 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2018-08-21 19:15:16 -04:00
Nat Goodspeed 6f54add8a8 increment viewer version to 5.1.9 2018-08-21 19:03:01 -04:00
Nat Goodspeed c1d5bafdb7 Added tag 5.1.8-release for changeset 23ea0fe36fad 2018-08-21 19:01:30 -04:00
Nat Goodspeed 7b83e8cdf7 SL-824: Update to bugsplat build 518876 2018-08-21 09:51:28 -04:00
Nat Goodspeed c50df8c4d9 SL-824: Update to bugsplat build 518831 2018-08-18 12:03:57 -04:00
Nat Goodspeed de88537d38 Backed out changeset 599911002a5e: revert to bugsplat build 518798. 2018-08-18 09:37:07 -04:00
Nat Goodspeed 9be834b334 SL-824: Update to bugsplat build 518806 2018-08-17 16:06:14 -04:00
Nat Goodspeed 466a72da47 SL-824: Update to bugsplat build 518798 2018-08-17 14:40:12 -04:00
Nat Goodspeed 52fe357370 DRTVWR-447: Use os.path.split(path) instead of path.split(os.sep).
On Windows, where 'path' might be separated either with '/' or '\', the latter
breaks unless all path separators are in fact the os.sep character '\'. While
it would be possible to code something fancy with os.sep and os.altsep,
testing the latter for None, much simpler to let os.path.split() handle it.
2018-08-17 14:39:32 -04:00
Nat Goodspeed 64034e8394 SL-824: Update to bugsplat build 518791 2018-08-17 12:25:36 -04:00
Nat Goodspeed bc5aeae202 DRTVWR-447: Simplify redundant if-key-in-dict-and-value-nonempty logic 2018-08-15 16:41:19 -04:00
Nat Goodspeed 1b2f52257a DRTVWR-447: Streamline some of the logic around extra packages. 2018-08-15 16:38:09 -04:00
Nat Goodspeed 0869e86fb1 DRTVWR-447: Update to bugsplat build 518707 2018-08-15 16:15:22 -04:00
Nat Goodspeed 7ac77dea71 DRTVWR-447: merge reverting Mac suppression to re-enable Mac builds. 2018-08-15 16:13:40 -04:00
Nat Goodspeed 3ca8263fb4 Backed out changeset 25b55601514d: re-enable building BugSplat on Mac. 2018-08-15 16:12:56 -04:00
Oz Linden 30b8068c97 VOICE-50 VOICE-58: recover from SLVoice process exit automatically 2018-08-10 09:51:48 -04:00
Oz Linden 5e89952203 merge changes for 5.1.7-release 2018-08-02 16:36:50 -04:00
Nat Goodspeed 59d2bf0622 DRTVWR-447: Merge changesets from newly updated viewer-release. 2018-08-02 16:21:30 -04:00
Nat Goodspeed 6795504330 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2018-08-02 16:15:34 -04:00
Nat Goodspeed 09f97172bb MAINT-8176: Add canonical_repo field to viewer's autobuild.xml. 2018-08-02 16:08:53 -04:00
Nat Goodspeed 31afdea8a2 increment viewer version to 5.1.8 2018-08-02 16:02:58 -04:00
Nat Goodspeed ac2b54ae21 Added tag 5.1.7-release for changeset ac3b1332ad4f 2018-08-02 16:02:58 -04:00
Oz Linden c339894390 additional logging around launch/termination of SLVoice 2018-08-02 10:00:34 -04:00
Oz Linden dbbeeed6f4 retrigger build 2018-07-29 09:49:55 -04:00
Nat Goodspeed f1eb3c1b63 DRTVWR-447: Temporarily suppress building for BugSplat on Mac. 2018-07-18 20:32:35 -04:00
Nat Goodspeed d8dacc844a DRTVWR-447: Update to bugsplat build 517972 2018-07-18 09:53:09 -04:00
andreykproductengine 9248ca8115 SL-920 Disable friendship caps untill new requirements are provided 2018-07-18 16:16:43 +03:00
Nat Goodspeed 96ef1b5801 DRTVWR-447: Update to bugsplat build 517942 2018-07-17 17:13:03 -04:00
Nat Goodspeed c11ecfddff DRTVWR-447: Force rebuild with new BUGSPLAT_DB value. 2018-07-17 14:42:35 -04:00
andreykproductengine 59d00f986e SL-920 Better logging and limited cap to offline messages 2018-07-17 10:42:17 +03:00
Nat Goodspeed 234ca77f19 DRTVWR-447: Revert BugSplat diagnostic logging; add platform tag. 2018-07-14 08:52:58 -04:00
Nat Goodspeed 93ab8c216d DRTVWR-447: Update to bugsplat build 517820 2018-07-13 16:45:00 -04:00
Nat Goodspeed a77f2e277f DRTVWR-447: Update to bugsplat build 517815 2018-07-13 14:11:53 -04:00
Nat Goodspeed 3888d1862a DRTVWR-447: For want of a 'const', the build was lost. 2018-07-12 16:07:06 -04:00
Nat Goodspeed b883ffaa75 DRTVWR-447: More diagnostic logging for BugSplat metadata strings. 2018-07-12 14:45:14 -04:00
Nat Goodspeed c7616af624 DRTVWR-447: Diagnostically try naively widening BugSplat metadata. 2018-07-11 21:52:03 -04:00
Nat Goodspeed 869d2f1fb2 DRTVWR-447: Fix silly typos 2018-07-11 18:26:27 -04:00
Nat Goodspeed 66d083967e DRTVWR-447: Add more diagnostic logging to Windows BugSplat crash. 2018-07-11 16:01:48 -04:00
Nat Goodspeed 62eecd87a5 SL-932: Attach user's settings.xml file to Windows crash reports.
It is not obvious whether the BugsplatMac attachment API even supports
multiple file attachments. I've contacted BugSplat support.
2018-07-10 17:47:00 -04:00
Nat Goodspeed 07d7e48f41 DRTVWR-447: Use absolute path prefixes for CEF components.
viewer_manifest.py had LLManifest.prefix() calls starting with '..' (or
os.pardir, same thing) which failed with new prefix() calling conventions.
Explicitly starting with os.path.join(self.args['build'], os.pardir, etc.)
where applicable works much better.
2018-07-10 14:01:19 -04:00
Oz Linden a59274d2da update to SLVoice 4.9.0002.30313.ee674a2b 2018-07-09 17:06:22 -04:00
AndreyL ProductEngine 05edfce741 Merged in lindenlab/viewer-lynx 2018-07-09 23:46:48 +03:00