prompt-toolkit / pymux

A terminal multiplexer (like tmux) in Python
BSD 3-Clause "New" or "Revised" License
1.45k stars 82 forks source link

UnicodeDecodeError in vim #39

Open dzosz opened 8 years ago

dzosz commented 8 years ago
$ pymux
$ vim newfile
$ ctrl+b
$ shift+% (vertical split)
$ mouse click on second pane, then click back again
$ crash

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 4: invalid start byte
Crash occurs on mate-terminal with both pyvim and vim, only when using mouse click to switch the panes. Default configuration.
screenshot Sorry, pymux did not create a crash file in /tmp, nor in /var/tmp. The only files that were left there were open sockets pymux.sock.<user>.1

jonathanslenders commented 8 years ago

Thanks a lot for reporting this bug! I appreciate it. This should be a bug in the client part, that doesn't dump a stack, but this is already very helpful like this. I will investigate next week. It shouldn't be hard to solve. Jonathan

JohnLunzer commented 8 years ago

I have run into this too. My traceback looks exactly the same.

jonathanslenders commented 8 years ago

I think this was fixed in the following commit from three days ago: https://github.com/jonathanslenders/pymux/commit/0eafae809d29e5976f39533358b2a32cdaa285d8 (Not sure, but I'll verify again, and hopefully push a new release to pypi.)

Thanks everyone for reporting the bug!