Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
3.39k stars 96 forks source link

[BUG] Crash when opening completion menu when zsh-autocomplete is also enabled #482

Open robbins opened 3 weeks ago

robbins commented 3 weeks ago

Describe the bug

The completion menu crashes with free() invalid pointer or munmap_chunk(): invalid pointer when zsh-autocomplete is also installed. Not sure if I should post this here or as an issue in zsh-autocomplete.

I can make sure:

To Reproduce

Steps to reproduce the behavior:

  1. Put the contents of the minimal RC into a file named testrc
  2. Type 'zsh -df'
  3. Type 'source testrc'
  4. Type 'ls -'
  5. Press Tab
  6. Crash

Expected behavior

The completion menu should show up

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

Minimal zshrc

If applicable, add a minimal zshrc to help us analyze.

autoload -U compinit && compinit
source /nix/store/yvyb79p70gq77afpzk5f7p3sap05h75q-zsh-autocomplete-24.09.04/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source /nix/store/xa0a62nkhaibza8plgs7xs0da83wqmma-zsh-fzf-tab-1.1.2/share/fzf-tab/fzf-tab.plugin.zsh

Log

If applicable, use C-x . to trigger completion and provide the log.

If there are only three lines in your log, please make sure your fzf-tab is loaded with the correct order (see the checklist above).