Bug 508518 - GPL Ghostscript 10.05.1: Unrecoverable error breaks image merge after sign
Summary: GPL Ghostscript 10.05.1: Unrecoverable error breaks image merge after sign
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (other bugs)
Version First Reported In: 25.08.0
Platform: EndeavourOS Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-20 14:18 UTC by Richard PALO
Modified: 2025-09-12 08:35 UTC (History)
2 users (show)

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


Attachments
recording showing the problem (2.11 MB, video/webm)
2025-08-23 14:15 UTC, Richard PALO
Details
signed document (153.46 KB, application/pdf)
2025-08-23 14:17 UTC, Richard PALO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard PALO 2025-08-20 14:18:17 UTC
SUMMARY
Okular drops background image in _signed file

STEPS TO REPRODUCE
1. open pdf to sign
2. invoke tools -> digital signature
3. select alias and background image
4. sign

OBSERVED RESULT
fine prior to saving, 
but in the _signed file:

Box with text Richard PALO
Signé par : Richard PALO
Date : 2025-08-20 16:07:38 CEST
but background image not shown 

and a bunch of the following on command line
QPixmap::scaled: Pixmap is a null pixmap
... and finally
GPL Ghostscript 10.05.1: Unrecoverable error, exit code 1

EXPECTED RESULT
box with background image and superposed text indicated above

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.12.42-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 32 Gio of RAM (30.7 Gio usable)
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: MINIPC PN51-E1
System Version: 0510

ADDITIONAL INFORMATION
using safenet with eToken 5110 SC eIDAS token from CertEurope
Comment 1 Albert Astals Cid 2025-08-23 09:50:49 UTC
That makes no sense that you get a ghostscript warning, ghostscript is not used for anything (unless you are print previewing).

Could you record a video of the whole thing and attach it here?
Comment 2 Richard PALO 2025-08-23 14:15:09 UTC
Created attachment 184381 [details]
recording showing the problem

there is a bit of offscreen where I enter my pin code, but otherwise it shows the problem.
I only see the following on the terminal now:
kf.kio.core.connection: Socket not connected QLocalSocket::PeerClosedError
kf.kio.core: Connection::send() called with connection not inited
kf.kio.core: Connection::send() called with connection not inited
kf.kio.core: Connection::send() called with connection not inited
kf.kio.core: Connection::send() called with connection not inited
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
Comment 3 Richard PALO 2025-08-23 14:17:28 UTC
Created attachment 184382 [details]
signed document

and here is the signed document where the background image of my handwritten signature is no longer visible.
Comment 4 Albert Astals Cid 2025-08-23 14:41:49 UTC
I wanted to see the errors. But i guess you have confirmed there is no Ghostscript message at all.

Which poppler version are you using?

Can you run
file /path/to/the/file/used/as/background.extension
and paste the result here?
Comment 5 Richard PALO 2025-08-23 15:09:26 UTC
(In reply to Albert Astals Cid from comment #4)
> I wanted to see the errors. But i guess you have confirmed there is no
> Ghostscript message at all.
> 
> Which poppler version are you using?
> 
> Can you run
> file /path/to/the/file/used/as/background.extension
> and paste the result here?

$ pacman -Qs poppler
local/poppler 25.08.0-1
    PDF rendering library based on xpdf 3.0
local/poppler-data 0.4.12-2
    Encoding data for the poppler PDF rendering library
local/poppler-glib 25.08.0-1
    Poppler glib bindings
local/poppler-qt5 25.08.0-1
    Poppler Qt5 bindings
local/poppler-qt6 25.08.0-1
    Poppler Qt6 bindings

$ file rcp-signature.png 
rcp-signature.png: PNG image data, 248 x 103, 8-bit/color RGBA, non-interlaced

I've used these images no problem for years... the only blatant issue remaining before was the lack of ETSI
support .... Ad$be isn't pertinent for PAdES/CAdES
but since a short while the background image, very important, has 'disappeared'.
Comment 6 Bug Janitor Service 2025-09-07 03:48:13 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Richard PALO 2025-09-07 07:31:58 UTC
$ file signature.png
signature.png: PNG image data, 600 x 218, 8-bit/color RGB, non-interlaced

I already gave the poppler versions
Comment 8 Albert Astals Cid 2025-09-07 09:43:27 UTC
Yes, apologies, i need a bit more time to have a look.
Comment 9 Richard PALO 2025-09-07 15:21:05 UTC
[2025-09-07T17:11:35+0200] [ALPM] upgraded poppler (25.08.0-1 -> 25.09.1-1)
[2025-09-07T17:11:35+0200] [ALPM] upgraded poppler-glib (25.08.0-1 -> 25.09.1-1)
[2025-09-07T17:11:38+0200] [ALPM] upgraded poppler-qt5 (25.08.0-1 -> 25.09.1-1)
[2025-09-07T17:11:38+0200] [ALPM] upgraded poppler-qt6 (25.08.0-1 -> 25.09.1-1)

pour info: nouvelle version de poppler, mais pas de différence
Comment 10 Richard PALO 2025-09-11 20:42:25 UTC
please change the priority to HIGH
we absolutely need the visible images as the scanned image contains the seal+signature that must need be visible
with the text about electronic signature.

this is a SERIOUS regression, not just a nice to have.

is there any other trace information or such I can provide?
Comment 11 Sune Vuorela 2025-09-12 08:16:40 UTC
reverting 61e4f56ea85f6c094eddf7df56cc6eb2d688d7f4 in poppler seems to fix it. Let me see if we can find a fix instead.
Comment 12 Sune Vuorela 2025-09-12 08:35:55 UTC
https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1890 should fix it.