Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Multiplexer: Out-of-sync pane_id with TLSDomain #781

Closed
mjonuschat opened this issue May 10, 2021 · 3 comments
Closed

Multiplexer: Out-of-sync pane_id with TLSDomain #781

mjonuschat opened this issue May 10, 2021 · 3 comments
Labels
bug Something isn't working fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. multiplexer

Comments

@mjonuschat
Copy link

Describe the bug

After prolonged disconnection the pane ids between the local and the remote end seem to get out of sync, commands like SplitVertical={domain="CurrentPaneDomain"} and {SplitHorizontal={domain="CurrentPaneDomain"} fail to create new panes. The log for the connections shows the following message(s) at the time:

2021-05-10T14:45:07.174Z ERROR wezterm_gui::termwindow::spawn > Failed to spawn: unexpected response Ok(ErrorResponse(ErrorResponse { reason: "Error: pane_id 0 invalid" }))

Environment (please complete the following information):

  • OS: MacOS Big Sur 11.3.1 (Intel)
  • Version: wezterm 20210502-154244-3f7122cb
  • The active keyboard layout name: U.S.

To Reproduce

Steps to reproduce the behavior.

  1. Connect to a remote multiplexer with TLSdomain
  2. Disconnect the network/power down laptop for some time (sometimes 10+ minutes, definitely after 6+ hours)
  3. Reconnect the network, see existing panes still work and accept input/output
  4. Try to create a new pane by splitting
  5. No pane is being created (screen sometimes blinks once)
  6. Check log for connection, see message about invalid pane_id

Configuration

return {
	leader = { key="b", mods="CTRL" },
	keys = {
		{ key = "\"", mods = "LEADER|SHIFT",       action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}},
		{ key = "%", mods = "LEADER|SHIFT",        action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}},
		{ key = "x", mods = "LEADER",              action=wezterm.action{CloseCurrentPane={confirm=true}}},
		{ key = "z", mods = "LEADER",              action="TogglePaneZoomState"},
	},
	tls_clients = {
		{
			name = "devvm",
			remote_address = "some.other.host:8080",
			bootstrap_via_ssh = "some.other.host",
			remote_wezterm_path = "/home/mjonuschat/.bin/wezterm",
		},
	},
}

Expected behavior

A new pane to be created

@mjonuschat mjonuschat added the bug Something isn't working label May 10, 2021
wez added a commit that referenced this issue May 30, 2021
This looks like a honest typo from when panes were introduced!
We were passing the tab id rather than the pane id when specifying
the target of a split.

likely fix for this issue:

refs: #781
@wez wez added the fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. label May 30, 2021
@wez
Copy link
Owner

wez commented May 30, 2021

I didn't actually sit down and reproduce this with the steps you provided (I'm being a bit lazy!), but I did find a silly typo that looks like a plausible smoking gun.

This particular issue is in the client side, but I'd recommend updating both client and server as nightly has a number of changes around window invalidations and improving idle power usage that work best with a server side change 257d323

@wez wez added the waiting-on-op Waiting for more information from the original poster label May 30, 2021
@mjonuschat
Copy link
Author

This seems to have been fixed in the nightlies, I haven't been able to reproduce for more than a week since upgrading.

@no-response no-response bot removed the waiting-on-op Waiting for more information from the original poster label Jun 12, 2021
@wez wez closed this as completed Jun 12, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working fixed-in-nightly This is (or is assumed to be) fixed in the nightly builds. multiplexer
Projects
None yet
Development

No branches or pull requests

2 participants