Bug 419030 - Crash exiting presentation mode
Summary: Crash exiting presentation mode
Status: RESOLVED DUPLICATE of bug 393478
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.3.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-19 21:01 UTC by Giampiero Salvi
Modified: 2020-03-19 22:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giampiero Salvi 2020-03-19 21:01:37 UTC
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
Comment 1 Albert Astals Cid 2020-03-19 21:32:09 UTC
Your okular is ancient

*** This bug has been marked as a duplicate of bug 393478 ***
Comment 2 Giampiero Salvi 2020-03-19 22:22:45 UTC
(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
Comment 3 Albert Astals Cid 2020-03-19 22:43:03 UTC
> 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.