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

E967: text property info corrupted on tab #4101

Open
12 tasks done
laburnumT opened this issue Dec 19, 2022 · 2 comments
Open
12 tasks done

E967: text property info corrupted on tab #4101

laburnumT opened this issue Dec 19, 2022 · 2 comments

Comments

@laburnumT
Copy link

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:

  • I have read and understood YCM's CONTRIBUTING document.
  • I have read and understood YCM's CODE_OF_CONDUCT document.
  • I have read and understood YCM's README, especially the
    Frequently Asked Questions section.
  • I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. (Example Google
    search.
    )
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included the output of :YcmDebugInfo.
  • If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, using vim -Nu /path/to/YCM/vimrc_ycm_minimal, including what I
    expected to happen and what actually happened.
  • If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt gift of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

  • Note:

This bug only occurs when enabling a second plugin (vim-sleuth). I was unsure
of whether to file the bug here or with the other plugin. I decided on here
because the error output referenced ycm, but let me know if it should be filed
elsewhere.

  • What did you do?
  1. vim -Nu /path/to/YCM/ycm_vimrc_minimal test.c
  2. Type a function like:
void f()
{
}
  1. Go to closing curly bracket of function.
  2. O<ESC>i<TAB>
  3. Type a character.

I added set foldmethod=indent and loaded the vim-sleuth plugin

" windows default encoding is not supported
set encoding=utf-8

" If you using neovim and python isn't loading, copy your python setup from your
" vimrc here:
"
" let g:python3_host_prog = '/path/to/python3/with/neovim/module'
"
" But remember that neovim is not officially supported, so please reproduce in
" Vim.

" Enable debugging
let g:ycm_keep_logfiles = 1
let g:ycm_log_level = 'debug'

" If the base settings don't repro, paste your existing config for YCM only,
" here:
" let g:ycm_....

set foldmethod=indent

" Load YCM (only)
let &rtp .= ',~/.vim/plugged/youcompleteme,~/.vim/plugged/vim-sleuth'
filetype plugin indent on
syn on
  • What did you expect to happen?

Nothing.

  • What actually happened?
E967: text property info corrupted
E967: text property info corrupted
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
Traceback (most recent call last):
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "<string>", line 1, in <module>
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/youcompleteme.py", line 549, in OnPeri
odicTick
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    not self._message_poll_requests[ filetype ].Poll( self ) ):
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/client/messages_request.py", line 65, 
in Poll
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    poll_again = _HandlePollResponse( response, diagnostics_handler )
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/client/messages_request.py", line 81, 
in _HandlePollResponse
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    diagnostics_handler.UpdateWithNewDiagnosticsForFile(
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/youcompleteme.py", line 509, in Update
WithNewDiagnosticsForFile
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    self._buffers[ bufnr ].UpdateWithNewDiagnostics( diagnostics, True )
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/buffer.py", line 89, in UpdateWithNewD
iagnostics
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    self._diag_interface.UpdateWithNewDiagnostics(
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/diagnostic_interface.py", line 76, in 
UpdateWithNewDiagnostics
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    self.RefreshDiagnosticsUI( open_on_edit )
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/diagnostic_interface.py", line 81, in 
RefreshDiagnosticsUI
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    self._EchoDiagnostic()
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/diagnostic_interface.py", line 105, in
 _EchoDiagnostic
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    self._EchoDiagnosticForLine( line )
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/diagnostic_interface.py", line 120, in
 _EchoDiagnosticForLine
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    self._EchoDiagnosticText( line_num, first_diag, text )
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/diagnostic_interface.py", line 168, in
 _EchoDiagnosticText
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    vimsupport.PostVimMessage( text, warning = False, truncate = True )
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
  File "/home/user/.vim/plugged/youcompleteme/python/ycm/vimsupport.py", line 740, in PostVimMe
ssage
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
    vim.command( 'redraw' )
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
vim.error: Vim(redraw):E967: text property info corrupted
Error detected while processing function <SNR>104_ReceiveMessages:
line    3:
E858: Eval did not return a valid python object
E967: text property info corrupted
E967: text property info corrupted

Diagnostic data

Output of vim --version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 19 2022 04:59:57)
Included patches: 1-2269, 3612, 3625, 3669, 3741
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version with GTK3 GUI.  Features included (+) or not (-):
+acl               -farsi             -mouse_sysmouse    -tag_any_white
+arabic            +file_in_path      +mouse_urxvt       +tcl
+autocmd           +find_in_path      +mouse_xterm       +termguicolors
+autochdir         +float             +multi_byte        +terminal
-autoservername    +folding           +multi_lang        +terminfo
+balloon_eval      -footer            -mzscheme          +termresponse
+balloon_eval_term +fork()            +netbeans_intg     +textobjects
+browse            +gettext           +num64             +textprop
++builtin_terms    -hangul_input      +packages          +timers
+byte_offset       +iconv             +path_extra        +title
+channel           +insert_expand     +perl              +toolbar
+cindent           +job               +persistent_undo   +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           +python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          -ruby              +wildmenu
+cursorbind        +lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con_gui    +mksession         +smartindent       +X11
+diff              +modify_fname      +sound             -xfontset
+digraphs          +mouse             +spell             +xim
+dnd               +mouseshape        +startuptime       +xpm
-ebcdic            +mouse_dec         +statusline        +xsmp_interact
+emacs_tags        +mouse_gpm         -sun_workshop      +xterm_clipboard
+eval              -mouse_jsbterm     +syntax            -xterm_save
+ex_extra          +mouse_netterm     +tag_binary        
+extra_search      +mouse_sgr         -tag_old_static    
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-tiO2Sp/vim-8.1.2269=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -Wl,-E  -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lcanberra -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.30/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lm

Output of YcmDebugInfo

Printing YouCompleteMe debug information...
-- Resolve completions: Up front
-- Client logfile: /tmp/ycm_2m78m7mq.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.8.10
-- Server has Clang support compiled in: True
-- Clang version: clang version 15.0.1 (https://github.com/ycm-core/llvm 708056a3d8259ce1d9fc0
f15676d13b53cc23835)
-- No extra configuration file found
-- C-family completer debug information:
--   Clangd running
--   Clangd process ID: 135536
--   Clangd executable: ['/home/flo/.vim/plugged/youcompleteme/third_party/ycmd/third_party/cl
angd/output/bin/clangd', '-header-insertion-decorators=0', '-resource-dir=/home/flo/.vim/plugg
ed/youcompleteme/third_party/ycmd/third_party/clang/lib/clang/15.0.1', '-limit-results=500']
--   Clangd logfiles:
--     /tmp/clangd_stderr5b128jiu.log
--   Clangd Server State: Initialized
--   Clangd Project Directory: /home/flo/Documents/University/PassedCourses/Y2/Ib/signalsAndSy
stems/lab2
--   Clangd Settings: {}
--   Clangd Compilation Command: False
-- Server running at: http://127.0.0.1:56147
-- Server process ID: 135514
-- Server logfiles:
--   /tmp/ycmd_56147_stdout__zb4528z.log
--   /tmp/ycmd_56147_stderr_htaqy06y.log
-- Semantic highlighting supported: True
-- Virtual text supported: False
-- Popup windows supported: True

Output of YcmDiags

No warnings or errors detected.

Output of git rev-parse HEAD in YouCompleteMe installation directory

88efc6f6035e4c656e8791f3c3a8a4328a1634dc

Contents of YCM, ycmd and completion engine logfiles

Link to logs: https://gist.github.com/laburnumT/c193f0010dd01867fd4f4bfa3f5f12c3

OS version, distribution, etc.

Linux mint 20.2

Linux 5.15.0-56-generic #62~20.04.1-Ubuntu SMP Tue Nov 22 21:24:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Output of build/install commands

Not a build/install issue.

@puremourning
Copy link
Member

Oh dear! Thanks for the report. I will try and repro.

@bstaletic
Copy link
Collaborator

I have tried to repro this with latest YCM and vim-sleuth and no error happened.
Perhaps this was a vim bug? I am no version 9.0.1777

@laburnumT Could you test again with latest vim/YCM/vim-sleuth?

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

3 participants