[okular] [Bug 419030] Crash exiting presentation mode

2020-03-19 Thread Giampiero Salvi
https://bugs.kde.org/show_bug.cgi?id=419030

--- Comment #2 from Giampiero Salvi  ---
(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

-- 
You are receiving this mail because:
You are watching all bug changes.

[okular] [Bug 419030] New: Crash exiting presentation mode

2020-03-19 Thread Giampiero Salvi
https://bugs.kde.org/show_bug.cgi?id=419030

Bug ID: 419030
   Summary: Crash exiting presentation mode
   Product: okular
   Version: 1.3.3
  Platform: Ubuntu Packages
OS: Linux
Status: REPORTED
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: okular-de...@kde.org
  Reporter: giampisa...@gmail.com
  Target Milestone: ---

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
[55e08eacc8d0] alsa audio output error: cannot open ALSA device "default":
No such file or directory
[55e08eacc8d0] main audio output error: Audio output failed
[55e08eacc8d0] main audio output error: The audio device "default" could
not be used:
No such file or directory.
[55e08eacc8d0] main audio output error: module not functional
[7f1e7c1a4360] main decoder error: failed to create audio output
[7f1e600a56f0] 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

-- 
You are receiving this mail because:
You are watching all bug changes.