SUMMARY Audio is not properly closed when exiting presentation mode. This causes okular to crash every time you have audiovisual content in the presentation. STEPS TO REPRODUCE 1. download the example presentation from https://github.com/giampierosalvi/slides_with_video 2. open it in okular and start presentation mode 3. exit presentation mode OBSERVED RESULT I have been trying to use both the apt and the snap version of okular in Ubuntu 18.04 to display presentations created with latex/beamer that include audiovisual content. The apt version works fine as long as I do not exit the presentation mode. Every time I exit presentation mode it crashes with the following message: pa_write() failed while trying to wake up the mainloop: Bad file descriptor pa_write() failed while trying to wake up the mainloop: Bad file descriptor pa_write() failed while trying to wake up the mainloop: Bad file descriptor Assertion 'pa_close(fds[1]) == 0' failed at pulsecore/core-util.c:2647, function pa_close_pipe(). Aborting. The snap version is even worse: every time I try to play audiovisual content, okular crashes with a long list of messages like this: ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default [000055e08eacc8d0] alsa audio output error: cannot open ALSA device "default": No such file or directory [000055e08eacc8d0] main audio output error: Audio output failed [000055e08eacc8d0] main audio output error: The audio device "default" could not be used: No such file or directory. [000055e08eacc8d0] main audio output error: module not functional [00007f1e7c1a4360] main decoder error: failed to create audio output [00007f1e600a56f0] main video output error: video output creation failed Segmentation fault (core dumped) EXPECTED RESULT The program should not crash SOFTWARE/OS VERSIONS Linux/KDE Plasma: Ubuntu 18.04.4 (available in About System) KDE Plasma Version: I am running Gnome 3.28.2 (so all the KDE libraries are installed by apt when I install okular) ADDITIONAL INFORMATION
Your okular is ancient *** This bug has been marked as a duplicate of bug 393478 ***
(In reply to Albert Astals Cid from comment #1) > Your okular is ancient > > *** This bug has been marked as a duplicate of bug 393478 *** Hi Albert, this it the version supported by the current LTS version of Ubuntu via apt. If I install the snap version of okular (1.9.3), that is supposed to be the most recent version available on Ubuntu 18.04, the program does not crash, but it does not play videos either in presentation mode. I get this warning then: WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded I tried configuring backends but I could not find anything related to Phonon. Could you give me a hint? By the way, I had read the bug that you claim is a duplicate of this, before filing this but. However, I did not think it was a duplicate bug. The behavior was different and also the kind of files were different (in my case it was the audio crashing the program). Of course I may be wrong. Thank you Giampiero
> this it the version supported by the current LTS version of Ubuntu via apt. This is your problem, if you are using old versions of code, you don't get fixes we have done in the last two years. Stop using the LTS version of Ubuntu or accept that you don't get bugfixes. > If I install the snap version of okular (1.9.3) I've no idea about how the snap package is made sorry, in any case that would be a different issue.