Open vdcow opened 8 years ago
Which version of stock freetype2 is supposed to be used on your of Alt Linux installation?
@bohoomil 2.6.0
Did you compile the library with the upstream patches I've been providing? If yes, consider building the new stock version, 2.6.1, with the Infinality patchset. Now that the freetype2 code base is stable and officially released, there may have been various little bugs and issues fixed that were still present in your version. As this is a minor upgrade, there should be no compatibility issues with the rest of your system. You'll find the updated Infinality patchset in this repo.
(BTW, no Arch user has reported issues with Infinality and Plasma, hence my assumption that the problem can be caused by one of the partial updates I created from upstream's patches.)
I have built 2.6.1 infinality package. Will ask user to test it.
Thanks for the info. Please, report back if this helped.
User upgraded to 2.6.1 and he is still has memory leak issue.
Thank you. Just a couple of questions: is he the only one experiencing the problem? Has anyone else using a similar configuration (Alt Linux + Plasma + freetype2-infinality) reported issues like his? Is his fontconfig-infinality{-ultimate} configuration correct? freetype2 and fontconfig work together and sometimes when the latter is misconfigured the rendering lib may crash. For best results, I'd perform a clean installation of fontconfig-iu, including the removal of all files from both /etc/fonts
and $XDG_CONFIG_HOME/fontconfig
(back up them first, of course). The location of globally installed fontconfig templates may differ depending on the distribution.
is he the only one experiencing the problem?
I don't have problem on my machines. But in first post I provided link to the report in kde bugtracker - the same issue was reported by Fedora user in February (for freetype 2.5.0).
Is his fontconfig-infinality{-ultimate} configuration correct?
I am packing original version of fontconfig-infinality with very small modifications (e.g. default font aliases). There is my repo http://git.altlinux.org/people/cow/packages/?p=fontconfig-infinality.git;a=summary
fontconfig work together and sometimes when the latter is misconfigured the rendering lib may crash.
It shouldn't. If lib is crashed because configs are wrong then lib is definitely should be fixed.
OK then. We're simply going to leave the issue open: maybe @goddesse will kindly look into it and suggest a solution.
The segfault is probably because the code assumes the mallocs/reallocs will always succeed. Checking for nullity would fix the crash, but you'd still have an unusable system from the runaway memory. I could set a maximum reasonable memory size that the stem detection can work in and see if that fixes the latter. I'd be curious to know more about the user's system to better understand what's causing the pathological behavior in the first place. @vladimir-didenko could you possibly direct the user here?
In the meantime, the user can avoid these codepaths by turning off stem alignment in infinality_settings.sh by setting both the stem alignment and stem fitting strengths to zero and hopefully that will ameliorate the crashing until I can fix it.
@goddesse
could you possibly direct the user here?
He has problem with English but he is agree to communicate through me. So describe information you need and I will redirect request to user.
@vladimir-didenko I would like to know the total amount of system memory, platform endianness, and plasma's UI font and locale. Also, what Alt Linux ISO would get me closest to his environment? 7.0 kdesktop or sisyphus kde4?
There is user system information:
Kernel:
uname -a
Linux home 3.14.52-std-pae-alt1 #1 SMP Mon Sep 14 12:03:51 UTC 2015 i686 GNU/Linux
Memory:
$free -h
total used free shared buffers cached
Mem: 7,9G 7,7G 256M 0B 93M 6,5G
-/+ buffers/cache: 1,1G 6,8G
Swap: 4,0G 0B 4,0G
Locale:
locale
LANG=ru_UA.UTF-8
LC_CTYPE="ru_UA.UTF-8"
LC_NUMERIC="ru_UA.UTF-8"
LC_TIME="ru_UA.UTF-8"
LC_COLLATE="ru_UA.UTF-8"
LC_MONETARY="ru_UA.UTF-8"
LC_MESSAGES="ru_UA.UTF-8"
LC_PAPER="ru_UA.UTF-8"
LC_NAME="ru_UA.UTF-8"
LC_ADDRESS="ru_UA.UTF-8"
LC_TELEPHONE="ru_UA.UTF-8"
LC_MEASUREMENT="ru_UA.UTF-8"
LC_IDENTIFICATION="ru_UA.UTF-8"
LC_ALL=
Fonts in KDE4: he is using aliases Sans and Monospace
fc-match Sans
DroidSans.ttf: "Droid Sans" "Regular"
fc-match Monospace
DroidSansMono.ttf: "Droid Sans Mono" "Regular"
Also, what Alt Linux ISO would get me closest to his environment?
You can use follow image
http://nightly.altlinux.org/sisyphus/current/regular-kde4-latest-i586.iso
But by default there is no infinality installed. You can install it using follow commands:
su -
apt-get update
apt-get install libfreetype-infinality fontconfig-infinality
Note: I can't reproduce this issue with this image on my VirtualBox.
@vladimir-didenko The latest release may have fixed this. Would you mind checking with the user?
@goddesse Yes, I will build new package and will ask user to reproduce issue.
On of the Alt Linux users reported memory leak in KDE 4 plasma when libfreetype-infinality installed. After small amount of time plasma eats about 2 GBs of memory and crashes with follow backtrace:
After some investigation I have found that issue was already reported previously but in kde bugzilla
https://bugs.kde.org/show_bug.cgi?id=343737