View Issue Details

IDProjectCategoryView StatusLast Update
0001576ardourbugspublic2008-11-21 00:11
Reporteresaracco Assigned Tocth103  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0001576: Undo and region split
Description[SVN trunk]

Once a split has been undone it is impossible to split the same region again.

To reproduce it:

1/ Click on a region.
2/ Enter "s" or select "Split" in the menu.
3/ Undo the split.
4/ Try to split the same region again: impossible.
TagsNo tags attached.

Relationships

related to 0001583 closedpaul crash when trying to resize after undoing a split 

Activities

nowhiskey

2007-03-26 12:47

reporter   ~0003660

here i can reproduce this, in my case ardour crashes every time when i try to separate again.

backstrace:

Program terminated with signal 6, Aborted.
#0 0xb6768947 in raise () from /lib/tls/libc.so.6
(gdb) thread apply all bt

Thread 5 (process 11265):
#0 0xb6a53b3c in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
0000001 0xb759f292 in g_usleep () from /usr/share/qt4/lib/libglib-2.0.so.0
#2 0xb6d24cc1 in Glib::usleep (microseconds=10000) at
#libs/glibmm2/glibmm/timer.cc:68
#3 0xb7c9f766 in ARDOUR::AudioEngine::meter_thread (this=0x8af6128) at
#libs/ardour/audioengine.cc:412
0000004 0xb7ca2468 in sigc::bound_mem_functor0<void,
#ARDOUR::AudioEngine>::operator() (this=0x899b914) at
#libs/sigc++2/sigc++/functors/mem_fun.h:1781
0000005 0xb7ca248a in sigc::adaptor_functor<sigc::bound_mem_functor0<void,
#ARDOUR::AudioEngine> >::operator() (this=0x899b910)
    at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:251
#6 0xb7ca24b6 in sigc::internal::slot_call0<sigc::bound_mem_functor0<void,
ARDOUR::AudioEngine>, void>::call_it (rep=0x899b8f8)
    at libs/sigc++2/sigc++/functors/slot.h:103
#7 0x0835f2d2 in sigc::slot0<void>::operator() (this=0x8a71ab8) at
libs/sigc++2/sigc++/functors/slot.h:440
0000008 0xb6d3e259 in call_thread_entry_slot (data=0x8a71ab8) at
libs/glibmm2/glibmm/thread.cc:43
0000009 0xb759d2cf in g_thread_create_full () from
/usr/share/qt4/lib/libglib-2.0.so.0
0000010 0xb6a4e0bd in start_thread () from /lib/tls/libpthread.so.0
0000011 0xb680b9ee in clone () from /lib/tls/libc.so.6

Thread 4 (process 11266):
#0 0xb6801ef9 in poll () from /lib/tls/libc.so.6
0000001 0xb6a6189b in jack_client_thread (arg=0x8b00210) at client.c:1309
#2 0xb6a66850 in jack_thread_proxy (varg=0x88cd390) at thread.c:111
#3 0xb6a4e0bd in start_thread () from /lib/tls/libpthread.so.0
0000004 0xb680b9ee in clone () from /lib/tls/libc.so.6

Thread 3 (process 11275):
#0 0xb6801ef9 in poll () from /lib/tls/libc.so.6
0000001 0xb7dcb607 in ARDOUR::Session::butler_thread_work (this=0x8da5748) at
#libs/ardour/session_butler.cc:176
#2 0xb7dcc3eb in ARDOUR::Session::_butler_thread_work (arg=0x8da5748) at
#libs/ardour/session_butler.cc:157
#3 0xb6a4e0bd in start_thread () from /lib/tls/libpthread.so.0
0000004 0xb680b9ee in clone () from /lib/tls/libc.so.6

Thread 2 (process 11276):
#0 0xb6801ef9 in poll () from /lib/tls/libc.so.6
0000001 0xb7deaaab in ARDOUR::Session::midi_thread_work (this=0x8da5748) at
#libs/ardour/session_midi.cc:1207
#2 0xb7deb015 in ARDOUR::Session::_midi_thread_work (arg=0x8da5748) at
#libs/ardour/session_midi.cc:1128
#3 0xb6a4e0bd in start_thread () from /lib/tls/libpthread.so.0
0000004 0xb680b9ee in clone () from /lib/tls/libc.so.6
Thread 1 (process 11262):
#0 0xb6768947 in raise () from /lib/tls/libc.so.6
0000001 0xb676a0c9 in abort () from /lib/tls/libc.so.6
#2 0xb676205f in __assert_fail () from /lib/tls/libc.so.6
#3 0x083e7bb7 in boost::shared_ptr<ARDOUR::Playlist>::operator*
#(this=0xbff13548) at /usr/include/boost/shared_ptr.hpp:247
0000004 0x084e35cc in Editor::region_drag_finished_callback (this=0x8be1280,
#item=0x8fb2578, event=0x8f84870) at gtk2_ardour/editor_mouse.cc:3386
0000005 0x084e08a4 in Editor::end_grab (this=0x8be1280, item=0x8fb2578,
#event=0x8f84870) at gtk2_ardour/editor_mouse.cc:1625
#6 0x084bcd9f in Editor::track_canvas_event (this=0x8be1280,
#event=0x8f84870, item=0x0) at gtk2_ardour/editor_canvas_events.cc:152
#7 0x084b8c6d in sigc::bound_mem_functor2<bool, Editor, _GdkEvent*,
#Gnome::Canvas::Item*>::operator() (this=0x8c0c008, _A_a1=@0xbff13804,
#_A_a2=@0x8c0c014)
    at libs/sigc++2/sigc++/functors/mem_fun.h:1897
0000008 0x084b8c98 in sigc::adaptor_functor<sigc::bound_mem_functor2<bool,
Editor, _GdkEvent*, Gnome::Canvas::Item*> >::operator()<_GdkEvent* const&,
#Gnome::Canvas::Item*&>
    (this=0x8c0c004, _A_arg1=@0xbff13804, _A_arg2=@0x8c0c014) at
#libs/sigc++2/sigc++/adaptors/adaptor_trait.h:103
0000009 0x084b8cc3 in sigc::bind_functor<-1, sigc::bound_mem_functor2<bool,
#Editor, _GdkEvent*, Gnome::Canvas::Item*>, Gnome::Canvas::Item*, sigc::nil,
#sigc::nil, sigc::nil, sigc::nil, sigc::nil,
#sigc::nil>::operator()<_GdkEvent* const&> (this=0x8c0c000,
#_A_arg1=@0xbff13804) at libs/sigc++2/sigc++/adaptors/bind.h:1122
0000010 0x084b8ce9 in sigc::internal::slot_call1<sigc::bind_functor<-1,
#sigc::bound_mem_functor2<bool, Editor, _GdkEvent*, Gnome::Canvas::Item*>,
#Gnome::Canvas::Item*, sigc::nil, sigc::nil, sigc::nil, sigc::nil,
#sigc::nil, sigc::nil>, bool, _GdkEvent*>::call_it (rep=0x8c0bfe8,
#a_1=@0xbff13804) at libs/sigc++2/sigc++/functors/slot.h:137
0000011 0xb785e9b9 in sigc::slot1<bool, _GdkEvent*>::operator() (this=0x8c0bfd4,
#_A_a1=@0xbff13804) at libs/sigc++2/sigc++/functors/slot.h:512
0000012 0xb7883e14 in (anonymous namespace)::Widget_signal_event_callback
#(self=0x8be7050, p0=0x8f84870, data=0x8c0bfd0) at
#libs/gtkmm2/gtk/gtkmm/widget.cc:989
0000013 0xb732b250 in _gtk_marshal_BOOLEAN__BOXED () from
#/usr/share/qt4/lib/libgtk-x11-2.0.so.0
0000014 0xb75fb98b in g_closure_invoke () from
#/usr/share/qt4/lib/libgobject-2.0.so.0
#15 0xb760c213 in g_signal_chain_from_overridden () from
#/usr/share/qt4/lib/libgobject-2.0.so.0
0000016 0xb760d208 in g_signal_emit_valist () from
#/usr/share/qt4/lib/libgobject-2.0.so.0
#17 0xb760d5d9 in g_signal_emit () from
#/usr/share/qt4/lib/libgobject-2.0.so.0
0000018 0xb7414e28 in gtk_widget_get_default_style () from
#/usr/share/qt4/lib/libgtk-x11-2.0.so.0
0000019 0xb7324bd3 in gtk_propagate_event () from
#/usr/share/qt4/lib/libgtk-x11-2.0.so.0
0000020 0xb7325e07 in gtk_main_do_event () from
#/usr/share/qt4/lib/libgtk-x11-2.0.so.0
0000021 0xb71beeea in _gdk_events_init () from
#/usr/share/qt4/lib/libgdk-x11-2.0.so.0
0000022 0xb757f731 in g_main_context_dispatch () from
#/usr/share/qt4/lib/libglib-2.0.so.0
0000023 0xb75827a6 in g_main_context_check () from
#/usr/share/qt4/lib/libglib-2.0.so.0
#24 0xb7582b67 in g_main_loop_run () from
#/usr/share/qt4/lib/libglib-2.0.so.0
0000025 0xb7326281 in gtk_main () from /usr/share/qt4/lib/libgtk-x11-2.0.so.0
0000026 0xb7802bc1 in Gtk::Main::run_impl (this=0x884a938) at
#libs/gtkmm2/gtk/gtkmm/main.cc:503
0000027 0xb78029ce in Gtk::Main::run () at libs/gtkmm2/gtk/gtkmm/main.cc:450
0000028 0xb7a82183 in Gtkmm2ext::UI::run (this=0x8847920,
#old_receiver=@0x8826880) at libs/gtkmm2ext/gtk_ui.cc:216
0000029 0x085b1f5c in main (argc=1, argv=0xbff13ff4) at gtk2_ardour/main.cc:295
...........


cheers,
doc

cth103

2007-03-26 15:31

administrator   ~0003665

Confirmed here as well.

cth103

2007-03-26 15:56

administrator   ~0003667

I think this could be because the Playlist::set_state() called on undo doesn't set up the playlist pointers in regions that it puts back, so on undo the original region is recreated but doesn't know its playlist, so then Editor::split_regions_at() refuses to do anything.

But I'm probably wrong ;)

cth103

2007-04-06 13:36

administrator   ~0003721

I believe this is fixed in SVN. Can you confirm?

Thanks

Carl

nowhiskey

2007-04-06 14:19

reporter   ~0003722

yes, it is fixed here!

cheers,
doc

cth103

2007-04-06 14:24

administrator   ~0003723

Thanks!

Issue History

Date Modified Username Field Change
2007-03-25 12:21 esaracco New Issue
2007-03-26 12:47 nowhiskey Note Added: 0003660
2007-03-26 15:31 cth103 Note Added: 0003665
2007-03-26 15:56 cth103 Note Added: 0003667
2007-04-06 13:35 cth103 Relationship added related to 0001583
2007-04-06 13:36 cth103 Note Added: 0003721
2007-04-06 13:36 cth103 Status new => feedback
2007-04-06 14:19 nowhiskey Note Added: 0003722
2007-04-06 14:24 cth103 Status feedback => resolved
2007-04-06 14:24 cth103 Resolution open => fixed
2007-04-06 14:24 cth103 Assigned To => cth103
2007-04-06 14:24 cth103 Note Added: 0003723
2008-11-21 00:11 seablade Status resolved => closed