posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.77k stars 85 forks source link

Intermittent "Socket disposed" when starting up python #4863

Open jonvanausdeln opened 1 month ago

jonvanausdeln commented 1 month ago

System details:

Ubuntu 22 - Github Runner

Positron and OS details:

All recent versions

Interpreter details:

Python 3.10.12

Describe the issue:

When running our automated UI/Smoke tests there is occasionally a failure that reports "Error: Socket disposed" when trying to start up Python. We've only seen this when running automated tests. It happens perhaps 5% of the time...

image

Steps to reproduce the issue:

  1. Try to start a Python interpreter

Expected or desired behavior:

Python to start

Were there any error messages in the UI, Output panel, or Developer Tools console?

jonvanausdeln commented 1 month ago

Moving to triage because this is happening more frequently

midleman commented 1 month ago

Ran into this error on nightly run of Data Explorer - Large Data Frame (Web). Attaching all logs for reference.

largeDataFrame.test.js.zip

midleman commented 1 month ago

Attaching log files for another example: consoleInput.test.js.zip

midleman commented 1 month ago

Ran into it again. variablespane.test.js.zip

jonvanausdeln commented 1 month ago

While the % of tests that hit this is low... the occurrence rate is probably 1 or 2 times a day (we hit it in a PR job today as well).

I'd would advocate that we bump this to a sooner release...

testlabauto commented 1 week ago

Bumping back to triage to consider moving to a sooner release.

juliasilge commented 1 week ago

In #5262 we plan to move away from the Jupyter Adapter extension, which is where this error is arising.

jmcphers commented 1 hour ago

Now that we are using the new supervisor by default, this codepath shouldn't be active, so we shouldn't see this error any more. QA, can you confirm?