Bug#1012243: paperwork-gtk: export broken: cairo.Error: error occurred in libfreetype

2022-09-18 Thread Thomas Perret

Sorry it seems I totally missed this bug report.

I couldn't reproduce the bug on my systems even on a clean virtual
machine installation.

I found one vaguely related upstream issue[0] but it doesn't mention
libfreetype so I don't think it's relevant to that case.

Are you exporting the original PDF or with page-by-page processing?
Does it fail with both export methods?

Does it fail to export with any document?
If not, do you have any document that fails to export that you can
publicly share? I think that could come from a font in the document you
try to export (since libfreetype looks involved).

--
Thomas

[0]: https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/942


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1012243: paperwork-gtk: export broken: cairo.Error: error occurred in libfreetype

2022-06-02 Thread Jonas Smedegaard
Package: paperwork-gtk
Version: 2.1.1-1
Severity: important

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

have tested paperwork-gtk, and while collecting data works fine and
looks promising, the tool fails to export as PDF, with this error at the
shell command-line:

[ERROR ] [paperwork_gtk.mainwindow.exporter] Export failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openpaperwork_core/promise.py", line 
233, in _threaded_do
our_r = self.func(*args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/paperwork_backend/docexport/pdf.py", 
line 268, in do
self.core.call_one(
  File "/usr/lib/python3/dist-packages/openpaperwork_core/__init__.py", line 
449, in call_one
return callbacks[0][2](*args, **kwargs)
  File "/usr/lib/python3/dist-packages/openpaperwork_gtk/mainloop/glib.py", 
line 223, in mainloop_execute
raise exc[0]
  File "/usr/lib/python3/dist-packages/openpaperwork_gtk/mainloop/glib.py", 
line 210, in get_result
out[0] = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/paperwork_backend/docexport/pdf.py", 
line 177, in paint_txt
self.pdf_context.restore()
cairo.Error: error occurred in libfreetype
/usr/lib/python3/dist-packages/paperwork_gtk/notifications/notify.py:59: 
Warning: g_variant_new_string: assertion 'string != NULL' failed
  self.notification.show()
/usr/lib/python3/dist-packages/paperwork_gtk/notifications/notify.py:59: 
Warning: g_variant_new_variant: assertion 'value != NULL' failed
  self.notification.show()
/usr/lib/python3/dist-packages/paperwork_gtk/notifications/notify.py:59: 
Warning: g_variant_get_type: assertion 'value != NULL' failed
  self.notification.show()
/usr/lib/python3/dist-packages/paperwork_gtk/notifications/notify.py:59: 
Warning: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' 
failed
  self.notification.show()
/usr/lib/python3/dist-packages/paperwork_gtk/notifications/notify.py:59: 
Warning: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type 
|| g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed
  self.notification.show()
/usr/lib/python3/dist-packages/paperwork_gtk/notifications/notify.py:59: 
Warning: g_variant_builder_end: assertion 'GVSB(builder)->offset >= 
GVSB(builder)->min_items' failed
  self.notification.show()


 - Jonas

- -- System Information:
Debian Release: bookworm/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (1, 
'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.17.0-3-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages paperwork-gtk depends on:
ii  adwaita-icon-theme [gnome-icon-theme-symbolic]  42.0-2
ii  aspell  0.60.8-4
ii  cuneiform   1.1.0+dfsg-9
ii  gnome-icon-theme3.12.0-5
ii  openpaperwork-core  2.1.1-1
ii  openpaperwork-gtk   2.1.1-1
ii  paperwork-backend   2.1.1-1
ii  python3 3.10.4-1+b1
ii  python3-distro  1.7.0-1
ii  python3-levenshtein 0.12.2-2+b1
ii  python3-pycountry   22.3.5+ds1-1
ii  python3-pyocr   0.8.2-1
ii  python3-xdg 0.27-2
ii  tesseract-ocr   5.1.0-1

paperwork-gtk recommends no packages.

paperwork-gtk suggests no packages.

- -- no debconf information

-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmKYWfoACgkQLHwxRsGg
ASGilQ//RtgU5OCBqozoc3PQc4T4GP/zFWItWGtM2xmzxNKHL8gXQt2oDLyah17u
JM8dEQnFSEeO39hoZdbQLcbSpiWj13EuFp/MMVOXd2YVO8iTcQswTFPTurjV4Rjc
XlQ92zDOsCwMXGfyGHF6gBnt1TqU6iEog1/p7jAtEXJUDjQgNZZHxPPi6FKOp1vb
r/PLiwNZCTNTTfOBKs3Fshd6zcWzVPy8l5mwZhyuuRXPNaF+tGaQlLD/XxIVRsb9
5Yq4b9A2XEUFrcqBScdmj8UcsO04sJEBeHpgIq2DlVobfYJvLeM6nDFmfMcqnNI/
hr0rksZt6/0yxcWKheh8ehkp2SGBP8OmlDM4jGPMRqA6GPlNs+q55qDo9pYgfL8X
fWteWRsPUTyovS9XN/GOo+vaOBBzQUJiTqKP9Q/cdB2cB63NufIPMYZE+Sy69d3j
Ozxme3da4PTzGDnSu3sMcPwA12juK1XD2Uv8SlulxE6mscxa3dWQA/DTIe7dwf1/
o6vRWVHvounApE6Y8YY8RAAZHZupjt5nafn2IhsG966xZNcEoznmoGTvgDfTZx7B
+rbDXbGoDIoa0EBEJz9J2MP69wS1np4cN70t9h4ZXXCHJq46zixuX7LmUPlcBM7U
HBKROPJk2EL6FZP09l1eSD8NjLxs3UYs18W2urEV09aCG1BfqKs=
=YbxR
-END PGP SIGNATURE-