Site Tools


onlyoffice_bugfix

allfonts segfault

running original fontgen script

sudo -u aur aur sync -c icu58
cd /home/onny/projects/onlyoffice-documentserver/src/var/www/onlyoffice/documentserver/server/tools
LD_LIBRARY_PATH="/home/onny/projects/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.2.7/core/build/lib/linux_64/:/home/onny/projects/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.2.7/core/Common/3dParty/icu/linux_64/usr/local/lib/libicuuc.so:$LD_LIBRARY_PATH" ./AllFontsGen

manual build

cd /home/onny/projects/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.2.7/core/DesktopEditor/AllFontsGen/AllFontsGen.build
make clean
make
cd /home/onny/projects/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.2.7/core/build/bin/AllFontsGen
LD_LIBRARY_PATH="/home/onny/projects/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.2.7/core/build/lib/linux_64/:/home/onny/projects/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.2.7/core/Common/3dParty/icu/linux_64/build:$LD_LIBRARY_PATH" ./linux_64

manual run

sudo -u onlyoffice ./home/onny/projects/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.2.7/core/build/bin/AllFontsGen \                                
          --input="/usr/share/webapps/onlyoffice/documentserver/core-fonts"\
          --allfonts-web="/usr/share/webapps/onlyoffice/documentserver/sdkjs/common/AllFonts.js"\
          --allfonts="/usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin/AllFonts.js"\
          --images="/usr/share/webapps/onlyoffice/documentserver/sdkjs/common/Images"\
          --selection="/usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin/font_selection.bin"\
          --output-web="/usr/share/webapps/onlyoffice/documentserver/fonts"\
          --use-system="true"

ttf-dejavu ttf-liberation

  • ttf-mscorefonts-installer
  • fonts-crosextra-carlito
  • fonts-takao-gothic
  • fonts-opensymbol

fixing the bug

core/DesktopEditor/fontengine/ApplicationFonts.cpp
std::vector<std::wstring> CApplicationFonts::GetSetupFontFiles()
{
[...]
#if defined(__linux__) && !defined(_MAC)
     std::vector<std::wstring> _array = NSDirectory::GetFiles(L"/usr/share/fonts", true);
     NSDirectory::GetFiles2(L"/usr/share/X11/fonts", _array, true);
     NSDirectory::GetFiles2(L"/usr/X11R6/lib/X11/fonts", _array, true);
     NSDirectory::GetFiles2(L"/usr/local/share/fonts", _array, true);
     return _array;
#endif
onlyoffice_bugfix.txt · Last modified: 2019/01/20 11:16 by 2a01:4f8:191:327:c8b8:d2ff:fe4c:e453