SL-18219 Crash getting and sending render info on exit
There might be other causes for sendRenderInfoToRegion and getRenderInfoFromRegion, crashing, but in some cases viewer was shutting downmeow-7.2.2
parent
e231b6d8d3
commit
87664fa35d
|
|
@ -1730,7 +1730,8 @@ bool LLAppViewer::cleanup()
|
|||
{
|
||||
if (!isSecondInstance())
|
||||
{
|
||||
LLSceneMonitor::instance().dumpToFile(gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "scene_monitor_results.csv"));
|
||||
std::string dump_path = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "scene_monitor_results.csv");
|
||||
LLSceneMonitor::instance().dumpToFile(dump_path);
|
||||
}
|
||||
LLSceneMonitor::deleteSingleton();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -364,11 +364,10 @@ void LLAvatarRenderInfoAccountant::getRenderInfoFromRegion(LLViewerRegion * regi
|
|||
}
|
||||
}
|
||||
|
||||
// static
|
||||
// Called every frame - send render weight requests to every region
|
||||
void LLAvatarRenderInfoAccountant::idle()
|
||||
{
|
||||
if (mRenderInfoScanTimer.hasExpired())
|
||||
if (mRenderInfoScanTimer.hasExpired() && !LLApp::isExiting())
|
||||
{
|
||||
LL_DEBUGS("AvatarRenderInfo") << "Scanning regions for render info updates"
|
||||
<< LL_ENDL;
|
||||
|
|
|
|||
|
|
@ -515,7 +515,7 @@ void LLSceneMonitor::fetchQueryResult()
|
|||
}
|
||||
|
||||
//dump results to a file _scene_xmonitor_results.csv
|
||||
void LLSceneMonitor::dumpToFile(std::string file_name)
|
||||
void LLSceneMonitor::dumpToFile(const std::string &file_name)
|
||||
{
|
||||
if (!hasResults()) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public:
|
|||
bool needsUpdate() const;
|
||||
|
||||
const LLTrace::ExtendablePeriodicRecording* getRecording() const {return &mSceneLoadRecording;}
|
||||
void dumpToFile(std::string file_name);
|
||||
void dumpToFile(const std::string &file_name);
|
||||
bool hasResults() const { return mSceneLoadRecording.getResults().getDuration() != S32Seconds(0);}
|
||||
|
||||
void reset();
|
||||
|
|
|
|||
Loading…
Reference in New Issue