Open FichteFoll opened 3 years ago
I forgot to mention I was on Arch Linux.
Anyway, browsing my notifications, I spotted https://github.com/z411/trackma/pull/513, which may be related to my problem. I'll verify that later when I find the time.
Can reproduce. As an aside, the Qt interface hard locks up when trying to play an episode. Seems severe. Will look into this as well.
Gtk frontend is working, command line and curses are working too... launched player isn't being forked off in qt interface... I'm using my local branch.
After searching about QThread
and os.fork
I found out that they doesn't work well together. I'm working on it.
To fix this we need help in issue #508 to reproduce a bug. Anyone willing to test the prevent-zombie
branch to see if closing Trackma also closes any player started by Trackma is welcome.
I just tested prevent-zombie
and play
works and the player is closed when I ctrl-c in trackma but not when I ctrl+d.
I was able to determine the cause by my player setting being set to simply mpv
where the spawn code uses os.execv
, which does not perform a PATH lookup. Changing my setting to /usr/bin/mpv
makes the player process behave as expected in that it outlives trackma when it is closed but also does not come up in zps -l
when killed before mpv. Monitoring the process tree with htop
also reveals that the player process is parented to the init process.
I suggest to
shutil.where
/dev/null
is necessary because at least mpv doesn't pollute the output of my trackma-cli when I remove the code for that, so that failures of os.exec*
can be reported and debugged
Some time ago (unfortunately I don't remember when exactly), playing a file stopped working without me modifying the config. I suspect it was an update, but I want to confirm the issue first.
Using
trackma -d
, the following is printed on the terminal, but nothing happens.It also does not work with the gtk frontend. I'm using a build fresh off
master
and my player config is"mpv"
.I will bisect later if you can't reproduce.