From a0e19aabe41bf3b4f417c90a0ec97cc0c30e711c Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 18 Feb 2018 14:35:13 +0100 Subject: [PATCH] Comment out catch-all exception handler for coroutines for hopefully more meaningful callstacks --- indra/llcommon/llcoros.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/indra/llcommon/llcoros.cpp b/indra/llcommon/llcoros.cpp index c5ba23f68c..9751a3ebd3 100644 --- a/indra/llcommon/llcoros.cpp +++ b/indra/llcommon/llcoros.cpp @@ -340,12 +340,14 @@ void LLCoros::toplevel(coro::self& self, CoroData* data, const callable_t& calla // viewer will carry on. LOG_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName)); } - catch (...) - { - // Any OTHER kind of uncaught exception will cause the viewer to - // crash, hopefully informatively. - CRASH_ON_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName)); - } + // Disable for more meaningful callstacks + //catch (...) + //{ + // // Any OTHER kind of uncaught exception will cause the viewer to + // // crash, hopefully informatively. + // CRASH_ON_UNHANDLED_EXCEPTION(STRINGIZE("coroutine " << data->mName)); + //} + // // This cleanup isn't perfectly symmetrical with the way we initially set // data->mPrev, but this is our last chance to reset Current. Current().reset(data->mPrev);