Skip to content

Synfig Studio appImage 1.5.1 does not work with ArchLinux #2397

Closed

Description

@Gilraiser

Describe the bug
The development version 1.5.1 AppImage does not run on the ArchLinux operating system. After having given the corresponding execution permissions, the information that the console returns is the following:

/tmp/.mount_pOKyZn/usr/bin/synfigstudio: symbol lookup error: /usr/lib/libfreetype.so.6: undefined symbol: hb_ot_tags_from_script_and_language

To Reproduce
Steps to reproduce the behavior:

  1. Double click on the Synfig Studio appimage

Expected behavior
The program window with all its graphical interface should be displayed.

System information:

  • Linux distro: ArchLinux
  • Package: AppImage
  • Synfig version: 1.5.1

Thank you very much in advance for your attention
Excellent job developing Synfig Studio :)

Activity

  1. rodolforg commented on Oct 31, 2021

    @rodolforg
    Contributor

    hb_ot_tags_from_script_and_language is a harfbuzz command.
    Maybe the shipped version is too old?

  2. Gilraiser commented on Oct 31, 2021

    @Gilraiser
    Author

    Hi rodolforg. I have updated the operating system to date and the Synfig appimage I downloaded from the GitHub link.

    On the other hand, with the name harfbuzz I have the following installed:

    local/harfbuzz 3.0.0-1
    OpenType text shaping engine
    local/harfbuzz-icu 3.0.0-1
    OpenType text shaping engine (ICU integration)
    local/lib32-harfbuzz 3.0.0-1
    OpenType text shaping engine (32-bit)

    I hope the information is useful to you.

    Many thanks.

  3. Gilraiser commented on Nov 1, 2021

    @Gilraiser
    Author

    I tested on a virtual machine, with an ArchLinux without updating for several weeks. This OS had harfbuzz version 2.8.2-1 and Synfig 1.5.1 appimage ran successfully. After I upgraded this system the same problem occurred.

    A week ago I compiled from the master branch this same version and I have not had any problems.

  4. rodolforg commented on Nov 1, 2021

    @rodolforg
    Contributor

    Are you able to compile by yourself instead of using the AppImage?
    I don't know anything about AppImage bundling, but this way we'll know if it is an AppImage package issue or library version mismatch.

    Btw, since #2232 we depend on harfbuzz library.

  5. ice0 commented on Nov 1, 2021

    @ice0
    Collaborator

    The problem is that we are bundling an old version of the harfbazz library, which requires old lybreetype.so.6 library.
    An easy solution - is not bundle it, and just use the system one.
    Another solution is to add libfreetype.so.6 to AppImage and check if it doesn't break anything.

  6. Gilraiser commented on Nov 1, 2021

    @Gilraiser
    Author

    Are you able to compile by yourself instead of using the AppImage? I don't know anything about AppImage bundling, but this way we'll know if it is an AppImage package issue or library version mismatch.

    Btw, since #2232 we depend on harfbuzz library.

    Sorry I'm compiling from source, but I don't know how to package in appimage. I tried it once and it didn't work.

  7. rodolforg commented on Nov 1, 2021

    @rodolforg
    Contributor

    Sorry I'm compiling from source, but I don't know how to package in appimage. I tried it once and it didn't work.

    So you can't run Synfifg Studio you compiled yourself?

  8. Gilraiser commented on Nov 1, 2021

    @Gilraiser
    Author

    Sorry I'm compiling from source, but I don't know how to package in appimage. I tried it once and it didn't work.

    So you can't run Synfifg Studio you compiled yourself?

    The one I compiled from the master branch works fine when I run it. It is the appimage that you download from github version 1.5.1 that does not run and throws the error.

  9. Gilraiser commented on Nov 1, 2021

    @Gilraiser
    Author

    A thousand apologies if I did not make myself understood. I mean, I don't know how to create appimage packages.

  10. changed the title [-]Synfig Studio 1.5.1 does not work with ArchLinux[/-] [+]Synfig Studio appImage 1.5.1 does not work with ArchLinux[/+] on Nov 12, 2021
  11. morevnaproject commented on Nov 15, 2021

    @morevnaproject
    Member

    @Gilraiser Can you please check if 1.5.0 appimage works for you?

    Another solution is to add libfreetype.so.6 to AppImage

    @ice0 🤣
    We have removed freetype from appimage after version 1.4.1 - morevnaproject/morevna-builds@86e24a4
    So, 1.4.2, 1.5.0 and 1.5.1 appimages do not include fontconfig/freetype.
    This is done to fix fontconfig slow start problem - #1849 ^__^

    I guess we can fix the issue if we will increase version of freetype used during appimage compilation.
    Currently we use freetype-2.8.1

    @Gilraiser Can you please let me know the version of freetype in your system?

  12. ice0 commented on Nov 16, 2021

    @ice0
    Collaborator

    @morevnaproject

    We have removed freetype from appimage after version 1.4.1

    We have removed fontconfig. I'm not sure if freetype was removed as an unnecessary dependency of fontconfig or if it breaks something. That's why I suggested to check this.

  13. Gilraiser commented on Nov 18, 2021

    @Gilraiser
    Author

    @Gilraiser Can you please check if 1.5.0 appimage works for you?

    Another solution is to add libfreetype.so.6 to AppImage

    @ice0 rofl We have removed freetype from appimage after version 1.4.1 - morevnaproject/morevna-builds@86e24a4 So, 1.4.2, 1.5.0 and 1.5.1 appimages do not include fontconfig/freetype. This is done to fix fontconfig slow start problem - #1849 ^__^

    I guess we can fix the issue if we will increase version of freetype used during appimage compilation. Currently we use freetype-2.8.1

    @Gilraiser Can you please let me know the version of freetype in your system?

    Hello, sorry for answering late. My version of freetype is freetype2 2.11.0-4. I hope it is still helpful.

    As the command prints on the screen:

    sudo pacman -Qs freetype

    local/freetype2 2.11.0-4

  14. morevnaproject commented on Nov 29, 2021

    @morevnaproject
    Member

    We have removed fontconfig. I'm not sure if freetype was removed as an unnecessary dependency of fontconfig or if it breaks something. That's why I suggested to check this.

    Ah, I see now! "freetype" was required by "fontconfig". We ahve removed "fontconfig" and thus "freetype" was removed too.
    You right, we can try to explicitly add freetype as dependency to synfig-core and see if that would work...

  15. 6 remaining items

  16. ice0 commented on Dec 13, 2021

    @ice0
    Collaborator

    @morevnaproject
    It looks like this window will blinks on every startup. I suggest adding the timestamp file and skipping this check if it has already been created. Maybe we can use Synfig config file for this?

  17. morevnaproject commented on Dec 13, 2021

    @morevnaproject
    Member

    But what if font configuration will change? (i.e. new font files added)
    Then dialog will not be shown (because of timestamp file), but Synfig Studio will delay startup (because of font cache regenerated).

    I can tweak a script to show progressbar window only after some delay. (0.5 seconds?)

  18. morevnaproject commented on Dec 13, 2021

    @morevnaproject
    Member

    I can tweak a script to show progressbar window only after some delay. (0.5 seconds?)

    (sleep 0.5 && zenity --progress --pulsate --title="Fontconfig" --no-cancel --auto-close --text="Please wait, generating font cache...") &
    zpid=$!
    fc-cache
    kill $zpid
    # run synfigstudio here...
    
  19. morevnaproject commented on Dec 13, 2021

    @morevnaproject
    Member

    Hmmm.. my last code doesn't work. :-/
    I guess we have to deal with blinking window for now.

  20. morevnaproject commented on Feb 12, 2022

    @morevnaproject
    Member
  21. morevnaproject commented on Feb 15, 2022

    @morevnaproject
    Member

    I have implemented several changes to our build system, which should fix the issue:

    As result, now it should display a notification window when font cache is generated.

    Here is a package for testing, please check how it works for you -
    SynfigStudio-1.4.3-testing-2022.02.15-linux64-511af.appimage

    You can simulate the "first start" behavior if you delete fontconfig cache in your user directory (rm -rf $HOME/.cache/fontconfig/).

  22. BruceWayne-Linux commented on Feb 15, 2022

    @BruceWayne-Linux

    @morevnaproject The Appimage is working

  23. ice0 commented on Feb 23, 2022

    @ice0
    Collaborator

    Just checked on Manjaro/Ubuntu 21.04/Ubuntu 21.10
    Everything works fine. So I am closing it.

    @Gilraiser please reopen this issue if you still experience the problem.

  24. linkpy commented on Aug 15, 2022

    @linkpy

    hi

    $ ./SynfigStudio-1.5.1-2021.10.21-linux64-2cb6c.appimage
    /tmp/.mount_ohdzZ7/usr/bin/synfigstudio: symbol lookup error: /usr/lib/libfreetype.so.6: undefined symbol: hb_ot_tags_from_script_and_language
    

    system :

    OS: Garuda Linux x86_64
    Host: MS-7C52 1.0
    Kernel: 5.18.16-zen1-1-zen
    Shell: fish 3.5.1
    

    libraries :

    extra/freetype2 2.12.1-1 [installed]
    extra/harfbuzz 5.1.0-1 [installed]
    

    have any idea for a workaround?

  25. linkpy commented on Aug 15, 2022

    @linkpy

    it works by compiling synfig from sources.

  26. linkpy commented on Aug 15, 2022

    @linkpy
  27. rodolforg commented on Aug 15, 2022

    @rodolforg
    Contributor

    Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions