FS#64168 - [xpdf] 4.02 crashes with xfce-session

Attached to Project: Community Packages
Opened by peter (grinner) - Friday, 18 October 2019, 11:23 GMT
Last edited by Toolybird (Toolybird) - Friday, 28 April 2023, 22:50 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

xpdf 4.02 will not launch under xfce (4.14 in my case) returning

[code]
xpdf: fccache.c:768: FcCacheFini: Assertion `fcCacheChains[i] == NULL' failed.
Aborted (core dumped)
[/code]

The issue was not present with xpdf 4.01 and has been noted as some sort of conflict with xfce-session.

This is not an archlinux bug also having been noted (at least) on slackware. See the upstream report: [url]https://forum.xpdfreader.com/viewtopic.php?f=1&t=41895[/url].

The patch contained in the first post of that thread bypasses this problem by hacking out the FcFini calls:

[code]
--- xpdf/GlobalParams.cc.orig 2019-10-04 22:18:53.406928421 -0400
+++ xpdf/GlobalParams.cc 2019-10-04 22:19:27.324927127 -0400
@@ -568,7 +568,7 @@
FcFontSetDestroy(fontSet);
}

- FcFini();
+// FcFini(); FIXME - hack to get this not to crash.
}
#endif // HAVE_FONTCONFIG
[/code]

I have rebuilt xfdf 4.02 with this change and can confirm that it launches; have not encounter any issues.

Basically a FYI to note the issue.
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 28 April 2023, 22:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  Cannot repro so assume fixed by upstream.
Comment by GI Jack (GI_Jack) - Sunday, 10 November 2019, 23:20 GMT
Confirmed. Exact same issue.

It also fails in GNOME as well.

Loading...