Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

pymux ui freezed #74

Open
wonderbeyond opened this issue Sep 7, 2018 · 1 comment
Open

pymux ui freezed #74

wonderbeyond opened this issue Sep 7, 2018 · 1 comment

Comments

@wonderbeyond
Copy link

I do some keystrokes I cant remember, then pymux stops responding.

After a minute, I killed the process. I can see a crash log:

$ cat /tmp/pymux.crash-fnlkdd0i  
Traceback (most recent call last):
  File "/home/wonder/.local/lib/python3.5/site-packages/pymux/main.py", line 538, in run_server
    PipeInput(), DummyCallbacks())
  File "/home/wonder/.local/lib/python3.5/site-packages/prompt_toolkit/eventloop/posix.py", line 159, in run
    t()
  File "/home/wonder/.local/lib/python3.5/site-packages/pymux/process.py", line 291, in _read
    process()
  File "/home/wonder/.local/lib/python3.5/site-packages/pymux/process.py", line 285, in process
    self.stream.feed(d)
  File "/home/wonder/.local/lib/python3.5/site-packages/pymux/stream.py", line 99, in feed
    taking_plain_text = send(chars[i])
  File "/home/wonder/.local/lib/python3.5/site-packages/pymux/stream.py", line 183, in _parser_generator
    basic_dispatch[char]()
  File "/home/wonder/.local/lib/python3.5/site-packages/pymux/screen.py", line 725, in bell
    self.bell_func()
  File "/home/wonder/.local/lib/python3.5/site-packages/pymux/main.py", line 241, in bell
    for c in self.clis.values():
RuntimeError: dictionary changed size during iteration
@espoelstra
Copy link

In some shells Ctrl+s and Ctrl+q pause and resume input and output so if the shell gets the keystroke instead of pymux it will stop sending anything to the foreground process and this may cause the failure you are seeing.

I used to run into this frequently while working in vim because switching between files in splits uses Ctrl+w which is right between Ctrl+s and Ctrl+q.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants