You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No crash. If there are no other sessions remaining, I think the following two options are reasonable:
Contour automatically executes CreateNewTab and switches to that session.
Contour doesn't switch to any session automatically, but run a logic similar to the "The shell exited too quickly..." prompt with bright red background and tell the user "Hey, we ran out of tabs/sessions, please start a new terminal".
Of course, the issue is deeper rooted I believe. Either it should not be possible for two windows to be attached to the same tab, or if a tab is exited while there are more than 1 window attached to it, all the other tabs should print an error message raw to the GUI as in the 2nd point above.
Actual Behavior
[2025-03-02 14:54:21.253752] [gui.session] ExitWatcherThread: Terminal device closed.
[2025-03-02 14:54:21.253762] [vt.session] PTY read failed. Resource temporarily unavailable
[2025-03-02 14:54:21.253768] [pty.input] master received: ""
[2025-03-02 14:54:21.253770] [vt.session] PTY read returned with zero bytes. Closing PTY.
[2025-03-02 14:54:21.253774] [pty] PTY closing master from thread Terminal.Loop (file descriptor 12).
[2025-03-02 14:54:21.253785] [gui.session] Event loop terminating (PTY closed).
[2025-03-02 14:54:21.253790] [gui.session] Terminal device closed (thread )
[2025-03-02 14:54:21.253800] [gui.session] Process terminated after 132 seconds with exit status 0 (normal exit).
[2025-03-02 14:54:21.253807] [gui.session_manager] REMOVE SESSION: session: 0x150008000, _sessions.size(): 1
[2025-03-02 14:54:21.253811] [gui.session_manager] Calculated next "previous" session index 18446744073709551615
[2025-03-02 14:54:21.253815] [gui.session] Terminal device is closed. Closing display.
[2025-03-02 14:54:21.253818] [gui.display] closeDisplay
Debug[qml]: Client process terminated. Closing the window. (qrc:/contour/ui/Terminal.qml:210, expression for onTerminated)
[2025-03-02 14:54:27.809866] [gui.input] Mouse press received: Left
[2025-03-02 14:54:27.809961] [vt.input] Creating cell selector: LinearSelection(Waiting from (4, 19) to (4, 19))
[2025-03-02 14:54:28.296857] [gui.input] Key Press event received: Control LeftControl
[2025-03-02 14:54:28.379890] [gui.input] Input not handled for mods Shift|Control key 0x1000020
[2025-03-02 14:54:29.090925] [gui.input] Character Press event received: Shift|Control 'L'
[2025-03-02 14:54:29.091021] [gui.session] executeAction: SwitchToTabRight
libc++abi: terminating due to uncaught exception of type std::bad_optional_access: bad_optional_access
[2] 34879 abort contour debug '*'
Other terminal multiplexer solutions such as screen, dtach, monomux, and tmux(byobu) all explicitly print something like [exited] when the session their "frontend" was attached to is quit.
The text was updated successfully, but these errors were encountered:
Contour Terminal version
0.6.1.7494
Installer source
GitHub: release page
Operating System
MacOS San Sequoia 15.3.1
Architecture
ARM64
Other Software
—
Steps to reproduce
echo 1
.NewTerminal
to get another window. Both windows now point at the newly created shell ([0.6.1.7494 Regression] Switching between windows of the same Contour process broken (likely due to terminal tabs feature) #1725).echo 2
.exit
into shell2
in the old (originally opened) window.2
exits, and the older window returns back to shell1
. The newer window is still "running" theexit
prompt and the window is open.exit
shell 1. The older window closes.SwitchTabToLeft
orSwitchTabToRight
(might be related to Terminal tabs:SwitchTabToLeft
/SwitchTabToRight
keybind is executed not in the active window #1728). A crash happens.Expected Behavior
No crash. If there are no other sessions remaining, I think the following two options are reasonable:
CreateNewTab
and switches to that session.Of course, the issue is deeper rooted I believe. Either it should not be possible for two windows to be attached to the same tab, or if a tab is exited while there are more than 1 window attached to it, all the other tabs should print an error message raw to the GUI as in the 2nd point above.
Actual Behavior
Additional notes
Other terminal multiplexer solutions such as screen, dtach, monomux, and tmux(byobu) all explicitly print something like
[exited]
when the session their "frontend" was attached to is quit.The text was updated successfully, but these errors were encountered: