hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.35k stars 154 forks source link

Crashing on interacting with MP4s #1509

Open Wyrrrd opened 8 months ago

Wyrrrd commented 8 months ago

Hydrus version

v558

Qt major version

Qt 6

Operating system

Linux (specify distro and version in comments)

Install method

Third party (AUR, Docker, Chocolatey, etc. Specify in comments)

Install and OS comments

Docker install on Debian 12

Bug description and reproduction

  1. Right click affected video/Switch to affected video in duplicate filter
  2. Hydrus crashes (then restarts through Docker)

Sometimes the formerly affected video file is fine after that, but most of the times it stays affected.

This very much feels like a resource or cache problem. I rebuilt the container from scratch (only keeping the db) and increased RAM and CPU priority. It is not using up the resources, but the issue persists.

Log output

v558, 2024/01/13 15:15:21: [MPV error] vo/gpu/drm: Can't open TTY for VT control: No such device or address
v558, 2024/01/13 15:15:21: [MPV error] vo/gpu/drm: Listing DRM devices with drmGetDevices failed! (No such file or directory)
v558, 2024/01/13 15:15:21: [MPV error] vo/gpu/drm: Failed to find a usable DRM primary node!
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libEGL warning: MESA-LOADER: failed to open zink: Error loading shared library /usr/lib/xorg/modules/dri/zink_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri, suffix _dri)
libEGL warning: MESA-LOADER: failed to open swrast: Error loading shared library /usr/lib/xorg/modules/dri/swrast_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri, suffix _dri)
v558, 2024/01/13 15:15:22: [MPV error] vo/gpu-next/drm: Can't open TTY for VT control: No such device or address
v558, 2024/01/13 15:15:22: [MPV error] vo/gpu-next/drm: Listing DRM devices with drmGetDevices failed! (No such file or directory)
v558, 2024/01/13 15:15:22: [MPV error] vo/gpu-next/drm: Failed to find a usable DRM primary node!
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
v558, 2024/01/13 15:15:22: [MPV error] vo/xv: No Xvideo support found.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
v558, 2024/01/13 15:15:22: [MPV error] vo/vaapi/vaapi: libva: vaGetDriverNames() failed with unknown libva error
v558, 2024/01/13 15:15:22: [MPV error] vo/vaapi/vaapi: Failed to initialize VAAPI: unknown libva error
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libEGL warning: MESA-LOADER: failed to open zink: Error loading shared library /usr/lib/xorg/modules/dri/zink_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri, suffix _dri)
libEGL warning: MESA-LOADER: failed to open swrast: Error loading shared library /usr/lib/xorg/modules/dri/swrast_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri, suffix _dri)
v558, 2024/01/13 15:15:27: [MPV error] vo/gpu/drm: Can't open TTY for VT control: No such device or address
v558, 2024/01/13 15:15:27: [MPV error] vo/gpu/drm: Listing DRM devices with drmGetDevices failed! (No such file or directory)
v558, 2024/01/13 15:15:27: [MPV error] vo/gpu/drm: Failed to find a usable DRM primary node!
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libEGL warning: MESA-LOADER: failed to open zink: Error loading shared library /usr/lib/xorg/modules/dri/zink_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri, suffix _dri)
libEGL warning: MESA-LOADER: failed to open swrast: Error loading shared library /usr/lib/xorg/modules/dri/swrast_dri.so: No such file or directory (search paths /usr/lib/xorg/modules/dri, suffix _dri)
v558, 2024/01/13 15:15:27: [MPV error] vo/gpu-next/drm: Can't open TTY for VT control: No such device or address
v558, 2024/01/13 15:15:27: [MPV error] vo/gpu-next/drm: Listing DRM devices with drmGetDevices failed! (No such file or directory)
v558, 2024/01/13 15:15:27: [MPV error] vo/gpu-next/drm: Failed to find a usable DRM primary node!
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
v558, 2024/01/13 15:15:27: [MPV error] vo/xv: No Xvideo support found.
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
13/01/2024 15:15:28 active keyboard: turning X autorepeat off.
v558, 2024/01/13 15:15:28: [MPV error] vo/vaapi/vaapi: libva: vaGetDriverNames() failed with unknown libva error
v558, 2024/01/13 15:15:28: [MPV error] vo/vaapi/vaapi: Failed to initialize VAAPI: unknown libva error
[xcb] Unknown sequence number while processing queue
[xcb] You called XInitThreads, this is not your fault
[xcb] Aborting, sorry about that.
Assertion failed: !xcb_xlib_threads_sequence_lost (xcb_io.c: poll_for_event: 278)
2024-01-13 15:15:29,630 WARN exited: hydrus (terminated by SIGABRT; not expected)
2024-01-13 15:15:29,631 INFO reaped unknown pid 97583 (exit status 255)
L1ttl3F00t commented 4 days ago

Had a similar issue running Hydrus container in unRAID. Crashed every time I had a video open in media player and tried to either 1-close video or 2-go to prev/next in media player

Solution for me was to change the media playback settings for videos and animations to use native hydrus viewer instead of mpv:

image (1)

I suspect this setting carried over since I copied my db (which includes settings) from a W11 desktop install.

floogulinc commented 2 days ago

Yeah pretty sure MPV is just not supported in the docker container as it's not intended to be used directly for general browsing.