From e182173ee29235a777da980c5586e766e16bb022 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Mon, 9 Dec 2013 03:39:47 +0100 Subject: [PATCH] Fatal paranoia cure --- indra/llcharacter/llkeyframemotion.cpp | 4 +++- indra/newview/llappviewer.cpp | 17 ++++++++++------- indra/newview/llviewertexture.cpp | 8 ++++---- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/indra/llcharacter/llkeyframemotion.cpp b/indra/llcharacter/llkeyframemotion.cpp index df10f984a..98906d3d4 100644 --- a/indra/llcharacter/llkeyframemotion.cpp +++ b/indra/llcharacter/llkeyframemotion.cpp @@ -484,7 +484,9 @@ LLJoint* LLKeyframeMotion::getJoint(U32 index) index = (S32)mJointStates.size() - 1; // LLJoint* joint = mJointStates[index]->getJoint(); - llassert_always (joint); + if(!joint) { + LL_WARNS_ONCE("Animation") << "Missing joint index:"<< index << " ID:" << mID << " Name:" << mName << LL_ENDL; + } return joint; } diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 6449b376d..5d9da37c8 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -2972,14 +2972,17 @@ void LLAppViewer::removeMarkerFile(bool leave_logout_marker) mMarkerFile.close() ; LLAPRFile::remove( mMarkerFileName ); } - if (mLogoutMarkerFile != NULL && !leave_logout_marker) + if (mLogoutMarkerFile != NULL) { - LLAPRFile::remove( mLogoutMarkerFileName ); - mLogoutMarkerFile = NULL; - } - else - { - LL_WARNS("MarkerFile") << "leaving markers because this is a second instance" << LL_ENDL; + if(!leave_logout_marker) + { + LLAPRFile::remove( mLogoutMarkerFileName ); + mLogoutMarkerFile = NULL; + } + else + { + LL_WARNS("MarkerFile") << "leaving markers because this is a second instance" << LL_ENDL; + } } } diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index a1fbd85a3..10c924225 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -1270,7 +1270,7 @@ BOOL LLViewerFetchedTexture::createTexture(S32 usename/*= 0*/) mNeedsCreateTexture = FALSE; if (mRawImage.isNull()) { - llerrs << "LLViewerTexture trying to create texture with no Raw Image" << llendl; + llwarns << "LLViewerTexture trying to create texture with no Raw Image" << llendl; } // llinfos << llformat("IMAGE Creating (%d) [%d x %d] Bytes: %d ", // mRawDiscardLevel, @@ -1712,7 +1712,7 @@ bool LLViewerFetchedTexture::updateFetch() } if (mIsMissingAsset) { - llassert_always(!mHasFetcher); + llassert(!mHasFetcher); return false; // skip } if (!mLoadedCallbackList.empty() && mRawImage.notNull()) @@ -1942,8 +1942,8 @@ bool LLViewerFetchedTexture::updateFetch() mHasFetcher = FALSE; } } - - llassert_always(mRawImage.notNull() || (!mNeedsCreateTexture && !mIsRawImageValid)); + + llassert(mRawImage.notNull() || (!mNeedsCreateTexture && !mIsRawImageValid)); return mIsFetching ? true : false; }