-
Notifications
You must be signed in to change notification settings - Fork 92
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
Positron RPC timed out when loading complex objects like SummarizedExperiment
objects
#4313
Comments
RPC timed out
when loading Large Data
Once I supposed is a bug from SSH connection, but it can re-produced in local ubuntu desktop environment without ssh. So it is not produced by SSH connection. This seem to related to #3628. PositronUbuntuLocal.mp4 |
RPC timed out
when loading Large DataSummarizedExperiment
objects
Yes, I think it's the same issue! |
@jmcphers Thank you for quick reply!
These are all displayed in the variable pane, which is overwhelming for both the IDE and my eyes. RStudio allows these to be expanded into a new window. Could Positron also consider implementing a similar solution? Thank you for your work. Additionally, I think this could also be a way to reduce the communication load between the ARK kernel and the Positron IDE frontend. For large and complex objects, Positron should only attempt to retrieve information from the backend and present it in a more refined manner when I actively request it by clicking, rather than displaying everything in the variable pane. Moreover, for small-screen devices like my MacBook Air, to be honest, a very small variable pane provides limited help. |
Thanks for the report @ZhimingYe! I'll close this as a duplicate of #3628.
That sounds like a reasonable enhancement request – would you mind creating a separate issue for this? |
System details:
Positron and OS details:
Positron Version: 2024.08.0 (Universal) build 24 on macOS 14.5 (ARM, Apple M1 Chip)
Server Version: Downloaded from positron-reh-linux-x64-2024.08.0-24.tar.gz release file. (Ubuntu 22.04.3 LTS)
Other attached packages:
[1] zellkonverter_1.10.1 SeuratObject_4.1.3 Seurat_4.3.0.1
Interpreter details:
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS
Describe the issue:
When loading complex data objects (like S4 object with many slots and spare matrix) via SSH remote connection, all auxiliary functions of Positron for R, such as preview, become unresponsive.
Supplement: See the following comment, once I supposed is a bug from SSH connection, but it can re-produced in local ubuntu desktop environment without ssh. So it is not produced by SSH connection. It looks like #3628, but
SummarizedExperiment
object is more complex.Steps to reproduce the issue:
Dataset download URL: https://datasets.cellxgene.cziscience.com/283b05b7-e336-4fb4-a36e-cec0627c426b.h5ad
Afther running these, when executing the next command with Command + Enter, there is no response, also, clicking on any object in the Variable pane also has no effect.
After multiple attempts, I suspect this issue might be due to the server and client waiting for a large data packet? (I'm not a professional, so I can only describe it this way—please bear with me). For instance, it takes a long time (much longer than running the same code in RStudio) before the next line can be executed, and
str(OriginDS0)
returns results after multiple requests. In some cases, after loading a file, clicking on a variable in the Variable pane occasionally results in an RPC error.Example1: No response in both executing code and viewing variables
PositronTestCase.mp4
Example2: After a long wait (longer than RStudio takes to execute the same code), the commands submitted with Command + Enter are executed all at once.
I come from a biomedical background and haven't received formal training in computer science. Therefore, I can only express my problem in such a rough manner.
Expected or desired behavior:
In RStudio, the same code doesn't cause similar issues, and the preview variable window is very smooth (which might also rule out network connection problems).
RstudioTestCase.mp4
Were there any error messages in the UI, Output panel, or Developer Tools console?
Error expanding variable item: RPC timed out after 5seconds: f"jsonrpc":"2.0""method":"inspect","params":{"path":["OriginDSo"]}} Error (-32603)
The text was updated successfully, but these errors were encountered: