Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
onlyoffice_bugfix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
onlyoffice_bugfix [2019/01/18 11:24] 141.52.101.161onlyoffice_bugfix [2021/10/31 10:42] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +==== allfonts segfault ==== 
 +  * url https://github.com/ONLYOFFICE/DocumentServer/issues/377 
 +running original fontgen script 
 +<code bash> 
 +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 
 +</code> 
 +manual build 
 +<code bash> 
 +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 
 +</code> 
 +manual run 
 +<code bash> 
 +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" 
 +</code> 
 +ttf-dejavu ttf-liberation 
 +  * ttf-mscorefonts-installer 
 +  * fonts-crosextra-carlito 
 +  * fonts-takao-gothic 
 +  * fonts-opensymbol 
 +===== fixing the bug ===== 
 +<file cpp 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 
 +</file>