Skip to content

Crash on latest version #994

Closed
Closed

Description

@iandol

tmux 3.6 and tmuxp 1.57 on Ubuntu 24.04 (I use pixi package manager to install). I get this crash which I didn't have before. Happens on multiple systems. Reverting to old versions (system versions from Ubuntu, tmux 3.4 and tmuxp 1.38) and don't see the crash.

Traceback (most recent call last):
  File "/home/cagelab/.pixi/envs/tmuxp/bin/tmuxp", line 9, in <module>
    sys.exit(cli.cli())
             ~~~~~~~^^
  File "/home/cagelab/.pixi/envs/tmuxp/lib/python3.14/site-packages/tmuxp/cli/__init__.py", line 148, in cli
    command_load(
    ~~~~~~~~~~~~^
        args=CLILoadNamespace(**vars(args)),
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        parser=parser,
        ^^^^^^^^^^^^^^
    )
    ^
  File "/home/cagelab/.pixi/envs/tmuxp/lib/python3.14/site-packages/tmuxp/cli/load.py", line 583, in command_load
    load_workspace(
    ~~~~~~~~~~~~~~^
        workspace_file,
        ^^^^^^^^^^^^^^^
    ...<2 lines>...
        **tmux_options,
        ^^^^^^^^^^^^^^^
    )
    ^
  File "/home/cagelab/.pixi/envs/tmuxp/lib/python3.14/site-packages/tmuxp/cli/load.py", line 357, in load_workspace
    _reattach(builder)
    ~~~~~~~~~^^^^^^^^^
  File "/home/cagelab/.pixi/envs/tmuxp/lib/python3.14/site-packages/tmuxp/cli/load.py", line 129, in _reattach
    builder.session.attach_session()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/cagelab/.pixi/envs/tmuxp/lib/python3.14/site-packages/libtmux/session.py", line 827, in attach_session
    raise exc.LibTmuxException(proc.stderr)
libtmux.exc.LibTmuxException: ['open terminal failed: not a terminal']

Activity

  1. 0re5ama commented on Nov 30, 2025

    @0re5ama

    I am facing the same issue. I tried running tmux and I am getting the error: open terminal failed: not a terminal. I think it has got something to do with ncurses update.

  2. tony commented on Nov 30, 2025

    @tony
    Member

    Does tmux 3.5 work?

    I will take a closer look at 3.6 today.

  3. added
    bugSomething isn't working
    on Nov 30, 2025
  4. tony commented on Nov 30, 2025

    @tony
    Member

    @0re5ama @iandol Does just typing tmux by itself work?

    I'm getting not a terminal even when I run tmux on 3.6.

    ❯ tmux
    open terminal failed: not a terminal
    
  5. tony commented on Nov 30, 2025

    @tony
    Member

    @iandol @0re5ama

    Does it work if you fully close tmux and try again? (e.g. killall -9 tmux / killall -9 /usr/local/bin/tmux / killall -9 /usr/bin/tmux?)

    That fixed it for me.

    From tmux/tmux#4699:

    Note that it is very important to restart tmux entirely after upgrading. This is particularly important with this release because one of the libraries that tmux uses changed its protocol. If you see this message when you try to attach it probably means you forgot to restart tmux:

    open terminal failed: not a terminal
    
  6. added
    need-commentsInvitation for contributors and users to provide feedback on issue, for further consideration.
    and removed
    bugSomething isn't working
    on Nov 30, 2025
  7. tony commented on Nov 30, 2025

    @tony
    Member

    Moving this to a discussion - this looks tmux 3.6 related and I think we have a workaround

  8. locked and limited conversation to collaborators on Nov 30, 2025
  9. converted this issue into a discussion #995 on Nov 30, 2025
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

    need-commentsInvitation for contributors and users to provide feedback on issue, for further consideration.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions