Put the viewer version into marker files, and report errors only when the version matches
Review Request #607 - Created Oct. 31, 2012 and submitted
Oz Linden | Reviewers | ||
viewer | |||
storm-1850 | callum | ||
None | viewer-beta |
In all the marker files used to detect how the viewer run terminates, record the version. When checking the results, report errors only if the current version matches the version in the file. This prevents errors in one version from being reported against the subsequent version.
Several simulated crashes both of the modified and unmodified viewers, and some in which the marker file was modified manually to simulate different viewers. Launched the new viewer after different crashes (and normal exits) and confirmed (using logging temporarily added for that purpose) that the reported last exec event was correct - and is always reported as Normal if the previous version and the running version were not the same.
Review request changed
Updated (Nov. 2, 2012, 1:55 p.m.)
-
- added callum
Functionally, it looks good...just one minor comment about structure
-
indra/newview/llappviewer.cpp (Diff revision 1) -
Structurally, it seems like this would be cleaner if opening the file, writing out the marke version, and closing it all happened in one function. Otherwise, you have this constraint that the file needs to be opened before being passed into recordMarkerVersion and closed afterwards. Just picking a nit, sorry.
Review request changed
Updated (Nov. 9, 2012, 4:06 p.m.)
- changed from pending to submitted
Other reviews