Summary: | app-editors/emacs-25.3-r3 with media-libs/fontconfig-2.13.0: Getting the error message 'char-displayable-p: Invalid hash table rehash size: 1.0' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mats Lidell <matsl> |
Component: | Current packages | Assignee: | GNU Emacs project <gnu-emacs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | creideiki+gentoo-bugzilla, fonts, ivanhoe |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: |
https://debbugs.gnu.org/30788 https://bugs.freedesktop.org/show_bug.cgi?id=105492 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch for media-libs/fontconfig-2.13.0
Patch for media-libs/fontconfig-2.13.0 |
Description
Mats Lidell
2018-03-12 22:35:09 UTC
Same here. The culprit seems to be fontconfig-2.13.0 as downgrading to fontconfig-2.12.6 solves the problem. @matsl: Can you confirm that this is related to the fontconfig version? @ulm: Yes. Downgrading to fontconfig-2.12.6 clears the issue. I temporarily solved the issue by aliasing emacs to 'LC_ALL=C emacs'. (In reply to Mats Lidell from comment #3) > @ulm: Yes. Downgrading to fontconfig-2.12.6 clears the issue. Hm, media-libs/fontconfig should be linked against only with USE="xft", but I don't see that flag in your emerge --info output. (In reply to Ulrich Müller from comment #5) > I don't see that flag in your emerge --info output. It's not even in my 'emerge --info', but it's in my package.use. Maybe the same applies for him. Anyway, the problem exists and has to do with the locale. (In reply to Ivan Iraci from comment #6) > Anyway, the problem exists and has to do with the locale. I can reproduce it with LC_NUMERIC=de_DE.UTF-8 but not with LC_NUMERIC=en_US.UTF-8. Created attachment 523822 [details, diff]
Patch for media-libs/fontconfig-2.13.0
Removing the locale initialisation code (which was not present in fontconfig-2.12.6) from function FcConfigEnsure seems to fix it here.
Reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=105492 @Fonts team: This is major breakage. So unless you raise objections, I am going to package.mask =media-libs/fontconfig-2.13.0 tomorrow. Created attachment 523862 [details, diff]
Patch for media-libs/fontconfig-2.13.0
Patch from upstream.
Please test if this fixes the problem.
(In reply to Ulrich Müller from comment #11) > Created attachment 523862 [details, diff] [details, diff] > Patch for media-libs/fontconfig-2.13.0 > > Patch from upstream. > Please test if this fixes the problem. Ok, it works for me. Thanks. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34fb871502ff7941c54b6058727caf3ef563dc39 commit 34fb871502ff7941c54b6058727caf3ef563dc39 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2018-03-14 12:31:50 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2018-03-14 12:31:50 +0000 media-libs/fontconfig: Fix handling of locale and of font weights. Non-maintainer commit. Patches from upstream. Closes: https://bugs.gentoo.org/650332 Closes: https://bugs.gentoo.org/650370 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../files/fontconfig-2.13.0-locale.patch | 37 +++++ .../fontconfig/files/fontconfig-2.13.0-names.patch | 93 ++++++++++++ media-libs/fontconfig/fontconfig-2.13.0-r1.ebuild | 164 +++++++++++++++++++++ 3 files changed, 294 insertions(+) @Andrzej, @Ivan: Thank you for your feedback on fontconfig and locale. This was really helpful for resolving this bug. (In reply to Ulrich Müller from comment #14) > @Andrzej, @Ivan: Thank you for your feedback on fontconfig and locale. This > was really helpful for resolving this bug. Thank you for your commitment! Reopening. The following will still trigger the bug: $ unset LANG LC_ALL $ LC_NUMERIC=de_DE.UTF-8 emacs -Q The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af2a402ec7449348b50332919a66e54b552d6da0 commit af2a402ec7449348b50332919a66e54b552d6da0 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2018-03-15 05:19:23 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2018-03-15 05:20:00 +0000 media-libs/fontconfig: Do not call setlocale in the library. Patch from upstream. https://bugs.freedesktop.org/show_bug.cgi?id=105492 Closes: https://bugs.gentoo.org/650332 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../files/fontconfig-2.13.0-locale.patch | 200 +++++++++++++++++---- ....13.0-r1.ebuild => fontconfig-2.13.0-r2.ebuild} | 0 2 files changed, 170 insertions(+), 30 deletions(-) |