Subject: bug#537: mpv crashes on exit and all windows that have not been closed up to this point hang

From: "[email-masked]" <[email-masked]>
Date: Sat, 9 Jan 2021 16:13:14 +0100

Package: mpv
Version: 0.29.1-1

Hello, 

in mpv, maybe, I detected following bug.

OS: Devuan, beowulf
Windowmanager: openbox 3.6.1
Filemanager:  doublecmd 0.7.1. also tested 0.8.0 and 0.9.9 and 
spacefm 1.0.6

The error occurs since updating the repository from devuan-ascii to
devuan-beowulf (all configuration files in ~ are the same) 

After opening any video file, using doublecmd in mpv, mpv crashes on
exit (trying to close the mpv window). All windows (e.g. mpv,
kaffeine, doublecmd, xterm, etc.) that have not been closed (up to this
point) hang. All this windows have to be closed with pkill -9 or
killall -9 . 

On testing this behaviour, I find out following points:

- the bug occurs in all named versions of doublecmd, mentioned above,
but not in spacefm.

- this will only happens with mpv, not with other players, like vlc,
cvlc.

- this will not be happend, when doublecmd will be started in an xterm
terminal.

- the only workaround I found, is to put nohup in the openbox
  rc.xml . See below:

   <!-- Alt+F3 : Ausführen (doublecmd) -->
    <keybind key="A-F3">
      <action name="Execute">
        <command>nohup doublecmd</command>
      </action>
    </keybind>

thank you for your help and many greetings 

Frank Noack

---

From: Mark Hindley <[email-masked]>
Date: Sat, 9 Jan 2021 16:18:06 +0000

Control: tags -1 debian

Frank,

Many thanks for this.

> Version: 0.29.1-1

However, Devuan uses mpv directly from Debian without recompilation. Please
report this to Debian's BTS.

Thanks

Mark

---

From: "[email-masked]" <[email-masked]>
Date: Sun, 17 Jan 2021 16:29:55 +0100

Hello, the problem is solved, thanks to  [email-masked]

the problem was the programm call

 mpv is not a  gui-programm.  In the mpv-manpage is mentioned the option
 "pseudo-gui".

So I changed the programm call from this:
 mpv "$VIDEOFILE"

to this:
mpv   --player-operation-mode=pseudo-gui  "$VIDEOFILE"

Wich works for me in Beowulf
Thanks Frank