Skip to content

[Synfig Studio] Canvas workarea rendering crashes frequently #1916

Open

Description

@FirasH

Synfig version & platform:
master e84f6cb
Linux and Windows

Issue description:

  1. Open an animation that contains Text Layers
  2. Change the animation Current time (for example when fine tuning animation details) or enable Background rendering

Synfig Studio crashes frequently.

I assume this is somehow related to the very last commits (1 week or so) and is linked to text stuff (freetype layer or something like that pops in terminal).
Did not happen with older versions of master.

Activity

  1. ice0 commented on Dec 13, 2020

    @ice0
    Collaborator

    @FirasH Is that autotools/CMake build?

  2. FirasH commented on Dec 13, 2020

    @FirasH
    MemberAuthor

    @ice0 I'm using appveyor builds on Windows and the scripts on Linux (I assume autotools but not sure...)

  3. ice0 commented on Dec 13, 2020

    @ice0
    Collaborator

    AppVeyour uses CMake, scripts use autotools, so it looks like both are affected.
    Can you make a short video showing the problem? I am trying to reproduce but with no success.
    The only strange thing is this messages after I add first text layer.

    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    
  4. FirasH commented on Dec 13, 2020

    @FirasH
    MemberAuthor

    @ice0, I saved a copy of the project where the issue is always reproducible for me:
    issue-1916.zip

    Just open the project and apply actions that require canvas rendering (Background rendering, change zoom, change canvas current time) and it will crash easily in a few seconds.

  5. rodolforg commented on Dec 13, 2020

    @rodolforg
    Contributor

    The only strange thing is this messages after I add first text layer.

    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    error: internal error: it shouldn't be without parameter row info!?[0m
    

    Those errors are related to the Widget_Timetrack I implemented.

  6. FirasH commented on Dec 15, 2020

    @FirasH
    MemberAuthor

    This is the error on Linux:
    synfig(4871) [09:27:51 PM] error: Layer_Freetype: Unable to open font face. (err=1)

  7. ice0 commented on Dec 17, 2020

    @ice0
    Collaborator

    I can also reproduce it on Linux.
    And as I can see there is memory corruption and data races :(
    As a temporary solution you can reduce rendering thread count to 1 by setting SYNFIG_RENDERING_THREADS=1 environment variable.

  8. linked a pull request that will close this issue[ETL/Core] Added locks to avoid data-races #1935on Dec 19, 2020
  9. rodolforg commented on May 30, 2021

    @rodolforg
    Contributor

    I just checked v1.4.0 and it crashes too.
    So the cause is not a recent change on Layer_Freetype: the last one was on 2019: https://github.com/synfig/synfig/commits/v1.4.0/synfig-core/src/modules/lyr_freetype/lyr_freetype.cpp

    Neither the new Widget_Timetrack, that wasn't merged to stable branch.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions