synfig crashing

specs
synfig 63.04
ubuntu 10.10
64bit version

everything is working well, until I press ctrl or alt or shift (usually after about 20mins of use) and then it crashes just from the 1 button press. Is there a log file I can check for you guys?

The files Im working with are not HUGE, but I do have 3 different files open and they are linked.

You can run synfigstudio from a terminal:
$ synfigstudio
It would allow to you to read any message that has been drop to the terminal during the crash.
It is a very weird crash since pressing only one key … Do you have one context (tool, selection or whatever) where the crash is predictable? Also, does it happen if you run Synfig Studio in other distribution (11.04, 11.10) but in the same machine?
Crashes that happens after some period of time are difficult to track. There isn’t any way to trigger it earlier and in a predictable way?
-G

Thanks for quick response.
I dont have the other versions of linux so I cant test it. (might test the same files in windows, but the windows version runs about 10x slower than on linux)

I caught a crash just now, this time it was simply a mouse click after I removed a layer

Remove Layer ‘motion-blur’ Successful
*** glibc detected *** synfigstudio: double free or corruption (fasttop): 0x00000000040b7e90 ***
======= Backtrace: =========
/lib/libc.so.6(+0x774b6)[0x7fe96b8f44b6]
/lib/libc.so.6(cfree+0x73)[0x7fe96b8fac83]
synfigstudio(_ZN6studio14Renderer_Ducks12render_vfuncERKN4Glib6RefPtrIN3Gdk8DrawableEEERKNS3_9RectangleE+0x6bc)[0x74394c]
synfigstudio(_ZN6studio8WorkArea7refreshEP15_GdkEventExpose+0x12d)[0x85f5ad]
synfigstudio(ZN4sigc8internal10slot_call1INS_18bound_mem_functor1IbN6studio8WorkAreaEP15_GdkEventExposeEEbS6_E7call_itEPNS0_8slot_repERKS6+0x30)[0x875c30]
/opt/synfig/lib/libgtkmm-2.4.so.1(+0x32c1c1)[0x7fe96fad81c1]
/usr/lib/libgtk-x11-2.0.so.0(+0x13a9d8)[0x7fe96eec69d8]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7fe96cca0a6e]
/usr/lib/libgobject-2.0.so.0(+0x251e4)[0x7fe96ccb71e4]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)[0x7fe96ccb80eb]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7fe96ccb8863]
/usr/lib/libgtk-x11-2.0.so.0(+0x2536df)[0x7fe96efdf6df]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x556)[0x7fe96eec01b6]
/usr/lib/libgdk-x11-2.0.so.0(+0x439da)[0x7fe96e6759da]
/usr/lib/libgdk-x11-2.0.so.0(+0x43987)[0x7fe96e675987]
/usr/lib/libgdk-x11-2.0.so.0(+0x4046b)[0x7fe96e67246b]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0x131)[0x7fe96e6742e1]
/usr/lib/libgtk-x11-2.0.so.0(+0xb4f81)[0x7fe96ee40f81]
/usr/lib/libgdk-x11-2.0.so.0(+0x1d626)[0x7fe96e64f626]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7fe96c3df342]
/lib/libglib-2.0.so.0(+0x442a8)[0x7fe96c3e32a8]
/lib/libglib-2.0.so.0(g_main_context_iteration+0x6c)[0x7fe96c3e345c]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_iteration_do+0x1d)[0x7fe96eec022d]
/opt/synfig/lib/libgtkmm-2.4.so.1(_ZN3Gtk4Main14iteration_implEb+0xd)[0x7fe96fa658bd]
/opt/synfig/lib/libgtkmm-2.4.so.1(_ZN3Gtk4Main9iterationEb+0x19)[0x7fe96fa65819]
synfigstudio(_ZN17GlobalUIInterface4taskERKSs+0x1f)[0x772d3f]
/opt/synfig/lib/libsynfigapp.so.0(_ZN9synfigapp6Action6System14perform_actionEN3etl6handleINS0_4BaseEEE+0x676)[0x7fe9707276f6]
synfigstudio(_ZN6studio8Instance14process_actionESsN9synfigapp6Action9ParamListE+0x367)[0x812b07]
synfigstudio(_ZN4sigc8internal10slot_call0INS_12bind_functorILin1ENS2_ILin1ENS_18bound_mem_functor2IvN6studio8InstanceESsN9synfigapp6Action9ParamListEEES8_NS_3nilESA_SA_SA_SA_SA_EESsSA_SA_SA_SA_SA_SA_EEvE7call_itEPNS0_8slot_repE+0xdb)[0x82d26b]
/opt/synfig/lib/libglibmm-2.4.so.1(_ZN4Glib17SignalProxyNormal19slot0_void_callbackEP8_GObjectPv+0x33)[0x7fe96ea23a73]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7fe96cca0a6e]
/usr/lib/libgobject-2.0.so.0(+0x251e4)[0x7fe96ccb71e4]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7e6)[0x7fe96ccb82a6]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7fe96ccb8863]
/usr/lib/libgtk-x11-2.0.so.0(+0x73a23)[0x7fe96edffa23]
/usr/lib/libgtk-x11-2.0.so.0(+0x205e89)[0x7fe96ef91e89]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7fe96cca0a6e]
/usr/lib/libgobject-2.0.so.0(+0x24de7)[0x7fe96ccb6de7]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7e6)[0x7fe96ccb82a6]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7fe96ccb8863]
/usr/lib/libgtk-x11-2.0.so.0(+0x8de85)[0x7fe96ee19e85]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7fe96cca0a6e]
/usr/lib/libgobject-2.0.so.0(+0x246b1)[0x7fe96ccb66b1]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7e6)[0x7fe96ccb82a6]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7fe96ccb8863]
/usr/lib/libgtk-x11-2.0.so.0(+0x8cb8d)[0x7fe96ee18b8d]
/usr/lib/libgtk-x11-2.0.so.0(+0x13a9d8)[0x7fe96eec69d8]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x7fe96cca0a6e]
/usr/lib/libgobject-2.0.so.0(+0x24a30)[0x7fe96ccb6a30]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)[0x7fe96ccb80eb]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7fe96ccb8863]
/usr/lib/libgtk-x11-2.0.so.0(+0x2536df)[0x7fe96efdf6df]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc3)[0x7fe96eebee73]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x2eb)[0x7fe96eebff4b]
/usr/lib/libgdk-x11-2.0.so.0(+0x5c74c)[0x7fe96e68e74c]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7fe96c3df342]
/lib/libglib-2.0.so.0(+0x442a8)[0x7fe96c3e32a8]
/lib/libglib-2.0.so.0(g_main_loop_run+0x195)[0x7fe96c3e37b5]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7fe96eec03e7]
synfigstudio(main+0xe4)[0x54a644]
/lib/libc.so.6(__libc_start_main+0xfe)[0x7fe96b89bd8e]
synfigstudio(_ZN6synfig9ValueNode10on_changedEv+0x122)[0x54a46a]
======= Memory map: ========
00400000-00992000 r-xp 00000000 07:00 23034 /usr/bin/synfigstudio
00a91000-00a95000 rw-p 00591000 07:00 23034 /usr/bin/synfigstudio
00a95000-00ac8000 rw-p 00000000 00:00 0
0253f000-0477b000 rw-p 00000000 00:00 0 [heap]
7fe950000000-7fe952da9000 rw-p 00000000 00:00 0
7fe952da9000-7fe954000000 —p 00000000 00:00 0
7fe958000000-7fe95a986000 rw-p 00000000 00:00 0
7fe95a986000-7fe95c000000 —p 00000000 00:00 0
7fe95f4b8000-7fe95f4b9000 —p 00000000 00:00 0
7fe95f4b9000-7fe95fcb9000 rw-p 00000000 00:00 0
7fe95fcb9000-7fe95fcba000 —p 00000000 00:00 0
7fe95fcba000-7fe9604ba000 rw-p 00000000 00:00 0
7fe96051c000-7fe960552000 r-xp 00000000 07:00 3327 /usr/lib/libcroco-0.6.so.3.0.1
7fe960552000-7fe960751000 —p 00036000 07:00 3327 /usr/lib/libcroco-0.6.so.3.0.1
7fe960751000-7fe960752000 r–p 00035000 07:00 3327 /usr/lib/libcroco-0.6.so.3.0.1
7fe960752000-7fe960755000 rw-p 00036000 07:00 3327 /usr/lib/libcroco-0.6.so.3.0.1
7fe960755000-7fe960788000 r-xp 00000000 07:00 3959 /usr/lib/librsvg-2.so.2.32.0
7fe960788000-7fe960988000 —p 00033000 07:00 3959 /usr/lib/librsvg-2.so.2.32.0
7fe960988000-7fe960989000 r–p 00033000 07:00 3959 /usr/lib/librsvg-2.so.2.32.0
7fe960989000-7fe96098a000 rw-p 00034000 07:00 3959 /usr/lib/librsvg-2.so.2.32.0
7fe9609a4000-7fe9609a6000 r-xp 00000000 07:00 6737 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fe9609a6000-7fe960ba5000 —p 00002000 07:00 6737 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fe960ba5000-7fe960ba6000 r–p 00001000 07:00 6737 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fe960ba6000-7fe960ba7000 rw-p 00002000 07:00 6737 /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so
7fe960ba7000-7fe960bc0000 r–s 00000000 07:00 164477 /usr/share/mime/mime.cache
7fe960bc0000-7fe961117000 r–p 00000000 07:00 164591 /usr/share/icons/hicolor/icon-theme.cache
7fe961117000-7fe9633c1000 r–p 00000000 07:00 166092 /usr/share/icons/gnome/icon-theme.cache
7fe9633c1000-7fe963492000 r–p 00000000 07:00 136239 /usr/share/icons/Humanity/icon-theme.cache
7fe963492000-7fe9634f2000 rw-s 00000000 00:04 3702797 /SYSV00000000 (deleted)
7fe9634f2000-7fe9634f4000 r-xp 00000000 07:00 147071 /lib/libutil-2.12.1.so
7fe9634f4000-7fe9636f3000 —p 00002000 07:00 147071 /lib/libutil-2.12.1.so
7fe9636f3000-7fe9636f4000 r–p 00001000 07:00 147071 /lib/libutil-2.12.1.so
7fe9636f4000-7fe9636f5000 rw-p 00002000 07:00 147071 /lib/libutil-2.12.1.so
7fe9636f5000-7fe963700000 r-xp 00000000 07:00 133509 /lib/libudev.so.0.9.1
7fe963700000-7fe963900000 —p 0000b000 07:00 133509 /lib/libudev.so.0.9.1
7fe963900000-7fe963901000 r–p 0000b000 07:00 133509 /lib/libudev.so.0.9.1
7fe963901000-7fe963902000 rw-p 0000c000 07:00 133509 /lib/libudev.so.0.9.1
7fe963902000-7fe963918000 r-xp 00000000 07:00 3953 /usr/lib/libgvfscommon.so.0.0.0
7fe963918000-7fe963b18000 —p 00016000 07:00 3953 /usr/lib/libgvfscommon.so.0.0.0
7fe963b18000-7fe963b19000 r–p 00016000 07:00 3953 /usr/lib/libgvfscommon.so.0.0.0
7fe963b19000-7fe963b1a000 rw-p 00017000 07:00 3953 /usr/lib/libgvfscommon.so.0.0.0
7fe963b1a000-7fe963b42000 r-xp 00000000 07:00 7346 /usr/lib/gio/modules/libgvfsdbus.so
7fe963b42000-7fe963d42000 —p 00028000 07:00 7346 /usr/lib/gio/modules/libgvfsdbus.so
7fe963d42000-7fe963d43000 r–p 00028000 07:00 7346 /usr/lib/gio/modules/libgvfsdbus.so
7fe963d43000-7fe963d44000 rw-p 00029000 07:00 7346 /usr/lib/gio/modules/libgvfsdbus.so
7fe963d44000-7fe963d4b000 r-xp 00000000 07:00 6844 /usr/lib/gio/modules/libdconfsettings.so
7fe963d4b000-7fe963f4a000 —p 00007000 07:00 6844 /usr/lib/gio/modules/libdconfsettings.so
7fe963f4a000-7fe963f4b000 r–p 00006000 07:00 6844 /usr/lib/gio/modules/libdconfsettings.so
7fe963f4b000-7fe963f4c000 rw-p 00007000 07:00 6844 /usr/lib/gio/modules/libdconfsettings.so
7fe963f4c000-7fe963f8c000 r-xp 00000000 07:00 3679 /usr/lib/libibus.so.2.0.0
7fe963f8c000-7fe96418c000 —p 00040000 07:00 3679 /usr/lib/libibus.so.2.0.0
7fe96418c000-7fe96418d000 r–p 00040000 07:00 3679 /usr/lib/libibus.so.2.0.0
7fe96418d000-7fe96418e000 rw-p 00041000 07:00 3679 /usr/lib/libibus.so.2.0.0
7fe96418e000-7fe96418f000 rw-p 00000000 00:00 0
7fe96418f000-7fe9641cf000 r-xp 00000000 07:00 132505 /lib/libdbus-1.so.3.5.2
7fe9641cf000-7fe9643cf000 —p 00040000 07:00 132505 /lib/libdbus-1.so.3.5.2
7fe9643cf000-7fe9643d0000 r–p 00040000 07:00 132505 /lib/libdbus-1.so.3.5.2
7fe9643d0000-7fe9643d1000 rw-p 00041000 07:00 132505 /lib/libdbus-1.so.3.5.2
7fe9643d1000-7fe9643d6000 r-xp 00000000 07:00 901 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7fe9643d6000-7fe9645d5000 —p 00005000 07:00 901 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7fe9645d5000-7fe9645d6000 r–p 00004000 07:00 901 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7fe9645d6000-7fe9645d7000 rw-p 00005000 07:00 901 /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so
7fe9645d7000-7fe9645d9000 r-xp 00000000 07:00 2144 /usr/lib/gconv/ISO8859-1.so
7fe9645d9000-7fe9647d8000 —p 00002000 07:00 2144 Aborted

It happened again, this time just with an alt (I was getting ready to delete a waypoint with alt-mouse click)
It just seg faulted (I dont think the last 3 lines before that are related)

synfig(7290) [08:02:07 PM] warning: layer_pastecanvas.cpp:413 bounding box shrank while rendering?
synfig(7290) [08:02:07 PM] warning: layer_pastecanvas.cpp:413 bounding box shrank while rendering?
synfig(7290) [08:02:07 PM] warning: layer_pastecanvas.cpp:413 bounding box shrank while rendering?
Segmentation fault

If I dont use the keyboard short cuts
(ALT+mouse) to delete waypoints
(CTRL+mouse scroll) to zoom

and use the mouse buttom version of those, then it doesnt crash…

I dont think this happen with the 62.xx version I had, was something changed in the event handler for these keypresses perhaps?

So it means that you know how to make it crash. Can you reproduce the crash consistently? (small recipe with predictable crash)
Apart of download it again and reinstall, you could try to create your own package and see if that helps.

Download the autobuild script and run it to create your own package. Then install it in your system:
synfig.git.sourceforge.net/git/g … 91;hb=HEAD
Instructions are listed inside the build script.
Good luck
-G

I occasionally have this problem as well. I am on Debian (Wheezy), but I compiled Synfig and its dependencies.
Reproducable by:

Get BLine tool.
Check the ‘Region’ and ‘Advanced Outline’ boxes, so both are created.
Draw a shape (I only had to use two vertices, both with tangents). I did not loop vertices.
Get Normal tool, to finish shape.
My window manager allows me to focus a window by hovering over it, so I hover over the layers list.
Press Shift or Ctrl.

Perhaps this has something to do with both layers (outline and fill) being selected while pressing a modifier key?

I also remember this happening with the mouse over the workarea, but forgot how to reproduce that one.

If you don’t follow this step, does the crash happen?
And which windows manager are you using? This might be critical to reproduce a bug like that.
-G

It tends to happen right after I create an Adv. Outline and Region at the same time, click normal, then press a modifier key. There have been other cases, but I do not remember the specific details. I think it happens if I use a modifier on any window. I’ll test that…

I use FVWM with the SloppyFocus style enabled, i.e. hovering over a window gives it focus.

It looks like only hovering over the right window makes it do this.

“right” means the one on the right or the “proper one”?
If you disable the SloppyFocus style, does it happen?
-G