[SRU] impressive segfault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
impressive (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Lunar |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
'impressive' is completely unusable in Jammy. It fails to open any pdf and results in a segfault with the following error:
Welcome to Impressive version 0.13.0-beta2 (SVN r298)
pygame 2.1.2 (SDL 2.0.20, Python 3.10.12)
Hello from the pygame community. https:/
Detected screen size: 1280x800 pixels
PDF renderer: Xpdf/Poppler
pdftkParse() FAILED
Segmentation fault (core dumped)
[ Test Plan ]
* install impressive in a Jammy installation
* try open any pdf from cmdline using the command:
impressive <pdfname>
Example: $ impressive test.pdf
* It will fail and will print the error message with segfault.
* With the fix, impressive will be able to open the pdf and display it.
[ Where problems could occur ]
* The fix is checking for the pygame sdl version and then based on the version using the correct SDL library.
It does not change any other code and so does not change the behaviour and has little chance of regressing the user behaviour.
[ Other Info ]
* When any user executes impressive, it will try to load the Pygame SDL libraries. And the old v0.13.0-beta2 expects the Pygame SDL libraries to be pre-v2.0.0. But Jammy has a later version of Pygame and as a result 'impressive' fails to find the library.
* The problem exists in v0.13.0~beta2-2 and has been fixed by upstream in v0.13.1 and so only Jammy is affected.
[ Original Bug Description ]
On Ubuntu 22.04 with default Ubuntu session (Wayland) impressive crash when trying to open any PDF files. Terminal say :
Welcome to Impressive version 0.13.0-beta2 (SVN r298)
pygame 2.1.2 (SDL 2.0.20, Python 3.10.4)
Hello from the pygame community. https:/
Detected screen size: 2560x1080 pixels
PDF renderer: MuPDF 1.4 or newer
Segmentation error
Crash happen with or without mupdf installed.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: impressive 0.13.0~beta2-2
ProcVersionSign
Uname: Linux 5.15.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 22 19:15:49 2022
EcryptfsInUse: Yes
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: impressive
UpgradeStatus: Upgraded to jammy on 2022-04-22 (0 days ago)
modified.
# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=0
mtime.conffile.
Changed in impressive (Ubuntu Lunar): | |
status: | New → Invalid |
Changed in impressive (Ubuntu Mantic): | |
status: | New → Invalid |
Changed in impressive (Ubuntu Noble): | |
status: | New → Invalid |
description: | updated |
I have tried on another computer with Wayland or X.org session, and i got the same "core dumped" crash.
Output on X.org:
Welcome to Impressive version 0.13.0-beta2 (SVN r298) /www.pygame. org/contribute. html
pygame 2.1.2 (SDL 2.0.20, Python 3.10.4)
Hello from the pygame community. https:/
Detected screen size: 1680x1050 pixels
PDF renderer: MuPDF 1.4 or newer
pdftkParse() FAILED
Erreur de segmentation (core dumped)