manateelazycat / holo-layer

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

Cannot get any animations to run on Emacs 28+ #42

Closed AsherDMckoy closed 1 week ago

AsherDMckoy commented 2 weeks ago

I start emacs with emacs -Q

(add-to-list 'load-path "~/custom-packs/holo-layer") (require 'holo-layer) (holo-layer-enable) (setq holo-layer-enable-cursor-animation t) (setq holo-layer-enable-type-animation t) (setq holo-layer-type-animation-style "lighting")

No matter what environment. I've tested on Arch Linux Hyprland, Windows 11, WSL2 Ubuntu/Arch. Holo-layer loads (I can also see the overlay on hyprland) but no animation works I cannot get these options to load. Perhaps I am doing something wrong?

manateelazycat commented 2 weeks ago

https://github.com/manateelazycat/holo-layer#feedback-issues

AsherDMckoy commented 2 weeks ago

Sorry I overlooked that part of the readme. This is the result of the holo-layer window when running on Arch Linux on Hyprland

Xlib.xauth: warning, no xauthority details available
requestActivate() called for  QWidgetWindow(0x5969aa3e5160, name="HoloWindowClassWindow") which has Qt::WindowDoesNotAcceptFocus set.
Xlib.xauth: warning, no xauthority details available
Xlib.xauth: warning, no xauthority details available

My config Details:

Emacs version : Emacs 29.3 native compilation wayland version. However as stated before errors are on windows, native compilation, regular version on ubuntu and windows 28.2 on windows
Linux Distro: Arch Linux
Python Packages: Installed via pacman and yay
DE: Hyprland

UPDATE this is the full holo-layer debug window when process is killed and restarted from Emacs -Q instance, still on arch linux hyprland config


This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Detaching after vfork from child process 81119]
Xlib.xauth: warning, no xauthority details available
qt.core.plugin.factoryloader: checking directory path "/usr/lib/qt6/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqeglfs.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archlevel": 1,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqlinuxfb.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archlevel": 1,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqminimal.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqminimalegl.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqoffscreen.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 1,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqvkkhrdisplay.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vkkhrdisplay"
        ]
    },
    "archlevel": 1,
    "className": "QVkKhrDisplayIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqvnc.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archlevel": 1,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqxcb.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 1,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqwayland-egl.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platforms/libqwayland-generic.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland")
qt.core.plugin.factoryloader: checking directory path "/usr/bin/platforms" ...
qt.core.library: "/usr/lib/qt6/plugins/platforms/libqwayland-generic.so" loaded library
[New Thread 0x7fffec58f6c0 (LWP 81120)]
qt.core.plugin.factoryloader: checking directory path "/usr/lib/qt6/plugins/wayland-shell-integration" ...
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-shell-integration/libfullscreen-shell-v1.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libfullscreen-shell-v1.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "fullscreen-shell-v1"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandFullScreenShellV1IntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("fullscreen-shell-v1")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-shell-integration/libivi-shell.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libivi-shell.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "ivi-shell"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIviShellIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("ivi-shell")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-shell-integration/libqt-shell.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libqt-shell.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "qt-shell"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandQtShellIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("qt-shell")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-shell-integration/libwl-shell-plugin.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libwl-shell-plugin.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wl-shell"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandWlShellIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wl-shell")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-shell-integration/libxdg-shell.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-shell-integration/libxdg-shell.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandShellIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xdg-shell"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandXdgShellIntegrationPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xdg-shell")
qt.core.plugin.factoryloader: checking directory path "/usr/bin/wayland-shell-integration" ...
qt.core.library: "/usr/lib/qt6/plugins/wayland-shell-integration/libxdg-shell.so" loaded library
qt.core.plugin.factoryloader: checking directory path "/usr/lib/qt6/plugins/platformthemes" ...
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platformthemes/libqgtk3.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "archlevel": 1,
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("gtk3")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/platformthemes/libqxdgdesktopportal.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "xdgdesktopportal",
            "flatpak",
            "snap"
        ]
    },
    "archlevel": 1,
    "className": "QXdgDesktopPortalThemePlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xdgdesktopportal", "flatpak", "snap")
qt.core.plugin.factoryloader: checking directory path "/usr/bin/platformthemes" ...
[New Thread 0x7fffebb8f6c0 (LWP 81121)]
[New Thread 0x7fffeb18f6c0 (LWP 81122)]
qt.core.plugin.factoryloader: checking directory path "/usr/lib/qt6/plugins/styles" ...
qt.core.plugin.factoryloader: checking directory path "/usr/bin/styles" ...
[New Thread 0x7fffea78f6c0 (LWP 81123)]
[New Thread 0x7fffe9d8f6c0 (LWP 81124)]
[New Thread 0x7fffe938f6c0 (LWP 81125)]
[Thread 0x7fffe938f6c0 (LWP 81125) exited]
[New Thread 0x7fffe938f6c0 (LWP 81126)]
[Thread 0x7fffe938f6c0 (LWP 81126) exited]
[New Thread 0x7fffe938f6c0 (LWP 81127)]
[Thread 0x7fffe938f6c0 (LWP 81127) exited]
[New Thread 0x7fffe938f6c0 (LWP 81128)]
[Thread 0x7fffe938f6c0 (LWP 81128) exited]
[New Thread 0x7fffe938f6c0 (LWP 81129)]
[Thread 0x7fffe938f6c0 (LWP 81129) exited]
[New Thread 0x7fffe938f6c0 (LWP 81130)]
[Thread 0x7fffe938f6c0 (LWP 81130) exited]
[New Thread 0x7fffe938f6c0 (LWP 81131)]
[Thread 0x7fffe938f6c0 (LWP 81131) exited]
qt.core.plugin.factoryloader: checking directory path "/usr/lib/qt6/plugins/accessible" ...
qt.core.plugin.factoryloader: checking directory path "/usr/bin/accessible" ...
qt.core.plugin.factoryloader: checking directory path "/usr/lib/qt6/plugins/wayland-graphics-integration-client" ...
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-graphics-integration-client/libdmabuf-server.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-graphics-integration-client/libdmabuf-server.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "dmabuf-server"
        ]
    },
    "archlevel": 1,
    "className": "DmaBufServerBufferPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList()
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-graphics-integration-client/libdrm-egl-server.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-graphics-integration-client/libdrm-egl-server.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "drm-egl-server"
        ]
    },
    "archlevel": 1,
    "className": "DrmEglServerBufferPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList()
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandClientBufferIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglClientBufferPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl")
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-graphics-integration-client/libshm-emulation-server.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-graphics-integration-client/libshm-emulation-server.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "shm-emulation-server"
        ]
    },
    "archlevel": 1,
    "className": "ShmServerBufferPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList()
qt.core.plugin.factoryloader: looking at "/usr/lib/qt6/plugins/wayland-graphics-integration-client/libvulkan-server.so"
qt.core.plugin.loader: Found metadata in lib /usr/lib/qt6/plugins/wayland-graphics-integration-client/libvulkan-server.so, metadata=
{
    "IID": "org.qt-project.Qt.WaylandClient.QWaylandServerBufferIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vulkan-server"
        ]
    },
    "archlevel": 1,
    "className": "VulkanServerBufferPlugin",
    "debug": false,
    "version": 395008
}

qt.core.plugin.factoryloader: Got keys from plugin meta data QList()
qt.core.plugin.factoryloader: checking directory path "/usr/bin/wayland-graphics-integration-client" ...
qt.core.library: "/usr/lib/qt6/plugins/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so" loaded library
requestActivate() called for  QWidgetWindow(0x555555dadcd0, name="HoloWindowClassWindow")  which has Qt::WindowDoesNotAcceptFocus set.
[New Thread 0x7fffe938f6c0 (LWP 81133)]
[New Thread 0x7fffe198f6c0 (LWP 81134)]
[New Thread 0x7fffe0f8f6c0 (LWP 81135)]
qt.core.plugin.factoryloader: checking directory path "/usr/lib/qt6/plugins/accessiblebridge" ...
Xlib.xauth: warning, no xauthority details available
qt.core.plugin.factoryloader: checking directory path "/usr/bin/accessiblebridge" ...
Xlib.xauth: warning, no xauthority details available
[New Thread 0x7fffd7f8f6c0 (LWP 81136)]
[New Thread 0x7fffd758f6c0 (LWP 81137)]
[Thread 0x7fffd758f6c0 (LWP 81137) exited]
[New Thread 0x7fffd758f6c0 (LWP 81138)]
[Thread 0x7fffd758f6c0 (LWP 81138) exited]
The cached device pixel ratio value was stale on window update.  Please file a QTBUG which explains how to reproduce.
[New Thread 0x7fffd758f6c0 (LWP 81151)]
[Thread 0x7fffd758f6c0 (LWP 81151) exited]
manateelazycat commented 2 weeks ago

Log and config looks good.

You can refer to my config of holo-layer https://github.com/manateelazycat/lazycat-emacs/blob/f9b72c26cd89db6c9fb4a29340c40558eb20009a/site-lisp/config/init-holo-layer.el#L87

I haven't idea now.

AsherDMckoy commented 2 weeks ago

I've tried debugging this time with fresh install of holo-layer for Emacs 29.3 on Arch Linux Hyprland. I do not have previous error copied but it was unresolved module PyQt6. So I reinstalled all pyqt6 packages using pacman and now I receive this debug message on *holo-layer* window

Process *holo-layer* exited abnormally with code 1
Traceback (most recent call last):
  File "/home/adalovelace/.config/emacs/custom-themes/holo-layer/holo_layer.py", line 41, in <module>
    from pynput.keyboard import Listener as kbListener
  File "/usr/lib/python3.12/site-packages/pynput/__init__.py", line 40, in <module>
    from . import keyboard
  File "/usr/lib/python3.12/site-packages/pynput/keyboard/__init__.py", line 31, in <module>
    backend = backend(__name__)
              ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pynput/_util/__init__.py", line 77, in backend
    raise ImportError('this platform is not supported: {}'.format(
ImportError: this platform is not supported: ('failed to acquire X connection: Can\'t connect to display ":1": [Errno 111] Connection refused', DisplayConnectionError(':1', '[Errno 111] Connection refused'))

Try one of the following resolutions:

 * Please make sure that you have an X server running, and that the DISPLAY environment variable is set correctly
Traceback (most recent call last):
  File "/home/adalovelace/.config/emacs/custom-themes/holo-layer/holo_layer.py", line 41, in <module>
    from pynput.keyboard import Listener as kbListener
  File "/usr/lib/python3.12/site-packages/pynput/__init__.py", line 40, in <module>
    from . import keyboard
  File "/usr/lib/python3.12/site-packages/pynput/keyboard/__init__.py", line 31, in <module>
    backend = backend(__name__)
              ^^^^^^^^^^^^^^^^^

I tried to install xwayland to resolve and that did not work either I still get back this same error in return. This is the same error when running emacs -Q as well.

UPDATE: I managed to fix with a reinstall of xwayland and rebooting. I am back to normal debug message. However Animations are still not working. I will try running again on X-Org instead

manateelazycat commented 1 week ago

holo-layer only can running in X11, not support Wayland