Skip to content

Tachyon's TUI sometimes does not work on the first try #143040

Closed

Description

@sobolevn

Bug report

I am trying out the new profile's TUI and this happens:

2025-12-21.11.16.05.mov

When I first run the command, it shows either nothing or just a black screen. The second run always (?) works correctly.

Since I am on macos, I have to use sudo to run the profiler. And the first sudo run requires the password. Maybe that's related?

My env:

  • vscode's terminal
  • macos
  • zsh

CC @pablogsal

Linked PRs

Activity

  1. yihong0618 commented on Dec 21, 2025

    @yihong0618
    Contributor

    it happens to me once, but it happens in VS Code terminal

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Dec 21, 2025
  3. pablogsal commented on Dec 21, 2025

    @pablogsal
    Member

    Will take a look soon

  4. pablogsal commented on Dec 21, 2025

    @pablogsal
    Member

    @sobolevn can you confirm if this also happens to you in a non-vscode terminal ?

  5. pablogsal commented on Dec 21, 2025

    @pablogsal
    Member

    Also in the video you are nesting two --live instances so that is also a possible cause. Does this happen also if you don't do that?

  6. pablogsal commented on Dec 21, 2025

    @pablogsal
    Member

    Hummm, looking at your invocation I am noticing is just wrong. You are calling the profiler with:

    sudo -E SAMPLING_LIVE_TRACE=/tmp/live_trace.log ./python.exe -m profiling.sampling run -d 99999 --live -m test test_gc -F SAMPLING_LIVE_TRACE=/tmp/live_trace.log ./python.exe -m profiling.sampling run -d 99999 --live -m test test_gc -F
    

    but that's not how you are supposed to nest them: the second call should NOT use ./python.exe. What's happening here is that the program is failing to even start. Maybe we should make this into "the live TUI doesn't;t properly report starting errors"

  7. pablogsal commented on Dec 21, 2025

    @pablogsal
    Member

    It you launch this with sudo -E SAMPLING_LIVE_TRACE=/tmp/live_trace.log ./python.exe -m profiling.sampling run -d 99999 --live -m test test_gc it should work

  8. pablogsal commented on Dec 21, 2025

    @pablogsal
    Member

    I have tried sudo -E SAMPLING_LIVE_TRACE=/tmp/live_trace.log ./python.exe -m profiling.sampling run -d 99999 --live -m test test_gc in the exact same environment as you report (macOS + vsCode terminal + zsh) and cannot reproduce

  9. pablogsal commented on Dec 21, 2025

    @pablogsal
    Member

    Ok I am 100% sure the problem here is that the program is crashing with an exception or something else before it can start. The UX is horrible because the user gets no feedback and you cannot see the exception :(

  10. changed the title [-]Tachion's TUI sometimes does not work on the first try[/-] [+]Tachyon's TUI sometimes does not work on the first try[/+] on Dec 26, 2025
  11. added a commit that references this issue on Dec 27, 2025
  12. pablogsal commented on Dec 27, 2025

    @pablogsal
    Member

    Closing as now we have a better error message

  13. added a commit that references this issue on Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-macstdlibStandard Library Python modules in the Lib/ directorytopic-profilingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions