Skip to content

Random Crashes on Version 1.5.3 #3493

Closed

Description

@Rdc19

Describe the bug
Synfig keeps crashing like 5 times in 30 mins, either when I'm moving way points or moving a group, and at times when I playback my animation.

Expected behavior
Basic tasks should work smoothly

System information:

  • OS: [Windows]
  • OS version: 11
  • Synfig version: 1.5.3

Activity

  1. ice0 commented on Feb 13, 2025

    @ice0
    Collaborator

    Hi!
    Can you record the workflow so that we can see at what point the program crashes?
    This will help us reproduce your situation.

  2. Rdc19 commented on Feb 13, 2025

    @Rdc19
    Author
    Synfig.Crash-1.mp4

    It occurs more often during playback

  3. BobSynfig commented on Feb 16, 2025

    @BobSynfig
    Collaborator

    Please try to activate pre-rendering before playing.
    From the Timeline we can see that not all the frames are generated, maybe your computer is not powerful enough for realtime.
    What are its characteristics?

    Note: be sure that you activated the usage of the dedicated GFX card in Windows settings for Synfig, it may help using the GPU instead of the CPU

  4. Rdc19 commented on Feb 17, 2025

    @Rdc19
    Author

    Note: be sure that you activated the usage of the dedicated GFX card in Windows settings for Synfig, it may help using the GPU instead of the CPU

    How do I activate this, I can't seem to find it

  5. BobSynfig commented on Feb 18, 2025

    @BobSynfig
    Collaborator

    Please see here
    https://www.xda-developers.com/how-force-app-use-discrete-gpu-windows-11/

    Of course, you need to have a dedicated GFX card to modify this setting, maybe your computer doesn't have one

  6. Rdc19 commented on Feb 18, 2025

    @Rdc19
    Author

    Of course, you need to have a dedicated GFX card to modify this setting, maybe your computer doesn't have one

    I've set it, my laptop has a dedicated GPU, an old one though
    I am using the stable version of Synfig now, but I'll try reverting to the development version now, I hope the crashes stop

  7. Rdc19 commented on Feb 19, 2025

    @Rdc19
    Author

    The development version keeps crashing, but not on the stable version. I've switched to the stable version for now, although I prefer the features in the development version

  8. rodolforg commented on Feb 20, 2025

    @rodolforg
    Contributor

    Could you share your sif file?
    This way we could verify if it happens on Linux too and then be avle to investigate the issue.

  9. rodolforg commented on Feb 22, 2025

    @rodolforg
    Contributor

    Thank you.
    I noticed the file depends on 15 external png files.
    Could you send us too? You can zip them and upload it directly here.

    If they are private you can send me in a DM/PM via synfig forums.

  10. Rdc19 commented on Feb 22, 2025

    @Rdc19
    Author
  11. rodolforg commented on Feb 22, 2025

    @rodolforg
    Contributor

    @ice0
    The crash is due to a double free.

    I finally was able to get the error in debug binary (I had to zoom in a lot and play to get that):

    (gdb) bt
    #0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
    #1  0x00007ffff4db7e2f in __pthread_kill_internal (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:78
    #2  0x00007ffff4d63d02 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
    #3  0x00007ffff4d4c4f0 in __GI_abort () at ./stdlib/abort.c:79
    #4  0x00007ffff4d4d32d in __libc_message_impl (fmt=fmt@entry=0x7ffff4ecf303 "%s\n") at ../sysdeps/posix/libc_fatal.c:134
    #5  0x00007ffff4dc1965 in malloc_printerr (str=str@entry=0x7ffff4ed25c0 "double free or corruption (!prev)") at ./malloc/malloc.c:5772
    #6  0x00007ffff4dc39ac in _int_free_merge_chunk (av=av@entry=0x7ffff4f0bac0 <main_arena>, p=p@entry=0x555558f7c700, size=size@entry=352) at ./malloc/malloc.c:4679
    #7  0x00007ffff4dc3db0 in _int_free (av=0x7ffff4f0bac0 <main_arena>, p=0x555558f7c700, have_lock=<optimized out>, have_lock@entry=0) at ./malloc/malloc.c:4646
    #8  0x00007ffff4dc643f in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3398
    #9  0x00007ffff72f02a2 in std::__new_allocator<synfig::rendering::Contour::Chunk>::deallocate (this=0x555558b3aa70, __p=0x555558f7c710, __n=6) at /usr/include/c++/14/bits/new_allocator.h:172
    #10 0x00007ffff72edfac in std::allocator_traits<std::allocator<synfig::rendering::Contour::Chunk> >::deallocate (__a=..., __p=0x555558f7c710, __n=6) at /usr/include/c++/14/bits/alloc_traits.h:550
    #11 std::_Vector_base<synfig::rendering::Contour::Chunk, std::allocator<synfig::rendering::Contour::Chunk> >::_M_deallocate (this=0x555558b3aa70, __p=0x555558f7c710, __n=6)
        at /usr/include/c++/14/bits/stl_vector.h:389
    #12 0x00007ffff72ec7f9 in std::_Vector_base<synfig::rendering::Contour::Chunk, std::allocator<synfig::rendering::Contour::Chunk> >::~_Vector_base (this=0x555558b3aa70, __in_chrg=<optimized out>)
        at /usr/include/c++/14/bits/stl_vector.h:368
    #13 0x00007ffff72ec85b in std::vector<synfig::rendering::Contour::Chunk, std::allocator<synfig::rendering::Contour::Chunk> >::~vector (this=0x555558b3aa70, __in_chrg=<optimized out>)
        at /usr/include/c++/14/bits/stl_vector.h:738
    #14 0x00007ffff72e9b20 in synfig::rendering::Contour::~Contour (this=0x555558b3aa60, __in_chrg=<optimized out>) at /home/rodolfo/projetos/synfig/synfig-core/src/synfig/rendering/primitive/contour.cpp:307
    #15 0x00007ffff72e9b48 in synfig::rendering::Contour::~Contour (this=0x555558b3aa60, __in_chrg=<optimized out>) at /home/rodolfo/projetos/synfig/synfig-core/src/synfig/rendering/primitive/contour.cpp:307
    #16 0x0000555555f2df23 in etl::shared_object::unref (this=0x555558b3aa60) at /home/rodolfo/projetos/synfig/ETL/ETL/_handle.h:104
    #17 0x00007ffff727c328 in etl::handle<synfig::rendering::Contour>::reset (this=0x7fff7804cfb0) at /home/rodolfo/projetos/synfig/ETL/ETL/_handle.h:233
    #18 0x00007ffff727bdb0 in etl::handle<synfig::rendering::Contour>::~handle (this=0x7fff7804cfb0, __in_chrg=<optimized out>) at /home/rodolfo/projetos/synfig/ETL/ETL/_handle.h:180
    #19 0x00007ffff72dcd03 in synfig::rendering::TaskContour::~TaskContour (this=0x7fff7804ce30, __in_chrg=<optimized out>)
        at /home/rodolfo/projetos/synfig/synfig-core/src/synfig/rendering/software/task/../../common/task/taskcontour.h:48
    #20 0x00007ffff73439e2 in (anonymous namespace)::TaskContourSW::~TaskContourSW (this=0x7fff7804ce30, __in_chrg=<optimized out>)
        at /home/rodolfo/projetos/synfig/synfig-core/src/synfig/rendering/software/task/taskcontoursw.cpp:58
    #21 0x00007ffff7343a2e in (anonymous namespace)::TaskContourSW::~TaskContourSW (this=0x7fff7804ce30, __in_chrg=<optimized out>)
        at /home/rodolfo/projetos/synfig/synfig-core/src/synfig/rendering/software/task/taskcontoursw.cpp:58
    #22 0x0000555555f2df23 in etl::shared_object::unref (this=0x7fff7804ce30) at /home/rodolfo/projetos/synfig/ETL/ETL/_handle.h:104
    #23 0x00005555561b4b8a in etl::handle<synfig::rendering::Task>::reset (this=0x7fffc27d09e0) at /home/rodolfo/projetos/synfig/ETL/ETL/_handle.h:233
    #24 0x00005555561b151e in etl::handle<synfig::rendering::Task>::~handle (this=0x7fffc27d09e0, __in_chrg=<optimized out>) at /home/rodolfo/projetos/synfig/ETL/ETL/_handle.h:180
    #25 0x00007ffff72c5a40 in synfig::rendering::RenderQueue::process (this=0x555556cdb6e0, thread_index=4) at /home/rodolfo/projetos/synfig/synfig-core/src/synfig/rendering/renderqueue.cpp:192
    #26 0x00007ffff72ccaa7 in sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>::operator() (this=0x555556d21998, _A_a1=@0x7fffc27d0a5c: 4)
        at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:2066
    #27 0x00007ffff72cca46 in sigc::adaptor_functor<sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int> >::operator()<unsigned int&> (this=0x555556d21990, _A_arg1=@0x555556d219b0: 4)
        at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:89
    #28 0x00007ffff72cc9f2 in sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::operator()
        (this=0x555556d21988) at /usr/include/sigc++-2.0/sigc++/adaptors/bind.h:1124
    #29 0x00007ffff72cc9a4 in std::__invoke_impl<void, sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>>(std::__invoke_other, sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>&&)
        (__f=...) at /usr/include/c++/14/bits/invoke.h:61
    #30 0x00007ffff72cc967 in std::__invoke<sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>>(sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>&&) (__fn=...)
        at /usr/include/c++/14/bits/invoke.h:96
    #31 0x00007ffff72cc914 in std::thread::_Invoker<std::tuple<sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil> > >::_M_invoke<0ul> (this=0x555556d21988) at /usr/include/c++/14/bits/std_thread.h:301
    #32 0x00007ffff72cc8e8 in std::thread::_Invoker<std::tuple<sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil> > >::operator() (this=0x555556d21988) at /usr/include/c++/14/bits/std_thread.h:308
    #33 0x00007ffff72cc8cc in std::thread::_State_impl<std::thread::_Invoker<std::tuple<sigc::bind_functor<-1, sigc::bound_mem_functor1<void, synfig::rendering::RenderQueue, int>, unsigned int, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil> > > >::_M_run (this=0x555556d21980) at /usr/include/c++/14/bits/std_thread.h:253
    #34 0x00007ffff50e0e64 in ??? () at /lib/x86_64-linux-gnu/libstdc++.so.6
    #35 0x00007ffff4db6083 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
    #36 0x00007ffff4e347b8 in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
    

    The problem is double free with... etl::handle destructor? o.O

  12. Rdc19 commented on Feb 22, 2025

    @Rdc19
    Author

    Is the problem on my end?

  13. rodolforg commented on Feb 22, 2025

    @rodolforg
    Contributor

    No, @Rdc19 .
    It seems to an internal problem due to multithreading.

  14. Rdc19 commented on Feb 22, 2025

    @Rdc19
    Author

    Noted, also I feel my laptop might be playing a role in the crashes too, since you had to zoom in to experience the crash yourself

  15. rodolforg commented on Mar 3, 2025

    @rodolforg
    Contributor
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