Coder Social home page Coder Social logo

SIGFPE when running about mpvpaper HOT 4 OPEN

ghostnan avatar ghostnan commented on July 24, 2024
SIGFPE when running

from mpvpaper.

Comments (4)

GhostNaN avatar GhostNaN commented on July 24, 2024

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.

from mpvpaper.

mcginty avatar mcginty commented on July 24, 2024

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.

from mpvpaper.

raffaem avatar raffaem commented on July 24, 2024

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

from mpvpaper.

fdev31 avatar fdev31 commented on July 24, 2024

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;
}

from mpvpaper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.