Skip to content

Python interpreter discovery can hang the Global Options Python panel indefinitely #18794

Closed

Description

@kevinushey

System details

RStudio Edition: Desktop and Server
RStudio Version: 2026.10.0 (main)
OS Version: all

Steps to reproduce

  1. Tools > Global Options > Python > Select...
  2. Have a Python (or conda) executable on the PATH or in a scanned location that hangs or is very slow to start.

Describe the problem in detail

The "Finding interpreters..." progress box stays up with no way to cancel. Interpreter discovery (.rs.python.findPythonInterpreters) runs every candidate interpreter and conda env list through system2() on the main R thread with no timeout, so one wedged process blocks the dialog and the python_find_interpreters RPC forever. The e2e suite hit this on the server-linux shard of run 34637770965: the RPC never returned within 60s, while the same test completes in a few seconds on a retry.

Describe the behavior you expected

Each probe is bounded; an interpreter that does not answer is listed as invalid (or skipped, for conda) and the dialog opens with the rest.

Activity

  1. self-assigned this
    on Sep 11, 2026
  2. added theissue type on Sep 13, 2026
  3. added
    user preferences
    on Sep 13, 2026
  4. kevinushey commented on Oct 5, 2026

    @kevinushey
    CollaboratorAuthor

    Fixed in 2026.10 by #18797. Each interpreter probe is now bounded by the rstudio.python.probeTimeout option (default 10 seconds; conda gets three times that). An interpreter that times out is listed as invalid, and a conda timeout skips conda environments with a warning instead of blocking the dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpythonuser preferences

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions