Undo creating Spline cause Synfig hang


have another … youpi ! someone who confirm ?

1- start synfig
2- create/draw one layer (gradient for example)
3- select Spline Tool
4- draw a Spline WITHOUT make it (do not change tool or push gears button)
5- hit Undo (or Ctrl+z) : NewSpline created AND Gradient layer disappear
6- hit Redo … Gradient did not appear - NewSpline layers duplicated !
7- hit Undo : Synfig do not give response any more

If confirmed, i think the dysfunction is around step 5 : Undo when making a Spline should react has Echap , is’t it ? (Or deactivated maybe )

Stack call of around this hang

Thread 1 (Thread 0xb5fdd880 (LWP 4546)): #0 0xb7fde424 in __kernel_vsyscall () #1 0xb776709a in pthread_rwlock_wrlock () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 #2 0xb7c19eed in synfig::RWLock::writer_lock (this=0x936305c) at mutex.cpp:204 #3 0xb7bd0e1b in synfig::RWLock::WriterLock::WriterLock (this=0xbffff6f8, x=...) at mutex.h:98 #4 0xb7bcf73f in synfig::IndependentContext::set_time (this=0xbffff790, time=...) at context.cpp:113 #5 0xb7bad1a6 in synfig::Canvas::set_time (this=0x8f30800, t=...) at canvas.cpp:330 #6 0x086ca9ee in studio::WorkArea::async_render_preview (this=0x8fd3e40, time=...) at workarea.cpp:3090 #7 0x086cb57b in studio::WorkArea::__render_preview (data=0x8fd3e40) at workarea.cpp:3242 #8 0xb673b1d7 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #9 0xb673a483 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0 #10 0xb673a820 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #11 0xb673acfb in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0 #12 0xb6ecbad0 in gtk_main () from /usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0 #13 0xb75da264 in Gtk::Main::run_impl() () from /usr/lib/libgtkmm-2.4.so.1 #14 0xb75dac9f in Gtk::Main::run() () from /usr/lib/libgtkmm-2.4.so.1 #15 0x083c6b02 in main (argc=0, argv=0xbffffb04) at main.cpp:108

Regardless the confirmation or not of the bug, what does “Echap” mean? :open_mouth:

Yes, this happens for me too - Fedora 19 KDE, Development version:
Revision: 20130826 Branch: master Revision ID: 034175 Built on Aug 26 2013

Escape in French.

Thanks! :blush:

good. Now besides synfig and english, I can learn some French as well in synfig forums :mrgreen:

ok, thanks anyone who involved in synfig development testing, have a nice weekend.

Hmmm, difficult to say. Who would like to undo an action that is not complete? I think it should be disabled, since you’re in a task (Creating a Spline) and it shouldn’t be allowed to do “other tasks” like undo the last action.
In general, when one tool is activated and needs a finalization action from the user to perform the action itself, I think better to disable the undo/redo buttons/signals.

humm … it’s how i found the cookie … :open_mouth: … this can have sense to hit undo a misplaced point of the spline … is’t ?

in this case, with a status message “Ctrl-Z canceled” / and UI toolbox unod/redo button deactivated for sure !