positron icon indicating copy to clipboard operation
positron copied to clipboard

Intermittent "Socket disposed" when starting up python

Open jonvanausdeln opened this issue 1 year ago • 5 comments

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 avatar Oct 01 '24 16:10 jonvanausdeln

Moving to triage because this is happening more frequently

jonvanausdeln avatar Oct 03 '24 00:10 jonvanausdeln

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

largeDataFrame.test.js.zip

midleman avatar Oct 08 '24 14:10 midleman

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

midleman avatar Oct 10 '24 10:10 midleman

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

midleman avatar Oct 11 '24 19:10 midleman

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...

jonvanausdeln avatar Oct 11 '24 20:10 jonvanausdeln

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

testlabauto avatar Oct 31 '24 14:10 testlabauto

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

juliasilge avatar Nov 04 '24 21:11 juliasilge

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?

jmcphers avatar Nov 13 '24 16:11 jmcphers

Verified Fixed

Positron Version(s) :Main on 11/13/24
OS Version          : OSX

Test scenario(s)

No longer seeing this in smoke tests

Link(s) to TestRail test cases run or created:

testlabauto avatar Nov 13 '24 17:11 testlabauto