diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-07-01 23:14:24 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-07-02 01:40:50 +0300 |
commit | 76dd9385f9354fd661d1c7cc1e7c3d9c39355675 (patch) | |
tree | 77b908736edee8de042b5ea9269cf9a1de09f5af /indra/newview/llappviewer.cpp | |
parent | 230a8caa5d839f2f987814d8fb8d94594cddf7f8 (diff) |
#4315 Crash in GLTF uploader
Properly handle importer's crashes in general
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index aea4492223..9872233e98 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -5679,6 +5679,27 @@ void LLAppViewer::forceErrorThreadCrash() thread->start(); } +void LLAppViewer::forceExceptionThreadCrash() +{ + class LLCrashTestThread : public LLThread + { + public: + + LLCrashTestThread() : LLThread("Crash logging test thread") + { + } + + void run() + { + throw std::exception(); + } + }; + + LL_WARNS() << "This is a deliberate exception in a thread" << LL_ENDL; + LLCrashTestThread* thread = new LLCrashTestThread(); + thread->start(); +} + void LLAppViewer::initMainloopTimeout(std::string_view state, F32 secs) { if (!mMainloopTimeout) |