Hello,
while trying to print a PDF from Okular with Boomaga, it shows me an error
dialog with the following message:
Не получилось запустить gs: "GPL Ghostscript 9.54.0: Unrecoverable error, exit
code 1
"
That happens because of deprecation of .setpdfwrite. The full stderr of gs
looks as follows:
Error: /undefined in .setpdfwrite
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push .runexec2 --nostringval--
--nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:731/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)--
Current allocation mode is local
GPL Ghostscript 9.54.0: Unrecoverable error, exit code 1
When running with older gs version, you may get the following deprecation
warning:
**** WARNING: The .setpdfwrite operator has been deprecated and will be removed
entirely
in the next release of Ghostscript. The functionality of this
operator has
been reduced to increasing the size of the VM threshold. If you
believe you
have a real need for this then you should replace your call to
.setpdfwrite
with:
3000000 setvmthreshold
Similar bug report is present in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/lazarus/+bug/1949192.
See also the upstream issue on GitHub:
https://github.com/Boomaga/boomaga/issues/107
According to the deprecation warning in older version, it seems just reasonable
to remove "-c .setpdfwrite" from command line options.
Attaching a patch to fix this bug as well.
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.14.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE=ru
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages boomaga depends on:
ii cups 2.3.3op2-7
ii libc6 2.32-4
ii libcups2 2.3.3op2-7
ii libgcc-s1 [libgcc1] 11.2.0-10
ii libpoppler-cpp0v5 20.09.0-3.1
ii libqt5core5a 5.15.2+dfsg-12
ii libqt5dbus5 5.15.2+dfsg-12
ii libqt5gui5 5.15.2+dfsg-12
ii libqt5printsupport5 5.15.2+dfsg-12
ii libqt5widgets5 5.15.2+dfsg-12
ii libstdc++6 11.2.0-10
ii zlib1g 1:1.2.11.dfsg-2
boomaga recommends no packages.
boomaga suggests no packages.
-- no debconf information