posit-dev / posit-dev/positron
[Bug] Socket Timeout Error When Starting R with Positron
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Description
System Details:
Positron and OS Details:
Positron Version: 2024.07.0-125
Operating System: Windows 10 Pro, Version 20H2
Interpreter Details:
R Version: R 4.4.1
Describe the Issue:
I'm experiencing a socket connection timeout error when attempting to start R (version 4.4.1) within the Positron IDE. This issue consistently prevents the successful initialization of R sessions. Below are the error messages and system configurations related to the issue:
R 4.4.1 starting.
Error: Socket connect timed out after 20 seconds
"c:\Program Files\Positron\resources\app\extensions\positron-r\resources\ark\ark.exe" --connection_file C:\Users\kk\AppData\Local\Temp\kernel-79VBUu\connection.json --log C:\Users\kk\AppData\Local\Temp\kernel-79VBUu\kernel.log --startup-file "c:\Program Files\Positron\resources\app\extensions\positron-r\resources\scripts\startup.R" --session-mode console -- --interactive --no-restore-data
Process exit code 1073741845
Log File Details:
Here are some relevant excerpts from the log file located at C:\Users\kk\AppData\Local\Temp\kernel-79VBUu\kernel.log:
[2024-08-05 10:15:32] INFO: Starting R process...
[2024-08-05 10:15:52] ERROR: Socket connection timed out.
[2024-08-05 10:15:52] ERROR: Process exit code 1073741845 - STATUS_ACCESS_VIOLATION
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported launch command for ark.exe, the resources/scripts/startup.R entry point, and the kernel.log and connection.json files under the temporary kernel directory. Reproduce the R 4.4.1 startup on Windows 10 and trace the socket timeout and STATUS_ACCESS_VIOLATION. Done means R initializes successfully without the 20-second timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100