-
Notifications
You must be signed in to change notification settings - Fork 101
ark: Cryptic warning after starting and interrupting Shiny application #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Putting this in private alpha in case this is indicative of a need to restructure how threads are oriented in ark. |
Looks like this happens if the LSP thread runs some R code, and that triggers some finalizers registered via httpuv to run. However, httpuv expects to either be on the "main" thread, or on its own background thread, as per: https://github.com/rstudio/httpuv/blob/main/src/auto_deleter.h#L13-L51 |
I hit this same issue today. It's hard to replicate - but with enough Positron Version: 2023.09.0 (Universal) build 203 |
Addressed by posit-dev/ark#109 and ready for review. Should be fixed in builds >= 2023.10.0-1267. |
I just tried running and interrupting Shiny apps many, many times in build 1269 and I never saw "Can't detect correct thread for auto_deleter_background." Working great for me. 👍 |
Confirmed - thanks!! |
…pstream; fix ruff ignores Merge pull request #431 from posit-dev/ci-fixes downgrade pyright to match upstream; fix ruff ignores -------------------- Commit message for posit-dev/positron-python@1a45ab6: downgrade pyright to match upstream; fix ruff ignores Authored-by: Pete Farland <[email protected]> Signed-off-by: Wasim Lorgat <[email protected]>
…pstream; fix ruff ignores Merge pull request #431 from posit-dev/ci-fixes downgrade pyright to match upstream; fix ruff ignores -------------------- Commit message for posit-dev/positron-python@1a45ab6: downgrade pyright to match upstream; fix ruff ignores Authored-by: Pete Farland <[email protected]> Signed-off-by: Wasim Lorgat <[email protected]>
Saw this in the console some time after a Shiny application was stopped:
It looks like this comes from
httpuv
; e.g.https://github.com/rstudio/httpuv/blob/main/src/auto_deleter.h#L30
And the error seems to imply the destructor / deleter was run on a thread unrecognized by later.
For reference, the example code:
The text was updated successfully, but these errors were encountered: