Skip to content

SL-19744: Remove LLErrorThread and LLAppViewer::handleViewerCrash()#225

Merged
marchcat merged 2 commits intoDRTVWR-580-maint-Tfrom
rm-errorthread
May 23, 2023
Merged

SL-19744: Remove LLErrorThread and LLAppViewer::handleViewerCrash()#225
marchcat merged 2 commits intoDRTVWR-580-maint-Tfrom
rm-errorthread

Conversation

@nat-goodspeed
Copy link
Contributor

@nat-goodspeed nat-goodspeed commented May 23, 2023

LLErrorThread is, ironically, not thread-safe. Recently it has been a source of shutdown hangs.

LLErrorThread's sole responsibility is to call handleViewerCrash() when LLApp::isError(). The surprising part is that I can find no code that calls either LLApp::setError() or setStatus(APP_STATUS_ERROR). In other words, I believe that no one ever calls LLAppViewer::handleViewerCrash().

Remove all that unused code. LLErrorThread is supposed to be part of the general LLApp machinery, but to actually be robust, it would have to be rewritten.

I'd like to request a QA pass over this branch to verify that it's no worse -- either while running or providing a crash report -- than the release viewer.

Unless some problem turns up, please pull this into an upcoming maint viewer. I marked it "Draft" because of course it shouldn't be merged directly into main.

@marchcat
Copy link
Contributor

marchcat commented May 23, 2023

Will pull this into DRTVWR-580 Maint T.
Thank you, @nat-goodspeed !

@marchcat marchcat changed the base branch from main to DRTVWR-580-maint-T May 23, 2023 00:21
@marchcat marchcat marked this pull request as ready for review May 23, 2023 00:22
@marchcat marchcat merged commit 863e7f2 into DRTVWR-580-maint-T May 23, 2023
@marchcat marchcat deleted the rm-errorthread branch May 23, 2023 01:28
@github-actions github-actions bot locked and limited conversation to collaborators May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants