manateelazycat / holo-layer

HoloLayer is a multimedia layer plugin designed specifically for Emacs
GNU General Public License v3.0
123 stars 18 forks source link

Bug? There is a black shadow cursor followed by animation cursor like a ghost. #11

Closed eval-exec closed 1 year ago

eval-exec commented 1 year ago

Hello, I'm running KDE Plasma(X11) on NixOS.

I create the environment by a default.nix file:

with import <nixpkgs> { };
mkShell {

  buildInputs = [ qt6.qtbase pkgconfig ];
  LD_LIBRARY_PATH = "${stdenv.cc.cc.lib}/lib:${
      lib.makeLibraryPath [ glib libGL ]
    }:${fontconfig.lib}/lib:${xorg.libX11}/lib:${libxkbcommon}/lib:${freetype}/lib:${dbus.lib}/lib:${xcb-util-cursor}/lib:${xorg.xcbutilwm}/lib:${xorg.xcbutilimage}/lib:${xorg.xcbutilkeysyms}/lib:${xorg.libxcb}/lib:${xorg.xcbutilrenderutil}/lib";

  # QT_QPA_PLATFORM_PLUGIN_PATH = "${qt6.qtbase}/lib/qt-6/plugins/platforms";
  QT_DEBUG_PLUGINS = 1;

}

The corresponding holo-layer config on emacs is

(use-package holo-layer
  :ensure nil
  :straight (:host github :repo "manateelazycat/holo-layer" :files ("*.el" "*.py" "plugin" "resources"))
  :config
  (holo-layer-enable)
  (setq holo-layer-python-command "/home/exec/.emacs.d/straight/repos/holo-layer/.venv/bin/python3"
        holo-layer-enable-cursor-animation t
        holo-layer-enable-debug t
        holo-layer-enable-log t)
  )

It's weried, there always a black shadow followed by the animation cursor, like a ghost. Why?

https://github.com/manateelazycat/holo-layer/assets/46400566/19270e86-cb31-47c6-9ec8-36b199bf9694

The *holo-layer* buffer's content is: holo.log

Some infos may help:

nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.10, NixOS, 23.11 (Tapir), 23.11.20230814.6e28791`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - channels(exec): `""`
 - channels(root): `"home-manager, nixos, nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Thanks for your work.

manateelazycat commented 1 year ago

你把Emacs全屏看看? 同时是你电脑本身就慢, 还是gif录的慢, 还是你显卡驱动有问题?

eval-exec commented 1 year ago

Side node: There is a red horizon line cross my screen: image

After I execute holo-layer-kill-process, the red horizon line disappeared. After I execute holo-layer-enable, it will be appeared.

And the red line appears on my screen even when I minimized the emacs window.

eval-exec commented 1 year ago

The black shadow cursor and red line disappeared after I fullscreen the Emacs window. Thank you.