Giter Site home page Giter Site logo

Comments (4)

duxks2 avatar duxks2 commented on May 25, 2024

This seems to also cause any use of the --loop-file=N option to segfault (--loop-file=0 and inf keep working), e.g. mpv --loop-file=2 /dev/null:

Thread 11 "mpv/SO plugin (" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd2ffd700 (LWP 75101)]
0x00007fffe82b7616 in event_handler () from /home/mod/.config/mpv/scripts/mpris.so
(gdb) bt
#0  0x00007fffe82b7616 in event_handler () at /home/mod/.config/mpv/scripts/mpris.so
#1  0x00007ffff52d726f in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff52d91b1 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff52da0c3 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#4  0x00007fffe82b8380 in mpv_open_cplugin () at /home/mod/.config/mpv/scripts/mpris.so
#5  0x00005555556204c3 in  ()
#6  0x000055555562036b in  ()
#7  0x00007ffff65b146f in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007ffff54bc3d3 in clone () at /usr/lib/libc.so.6

from mpv-mpris.

hoyon avatar hoyon commented on May 25, 2024

Thanks for the bug report! Thankfully the issue wasn't as bad as I thought and was just simply a case of properly cleaning up the glib callbacks and dbus objects before shutdown. I hadn't considered the possibility of reinitialising mpv so didn't feel it necessary to properly clean up everything.

Let me know if it works properly with your application.

from mpv-mpris.

hoyon avatar hoyon commented on May 25, 2024

(@duxks2 I can't seem to repro your issue. Running mpv --loop-file=2 /dev/null gives an mpv error and running mpv --loop-file=2 /some/file.mp3 seems to work. Feel free to create another issue if needed.)

from mpv-mpris.

Aanok avatar Aanok commented on May 25, 2024

Indeed, everything seems to be working fine now. Thank you for the quick fix! :)

from mpv-mpris.

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.