tmux-plugins/tmux-copycat

Jump to next match crashes tmate

m1foley opened this issue · 2 comments

Steps to recreate:

  1. Run tmate -v
  2. Print some directories to the screen: find . -depth 2 | head
  3. Type prefix + ctrl-f. It will correctly highlight the first match.
  4. Type n to highlight next match. tmate crashes.

Software versions:

  • The bug happens on both iTerm2 and Terminal.
  • Latest OS X (10.11.4)
  • tmate 2.2.1_1 (brew install tmate)
  • Latest tmux-copycat (dd24d36)

Plugin section from my .tmux.conf:

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-copycat'
run '~/.tmux/plugins/tpm/tpm'

Output from my tmate-server log:

1465495255.416386 preparing -s state: target none
1465495255.416467 format 'tmux send-keys 'n'; /Users/mike/.tmux/plugins/tmux-copycat/scripts/copycat_jump.sh 'next'; true' -> 'tmux send-keys 'n'; /Users/mike/.tmux/plugins/tmux-copycat/scripts/copycat_jump.sh 'next'; true'
1465495255.417041 run job 0x7f89bac03920: tmux send-keys 'n'; /Users/mike/.tmux/plugins/tmux-copycat/scripts/copycat_jump.sh 'next'; true, pid 81594
1465495255.417178 @0 active pane not changed
1465495255.417204 job write 0x7f89bac03920: tmux send-keys 'n'; /Users/mike/.tmux/plugins/tmux-copycat/scripts/copycat_jump.sh 'next'; true, pid 81594, output left 0
1465495255.417212 @0 active pane not changed
1465495255.424731 add peer 0x7f89bb01d600: 12 (0x7f89bb003000)
1465495255.424747 new client 0x7f89bb003000
1465495255.424754 @0 active pane not changed
1465495255.424863 peer 0x7f89bb01d600 message 100
1465495255.424869 client 0x7f89bb003000 IDENTIFY_FLAGS 0x10000
1465495255.424872 peer 0x7f89bb01d600 message 101
...
1465495255.425200 cmd_find_target: target none, type 0
1465495255.425208 cmd_find_target: cmdq 0x7f89bac06dc0, flags 0
1465495255.425211 cmd_find_target: s=$0
1465495255.425214 cmd_find_target: wl=1 1 w=@0 [tmux]
1465495255.425217 cmd_find_target: wp=%0
1465495255.425219 cmd_find_target: idx=1
1465495255.425222 preparing -s state: target none
1465495255.425247 [tmate] I CRASH, printing stack trace
1465495255.425375 [tmate] I ============ 18 stack frames ============
1465495255.425411 [tmate] I 1   tmate                               0x000000010f0bb4b1 handle_sigsegv + 23
1465495255.425418 [tmate] I 2   libsystem_platform.dylib            0x00007fff9505352a _sigtramp + 26
1465495255.425424 [tmate] I 3   ???                                 0x00007fff50b74d68 0x0 + 140734547578216
1465495255.425430 [tmate] I 4   tmate                               0x000000010f0c7c6a window_copy_key + 440
1465495255.425436 [tmate] I 5   tmate                               0x000000010f0986fe cmd_send_keys_exec + 327
1465495255.425441 [tmate] I 6   tmate                               0x000000010f096972 cmdq_continue + 294
1465495255.425448 [tmate] I 7   tmate                               0x000000010f0b43d2 server_client_dispatch_command + 338
1465495255.425454 [tmate] I 8   tmate                               0x000000010f0b2766 server_client_dispatch + 310
1465495255.425460 [tmate] I 9   tmate                               0x000000010f0aedd1 proc_event_cb + 114
1465495255.425465 [tmate] I 10  libevent-2.0.5.dylib                0x000000010f1786a1 event_base_loop + 1631
1465495255.425471 [tmate] I 11  tmate                               0x000000010f0aec93 proc_loop + 40
1465495255.425477 [tmate] I 12  tmate                               0x000000010f0b588c server_start + 798
1465495255.425483 [tmate] I 13  tmate                               0x000000010f08e2c1 client_connect + 622
1465495255.425488 [tmate] I 14  tmate                               0x000000010f08e4ac client_main + 168
1465495255.425494 [tmate] I 15  tmate                               0x000000010f0c040b main + 1685
1465495255.425499 [tmate] I 16  libdyld.dylib                       0x00007fff9b8ce5ad start + 1
1465495255.425504 [tmate] I 17  ???                                 0x0000000000000002 0x0 + 2
1465495255.425509 fatal: [tmate] CRASHED

Issue also filed at tmate: tmate-io/tmate#87

This might be related: the similar tmux-fingers plugin also doesn't work but prints an error message instead of crashing:

swap pane on different window is not supported with tmate

tmate says they fixed the issue, so I'm closing this one.