Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json IPC: Sending audio_add too soon after start-file event segfaults mpv #1984

Closed
c-14 opened this issue May 25, 2015 · 1 comment
Closed

Comments

@c-14
Copy link
Contributor

c-14 commented May 25, 2015

As of commit f9f2e1c sending an audio_add command via json ipc to mpv directly after receiving the start-file event from mpv causes mpv to segfault (before this commit mpv froze and didn't play the files). Adding a delay of about 0.5 seconds between receiving the start-file event and sending the audio_add command causes mpv to respond correctly and the files to play (both before and after said commit).
I have a minimal python script that can be used to reproduce the issue as well as a core from the segfault.
script: http://dl.c-14.de/mpv/segtest.py
core: http://dl.c-14.de/mpv/mpv-git-core-switch-tracks

Segfaults occur both when using local and when using remote files, the script uses remote files to make it easier to reproduce on other computers.

@ghost ghost closed this as completed in 88249ba May 26, 2015
@ghost
Copy link

ghost commented May 26, 2015

Thanks for the elaborate test case.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant