Some kind of critical error when changing layout VIM

Hey there. I had this strange issue for a while, and couldn’t find any info on how to solve it. I have 2 keyboard layouts: English and Russian, when I change my language using Super + Space, something strange happens and this text pops up on top (I mean really on top, it’s not being written to the file i’m currently working with, but it appears on top of it). How can I possibly fix this? Maybe I have some troubles with locales?

the text says:
(evince:3629): GLib-CRITICAL **: 18:15:41.830: g_atomic_ref_count_dec: assertion ‘old_value > 0’ failed