Open mcginty opened 2 years ago
Great, probably another Nvidia driver issue.
0x00007fffe2c625c7 in ?? () from /usr/lib/dri/nvidia_drv_video.so
That's your issue and I don't see how mpvpaper is involved here besides using libmpv to render.
Yep... I regret ever getting an NVIDIA card. Anyway, just thought I'd post it since it's happening, knowing it's unlikely to be caused by mpvpaper's code.
Yep... I regret ever getting an NVIDIA card. Anyway, just thought I'd post it since it's happening, knowing it's unlikely to be caused by mpvpaper's code.
What drivers are you using?
AMD cards are not absolutely better, as they have glitches or have crashes on some games (see here) and some DL frameworks do not run on ROCm
Same problem here, I made a minimal libmpv program to verify it was working fine (mpv
works perfectly).
This minimal program also works fine (archlinux + nvidia), maybe we can narrow down the bogus part by either making this simple example closer to mpvpaper or making things optional in mpvpaper ?
#include <stdio.h>
#include <mpv/client.h>
int main(int argc, char *argv[]) {
// Check if a file path is provided as a command-line argument
if (argc < 2) {
fprintf(stderr, "Usage: %s <video_file>\n", argv[0]);
return 1;
}
// Initialize libmpv
mpv_handle *mpv = mpv_create();
if (!mpv) {
fprintf(stderr, "Failed to initialize libmpv.\n");
return 1;
}
// Initialize the player
if (mpv_initialize(mpv) != MPV_ERROR_SUCCESS) {
fprintf(stderr, "Failed to initialize the player.\n");
mpv_terminate_destroy(mpv);
return 1;
}
// Load the video file
if (mpv_command(mpv, (const char *[]){"loadfile", argv[1], NULL}) != MPV_ERROR_SUCCESS) {
fprintf(stderr, "Failed to load the video file.\n");
mpv_terminate_destroy(mpv);
return 1;
}
// Enter the main loop (this loop will keep the player running)
mpv_event *event;
while (1) {
event = mpv_wait_event(mpv, -1);
if (event->event_id == MPV_EVENT_NONE)
break;
}
// Clean up and destroy the player
mpv_terminate_destroy(mpv);
return 0;
}
I'm on Arch Linux (kernel 6.0.10, Wayland 1.21.0) with an NVIDIA GPU running driver 525.60.11. Not sure if this is a mpvpaper-related issue, or if it's only MPV/libva/NVIDIA. The weird part is that the regular
mpv
command runs and plays videos just fine...GDB output: