View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002556 | ardour | bugs | public | 2009-02-19 13:49 | 2010-04-24 10:33 |
| Reporter | oofus | Assigned To | drobilla | ||
| Priority | normal | Severity | crash | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | Dell Latitude D830 | OS | Mandriva | OS Version | 2009 |
| Summary | 0002556: Cannot draw midi notes. Ardour crashes on mouse button release. | ||||
| Description | Using the pencil midi tool crashes Ardour when drawing midi notes. ardour-3.0: libs/evoral/src/Note.cpp:41: Evoral::Note<Time>::Note(uint8_t, Time, Time, uint8_t, uint8_t) [with Time = double]: Assertion `length() == l' failed. But only when the midi track is zoomed out vertically using the scroomer. | ||||
| Steps To Reproduce | create a new midi track. Create a new midi region with the pencil tool. Use the scroomer to zoom right out. Draw a note with the pencil tool. | ||||
| Tags | No tags attached. | ||||
|
|
Hmm, doesn't seem to be fixed, I'm still seeing the same issue. |
|
|
Precise reproduction instructions please. |
|
2009-02-22 11:49
|
crashlog midi pencil tool (13,956 bytes)
[Thread 0xaf4e4b90 (LWP 18875) exited] ardour-3.0: libs/evoral/src/Note.cpp:41: Evoral::Note<Time>::Note(uint8_t, Time, Time, uint8_t, uint8_t) [with Time = double]: Assertion `length() == l' failed. Program received signal SIGABRT, Aborted. 0xffffe424 in __kernel_vsyscall () Missing debug package(s), you should install: nss_mdns-debug (gdb) thread apply all bt Thread 18 (Thread 0xada80cb0 (LWP 18868)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb5e802d7 in poll () from /lib/i686/libc.so.6 #2 0xb7de1b80 in ARDOUR::Session::midi_thread_work (this=0xa411608) at libs/ardour/session_midi.cc:1190 #3 0xb7de2039 in ARDOUR::Session::_midi_thread_work (arg=0xa411608) at libs/ardour/session_midi.cc:1104 #4 0xb6850315 in start_thread () from /lib/i686/libpthread.so.0 #5 0xb5e8ad4e in clone () from /lib/i686/libc.so.6 Thread 17 (Thread 0xadafbcb0 (LWP 18867)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb5e802d7 in poll () from /lib/i686/libc.so.6 #2 0xb7db781c in ARDOUR::Session::butler_thread_work (this=0xa411608) at libs/ardour/session_butler.cc:187 #3 0xb7db880f in ARDOUR::Session::_butler_thread_work (arg=0xa411608) at libs/ardour/session_butler.cc:167 #4 0xb6850315 in start_thread () from /lib/i686/libpthread.so.0 #5 0xb5e8ad4e in clone () from /lib/i686/libc.so.6 Thread 15 (Thread 0xaddcecb0 (LWP 18865)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb68573b6 in nanosleep () from /lib/i686/libpthread.so.0 #2 0xb7414b1e in IA__g_usleep (microseconds=2916934528) at gtimer.c:170 #3 0xb73758b5 in Glib::usleep (microseconds=10000) at libs/glibmm2/glib/glibmm/timer.cc:68 #4 0xb7b983d4 in ARDOUR::AudioEngine::meter_thread (this=0xa1a6238) at libs/ardour/audioengine.cc:494 #5 0xb7b9cf7f in sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>::operator() (this=0xa407094) at libs/sigc++2/sigc++/functors/mem_fun.h:1787 #6 0xb7b9cfa6 in sigc::adaptor_functor<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine> >::operator() (this=0xa407090) at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:251 #7 0xb7b9cfd2 in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>, void>::call_it (rep=0xa407078) at libs/sigc++2/sigc++/functors/slot.h:103 #8 0x084a0fda in sigc::slot0<void>::operator() (this=0xa3e9de0) at libs/sigc++2/sigc++/functors/slot.h:440 #9 0xb737a63f in call_thread_entry_slot (data=0xa3e9de0) at libs/glibmm2/glib/glibmm/thread.cc:46 #10 0xb7412724 in g_thread_create_proxy (data=0xa4070c8) at gthread.c:635 #11 0xb6850315 in start_thread () from /lib/i686/libpthread.so.0 #12 0xb5e8ad4e in clone () from /lib/i686/libc.so.6 Thread 14 (Thread 0xb04e6b90 (LWP 18864)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb5e802d7 in poll () from /lib/i686/libc.so.6 #2 0xb686929a in jack_client_core_wait () from /usr/lib/libjack.so.0 #3 0xb04e62e8 in ?? () #4 0xb5e802ed in poll () from /lib/i686/libc.so.6 Backtrace stopped: previous frame inner to this frame (corrupt stack?) Thread 13 (Thread 0xaece1b90 (LWP 18492)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb6853b95 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #2 0xb686aae4 in mb_thread_func () from /usr/lib/libjack.so.0 #3 0xaece1b90 in ?? () #4 0x00000000 in ?? () Thread 7 (Thread 0xafce5b90 (LWP 18473)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb6853ec2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #2 0xb747cf50 in g_cond_timed_wait_posix_impl (cond=0xa0b2560, entered_mutex=0x80, abs_time=0x1) at gthread-posix.c:242 #3 0xb73c0e74 in g_async_queue_pop_intern_unlocked (queue=0x9fd2300, try=<value optimized out>, end_time=0xafce5314) at gasyncqueue.c:365 #4 0xb73c0f7e in IA__g_async_queue_timed_pop (queue=0x9fd2300, end_time=0xafce5314) at gasyncqueue.c:491 #5 0xb7413d45 in g_thread_pool_thread_proxy (data=0x9fd2288) at gthreadpool.c:121 #6 0xb7412724 in g_thread_create_proxy (data=0x9fe0180) at gthread.c:635 #7 0xb6850315 in start_thread () from /lib/i686/libpthread.so.0 #8 0xb5e8ad4e in clone () from /lib/i686/libc.so.6 Thread 4 (Thread 0xb4285b90 (LWP 18460)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb6853b95 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #2 0xb7379bbd in Glib::Cond::wait (this=0x9e42ea0, mutex=@0xb7f1d67c) at libs/glibmm2/glib/glibmm/thread.cc:367 ---Type <return> to continue, or q <return> to quit--- #3 0xb7b47a55 in ARDOUR::Analyser::work () at libs/ardour/analyser.cc:85 #4 0xb7b47be4 in analyser_work () at libs/ardour/analyser.cc:49 #5 0x08928185 in sigc::pointer_functor0<void>::operator() (this=0x9e2b1fc) at libs/sigc++2/sigc++/functors/ptr_fun.h:77 #6 0x0892819c in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x9e2b1f8) at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:251 #7 0x089281b8 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x9e2b1e0) at libs/sigc++2/sigc++/functors/slot.h:103 #8 0x084a0fda in sigc::slot0<void>::operator() (this=0x9e51118) at libs/sigc++2/sigc++/functors/slot.h:440 #9 0xb737a63f in call_thread_entry_slot (data=0x9e51118) at libs/glibmm2/glib/glibmm/thread.cc:46 #10 0xb7412724 in g_thread_create_proxy (data=0x9e42f40) at gthread.c:635 #11 0xb6850315 in start_thread () from /lib/i686/libpthread.so.0 #12 0xb5e8ad4e in clone () from /lib/i686/libc.so.6 Thread 3 (Thread 0xb4a86b90 (LWP 18459)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb6853b95 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #2 0xb7379bbd in Glib::Cond::wait (this=0x9e51148, mutex=@0xb7f1dcbc) at libs/glibmm2/glib/glibmm/thread.cc:367 #3 0xb7e29918 in peak_thread_work () at libs/ardour/source_factory.cc:63 #4 0x08928185 in sigc::pointer_functor0<void>::operator() (this=0x9e435c4) at libs/sigc++2/sigc++/functors/ptr_fun.h:77 #5 0x0892819c in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x9e435c0) at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:251 #6 0x089281b8 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x9e435a8) at libs/sigc++2/sigc++/functors/slot.h:103 #7 0x084a0fda in sigc::slot0<void>::operator() (this=0x9e2c0d0) at libs/sigc++2/sigc++/functors/slot.h:440 #8 0xb737a63f in call_thread_entry_slot (data=0x9e2c0d0) at libs/glibmm2/glib/glibmm/thread.cc:46 #9 0xb7412724 in g_thread_create_proxy (data=0x9e434f8) at gthread.c:635 #10 0xb6850315 in start_thread () from /lib/i686/libpthread.so.0 #11 0xb5e8ad4e in clone () from /lib/i686/libc.so.6 Thread 2 (Thread 0xb5287b90 (LWP 18458)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb6853b95 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/libpthread.so.0 #2 0xb7379bbd in Glib::Cond::wait (this=0x9e51148, mutex=@0xb7f1dcbc) at libs/glibmm2/glib/glibmm/thread.cc:367 #3 0xb7e29918 in peak_thread_work () at libs/ardour/source_factory.cc:63 #4 0x08928185 in sigc::pointer_functor0<void>::operator() (this=0x9e4300c) at libs/sigc++2/sigc++/functors/ptr_fun.h:77 #5 0x0892819c in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x9e43008) at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:251 #6 0x089281b8 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x9e42ff0) at libs/sigc++2/sigc++/functors/slot.h:103 #7 0x084a0fda in sigc::slot0<void>::operator() (this=0x9e42fb8) at libs/sigc++2/sigc++/functors/slot.h:440 #8 0xb737a63f in call_thread_entry_slot (data=0x9e42fb8) at libs/glibmm2/glib/glibmm/thread.cc:46 #9 0xb7412724 in g_thread_create_proxy (data=0x9e432d8) at gthread.c:635 #10 0xb6850315 in start_thread () from /lib/i686/libpthread.so.0 #11 0xb5e8ad4e in clone () from /lib/i686/libc.so.6 Thread 1 (Thread 0xb5712720 (LWP 18453)): #0 0xffffe424 in __kernel_vsyscall () #1 0xb5ddbda0 in raise () from /lib/i686/libc.so.6 #2 0xb5ddd808 in abort () from /lib/i686/libc.so.6 #3 0xb5dd4cde in __assert_fail () from /lib/i686/libc.so.6 #4 0xb670dbd4 in Note (this=0xa97d858, chan=0 '\0', t=0.76208333333333333, l=2.3382499999999999, n=66 'B', v=64 '@') at libs/evoral/src/Note.cpp:41 #5 0x0883cdf9 in MidiRegionView::create_note_at (this=0xa6a50e0, x=88, y=238.08333333333334, length=2.3382499999999999) at gtk2_ardour/midi_region_view.cc:450 #6 0x0883e15c in MidiRegionView::canvas_event (this=0xa6a50e0, ev=0xa95fc70) at gtk2_ardour/midi_region_view.cc:410 #7 0x0884353e in sigc::bound_mem_functor1<bool, MidiRegionView, _GdkEvent*>::operator() (this=0xa78603c, _A_a1=@0xbff36ef4) at libs/sigc++2/sigc++/functors/mem_fun.h:1851 #8 0x0884355b in sigc::adaptor_functor<sigc::bound_mem_functor1<bool, MidiRegionView, _GdkEvent*> >::operator()<_GdkEvent* const&> (this=0xa786038, _A_arg1=@0xbff36ef4) at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:84 #9 0x0884357e in sigc::internal::slot_call1<sigc::bound_mem_functor1<bool, MidiRegionView, _GdkEvent*>, bool, _GdkEvent*>::call_it (rep=0xa786020, a_1=@0xbff36ef4) at libs/sigc++2/sigc++/functors/slot.h:137 #10 0xb6affda5 in sigc::slot1<bool, _GdkEvent*>::operator() (this=0xa6de8d4, _A_a1=@0xbff36ef4) at libs/sigc++2/sigc++/functors/slot.h:515 #11 0xb67dc7b5 in Item_signal_event_callback (self=0xa6a1c30, p0=0xa95fc70, data=0xa6de8d0) at libs/libgnomecanvasmm/libgnomecanvasmm/item.cc:138 #12 0xb683b242 in gnome_canvas_marshal_BOOLEAN__BOXED () from /usr/lib/libgnomecanvas-2.so.0 #13 0xb748e2f8 in IA__g_closure_invoke (closure=0xa6dd4d8, return_value=0xbff37070, n_param_values=2, param_values=0xa097200, invocation_hint=0xbff3705c) at gclosure.c:767 #14 0xb74a4e88 in signal_emit_unlocked_R (node=0xa1bef80, detail=0, instance=0xa6a1c30, emission_return=0xbff371a8, instance_and_params=0xa097200) at gsignal.c:3244 #15 0xb74a6401 in IA__g_signal_emit_valist (instance=0xa6a1c30, signal_id=339, detail=0, var_args=0xbff37200 "(r��\200�\225\n\210�\225\nt�J��\026G�(r�� �\225\n�\231J� \220\037\n \220\037\n") at gsignal.c:2987 #16 0xb74a69b7 in IA__g_signal_emit (instance=0xa6a1c30, signal_id=339, detail=0) at gsignal.c:3034 #17 0xb68366d6 in ?? () from /usr/lib/libgnomecanvas-2.so.0 #18 0xb683944c in ?? () from /usr/lib/libgnomecanvas-2.so.0 #19 0xb6af8c8b in Gtk::Widget_Class::button_release_event_callback (self=0xa1f9020, p0=0xa95fc20) at libs/gtkmm2/gtk/gtkmm/widget.cc:4419 #20 0xb70786f2 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #21 0xb748c96e in g_type_class_meta_marshal (closure=0x9c51078, return_value=0xbff37460, n_param_values=2, param_values=0xa0970f0, invocation_hint=0xbff3744c, marshal_data=0xb4) at gclosure.c:878 ---Type <return> to continue, or q <return> to quit--- #22 0xb748e2f8 in IA__g_closure_invoke (closure=0x9c51078, return_value=0xbff37460, n_param_values=2, param_values=0xa0970f0, invocation_hint=0xbff3744c) at gclosure.c:767 #23 0xb74a4b19 in signal_emit_unlocked_R (node=0x9c515a0, detail=0, instance=0xa1f9020, emission_return=0xbff37598, instance_and_params=0xa0970f0) at gsignal.c:3282 #24 0xb74a6401 in IA__g_signal_emit_valist (instance=0xa1f9020, signal_id=31, detail=0, var_args=0xbff375f0 "\bv�� �\225\n \220\037\n��\031� \220\037\n\200��\t") at gsignal.c:2987 #25 0xb74a69b7 in IA__g_signal_emit (instance=0xa1f9020, signal_id=31, detail=0) at gsignal.c:3034 #26 0xb719604b in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #27 0xb7070c47 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #28 0xb7072020 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #29 0xb6efe798 in ?? () from /usr/lib/libgdk-x11-2.0.so.0 #30 0xb73e77ca in IA__g_main_context_dispatch (context=0x9c3bc40) at gmain.c:2142 #31 0xb73eaee8 in g_main_context_iterate (context=0x9c3bc40, block=1, dispatch=1, self=0x9c10e48) at gmain.c:2776 #32 0xb73eb3fb in IA__g_main_loop_run (loop=0x9c1f1d8) at gmain.c:2984 #33 0xb707249f in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #34 0xb6b05801 in Gtk::Main::run_impl (this=0x9c22338) at libs/gtkmm2/gtk/gtkmm/main.cc:534 #35 0xb6b0561c in Gtk::Main::run () at libs/gtkmm2/gtk/gtkmm/main.cc:481 #36 0xb68f45bf in Gtkmm2ext::UI::run (this=0x9c1f6c0, old_receiver=@0x8bcfd4c) at libs/gtkmm2ext/gtk_ui.cc:226 #37 0x088246b6 in main (argc=1, argv=0xbff37964) at gtk2_ardour/main.cc:375 (gdb) |
|
|
added a crash log file. I can't really give any more accurate reproduction instructions. It happens by following the instructions I've given already. If I do figure anything new out I'll let you know. |
|
|
I had the same bug today. Ardour3 revision is 4647, just from SVN. To reproduce it I have to: - Create new project - Add midi track - Arm it for record - Move transport somewhere from zero. - Press record and play. - Record silence on that track to create empty MIDI clip - Stop recording. - Try to draw anything inside with a note tool. And I get the error described above. No zooming required. By the way, for some strange reason playback doesn't start if transport is in zero position. If I move transport, playback and record works, but if I move transport back to sero, I press play or record, buttons are pressed, but cursor doesn't move and time doesn't go. Can anyone reproduce this? |
|
|
Thank you, agorka. At least somebody knows what precise means ;) I have reproduced this once out of clicking in literally hundreds of notes (the one time I wasn't in the debugger, naturally). Does this happen regularly / every time? What are your snap settings? |
|
|
I tried it four times, and each time ardour crash when I try to put the very first note. My system is Ubuntu Jaunty, I compiled Ardour3 with SYSLIBS=yes FREESOUND=1, because without syslibs I get error somewhere in gtk toolbar. My resolution is 1024x600 (I try linux on a netbook for now), and Ardour window behave very crazy, jumping after every mouse click, so I have to put it somewhere off the screen enges to be able to click anything. I have no midi ins/outs on this netbook so track input & output is disconnected. I tried few times more now, and I was able to put 2-3 notes, and on the next one it crashed. Once it stopped responding after pressing add on new track dialog. Dialog disappeared but Ardour didn't react on any mouse clicks. Snap was set default to beat. When I changed it to beat/16, I was able to add a few more notes, but crashed again. And can you test the problem with transport I have? |
|
|
Can you reproduce the problem in the debugger? (run ardbg in gtk2_ardour) |
|
|
Yes, here's the output: ardour-3.0: libs/evoral/src/Note.cpp:41: Evoral::Note<Time>::Note(uint8_t, Time, Time, uint8_t, uint8_t) [with Time = double]: Assertion `length() == l' failed. Program received signal SIGABRT, Aborted. [Switching to Thread 0xb5b4b770 (LWP 30996)] 0xb7ef9430 in __kernel_vsyscall () (gdb) thread apply all bt Thread 14 (Thread 0xafbeecb0 (LWP 31013)): #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb63b5ae7 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7e0428c in ARDOUR::Session::midi_thread_work () from /usr/local/lib/ardour3/libardour.so #3 0xb7e04873 in ARDOUR::Session::_midi_thread_work () from /usr/local/lib/ardour3/libardour.so 0000004 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 0000005 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 13 (Thread 0xafc69cb0 (LWP 31012)): #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb63b5ae7 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7dde695 in ARDOUR::Session::butler_thread_work () from /usr/local/lib/ardour3/libardour.so #3 0xb7ddfd1c in ARDOUR::Session::_butler_thread_work () from /usr/local/lib/ardour3/libardour.so 0000004 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 0000005 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 12 (Thread 0xaff16cb0 (LWP 31011)): #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb6ae28f6 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb78d2d02 in g_usleep () from /usr/lib/libglib-2.0.so.0 #3 0xb79c10ed in Glib::usleep () from /usr/lib/libglibmm-2.4.so.1 0000004 0xb7c12809 in ARDOUR::AudioEngine::meter_thread () from /usr/local/lib/ardour3/libardour.so 0000005 0xb7c1a7ea in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>, v---Type <return> to continue, or q <return> to quit--- oid>::call_it () from /usr/local/lib/ardour3/libardour.so #6 0xb79b60e5 in ?? () from /usr/lib/libglibmm-2.4.so.1 #7 0xb78d097f in ?? () from /usr/lib/libglib-2.0.so.0 0000008 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 0000009 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 11 (Thread 0xb1cc1b90 (LWP 31010)): #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb63b5ae7 in poll () from /lib/tls/i686/cmov/libc.so.6 #2 0xb6af4222 in ?? () from /usr/lib/libjack.so.0 #3 0xb6af46a1 in jack_thread_wait () from /usr/lib/libjack.so.0 0000004 0xb6af485c in ?? () from /usr/lib/libjack.so.0 0000005 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #6 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 10 (Thread 0xb0cbfb90 (LWP 31007)): #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb6adf0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb6af677f in ?? () from /usr/lib/libjack.so.0 #3 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 0000004 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 4 (Thread 0xb476cb90 (LWP 30999)): #0 0xb7ef9430 in __kernel_vsyscall () ---Type <return> to continue, or q <return> to quit--- 0000001 0xb6adf0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb79b5608 in Glib::Cond::wait () from /usr/lib/libglibmm-2.4.so.1 #3 0xb7bd77ba in ARDOUR::Analyser::work () from /usr/local/lib/ardour3/libardour.so 0000004 0xb7bd7b84 in analyser_work () from /usr/local/lib/ardour3/libardour.so 0000005 0x0896335f in sigc::pointer_functor0<void>::operator() (this=0xacec1e4) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77 #6 0x08963376 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() ( this=0xacec1e0) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251 #7 0x08963392 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it ( rep=0xacec1c8) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103 0000008 0xb79b60e5 in ?? () from /usr/lib/libglibmm-2.4.so.1 0000009 0xb78d097f in ?? () from /usr/lib/libglib-2.0.so.0 0000010 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 0000011 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 3 (Thread 0xb4f6db90 (LWP 30998)): #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb6adf0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb79b5608 in Glib::Cond::wait () from /usr/lib/libglibmm-2.4.so.1 #3 0xb7e3a5e8 in peak_thread_work () from /usr/local/lib/ardour3/libardour.so 0000004 0x0896335f in sigc::pointer_functor0<void>::operator() (this=0xacf37a4) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77 0000005 0x08963376 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() ( this=0xacf37a0) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251 ---Type <return> to continue, or q <return> to quit--- #6 0x08963392 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it ( rep=0xacf3788) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103 #7 0xb79b60e5 in ?? () from /usr/lib/libglibmm-2.4.so.1 0000008 0xb78d097f in ?? () from /usr/lib/libglib-2.0.so.0 0000009 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 0000010 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 2 (Thread 0xb576eb90 (LWP 30997)): #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb6adf0e5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb79b5608 in Glib::Cond::wait () from /usr/lib/libglibmm-2.4.so.1 #3 0xb7e3a5e8 in peak_thread_work () from /usr/local/lib/ardour3/libardour.so 0000004 0x0896335f in sigc::pointer_functor0<void>::operator() (this=0xacec9ac) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77 0000005 0x08963376 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() ( this=0xacec9a8) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251 #6 0x08963392 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it ( rep=0xacec990) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103 #7 0xb79b60e5 in ?? () from /usr/lib/libglibmm-2.4.so.1 0000008 0xb78d097f in ?? () from /usr/lib/libglib-2.0.so.0 0000009 0xb6adb4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 0000010 0xb63c049e in clone () from /lib/tls/i686/cmov/libc.so.6 Thread 1 (Thread 0xb5b4b770 (LWP 30996)): ---Type <return> to continue, or q <return> to quit--- #0 0xb7ef9430 in __kernel_vsyscall () 0000001 0xb63076d0 in raise () from /lib/tls/i686/cmov/libc.so.6 #2 0xb6309098 in abort () from /lib/tls/i686/cmov/libc.so.6 #3 0xb63005ce in __assert_fail () from /lib/tls/i686/cmov/libc.so.6 0000004 0xb69dda2a in Evoral::Note<double>::Note () from /usr/local/lib/ardour3/libevoral.so 0000005 0x0887aa8f in MidiRegionView::create_note_at (this=0xb4b0010, x=5.9999526985079683, y=14, length=1) at gtk2_ardour/midi_region_view.cc:450 #6 0x0887bb03 in MidiRegionView::canvas_event (this=0xb4b0010, ev=0xb95e908) at gtk2_ardour/midi_region_view.cc:393 #7 0x088810b2 in sigc::bound_mem_functor1<bool, MidiRegionView, _GdkEvent*>::operator() ( this=0xb84c2fc, _A_a1=@0xbf813da4) at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:1851 0000008 0x088810cf in sigc::adaptor_functor<sigc::bound_mem_functor1<bool, MidiRegionView, _GdkEvent*> >::operator()<_GdkEvent* const&> (this=0xb84c2f8, _A_arg1=@0xbf813da4) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84 0000009 0x088810f2 in sigc::internal::slot_call1<sigc::bound_mem_functor1<bool, MidiRegionView, _GdkEvent*>, bool, _GdkEvent*>::call_it (rep=0xb84c2e0, a_1=@0xbf813da4) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:137 0000010 0xb6a67cee in ?? () from /usr/lib/libgnomecanvasmm-2.6.so.1 0000011 0xb6ac94a6 in gnome_canvas_marshal_BOOLEAN__BOXED () from /usr/lib/libgnomecanvas-2.so.0 0000012 0xb792ecab in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 0000013 0xb79463a9 in ?? () from /usr/lib/libgobject-2.0.so.0 0000014 0xb79478df in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #15 0xb7947ec6 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 0000016 0xb6ac4c78 in ?? () from /usr/lib/libgnomecanvas-2.so.0 ---Type <return> to continue, or q <return> to quit--- #17 0xb6ac7785 in ?? () from /usr/lib/libgnomecanvas-2.so.0 0000018 0xb6e2ce1c in Gtk::Widget_Class::button_release_event_callback () from /usr/lib/libgtkmm-2.4.so.1 0000019 0xb70b51c2 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 0000020 0xb792d409 in ?? () from /usr/lib/libgobject-2.0.so.0 0000021 0xb792ecab in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 0000022 0xb7946067 in ?? () from /usr/lib/libgobject-2.0.so.0 0000023 0xb79478df in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #24 0xb7947ec6 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 0000025 0xb71e982e in ?? () from /usr/lib/libgtk-x11-2.0.so.0 0000026 0xb70accfa in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 0000027 0xb70ae297 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 0000028 0xb749a7ca in ?? () from /usr/lib/libgdk-x11-2.0.so.0 0000029 0xb78a5af8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 0000030 0xb78a905b in ?? () from /usr/lib/libglib-2.0.so.0 0000031 0xb78a952a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 0000032 0xb70ae799 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 0000033 0xb6da2e97 in Gtk::Main::run_impl () from /usr/lib/libgtkmm-2.4.so.1 0000034 0xb6da2c92 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1 0000035 0xb6b4822c in Gtkmm2ext::UI::run () from /usr/local/lib/ardour3/libgtkmm2ext.so 0000036 0x088624b6 in main (argc=1, argv=0xbf8148a4) at gtk2_ardour/main.cc:375 |
|
|
I want to know what length() and l are at that point. When it crashes: print length() print l |
|
|
It is fainling at assert(length() == l); of the Note constructor. looks like since it is comparing doubles were one (length()) is the result of an operation (off_event.time - on_event.time) and the other parameter is the passed in length value, that there is a precision issue? |
|
|
Hence why I want to know the values ;) |
|
|
Here what I got: 0000005 0x0887aa8f in MidiRegionView::create_note_at (this=0xa8ee628, x=5.9999933329399511, y=12, length=1) at gtk2_ardour/midi_region_view.cc:450 450 (uint8_t)note, 0x40)); Current language: auto; currently c++ (gdb) print l No symbol "l" in current context. (gdb) print length() Invalid data type for function to be called. (gdb) print length $4 = 1 ...Sorry... Can you give more precise instructions? I've never used console debugger... |
|
|
length(): 0.999999999999999777955395 l: 1 this with precision 24 t: 1.4472222222222222 I am on an X86_64 machine. |
|
|
Here is better data with precision set to 32 length(): 0.99999999999999977795539507496869 l: 1 t: 1.2735555555555555518054688945995 |
|
|
OK, so it is just precision. I just wanted to be sure before (possibly not properly) fixing it. Thanks. |
|
|
fixed |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2009-02-19 13:49 | oofus | New Issue | |
| 2009-02-19 18:10 | drobilla | Status | new => assigned |
| 2009-02-19 18:10 | drobilla | Assigned To | => drobilla |
| 2009-02-19 18:11 | drobilla | cost | => 0.00 |
| 2009-02-19 18:11 | drobilla | Status | assigned => resolved |
| 2009-02-19 18:11 | drobilla | Resolution | open => fixed |
| 2009-02-19 21:45 | oofus | Status | resolved => feedback |
| 2009-02-19 21:45 | oofus | Resolution | fixed => reopened |
| 2009-02-19 21:45 | oofus | Note Added: 0005744 | |
| 2009-02-19 21:55 | drobilla | Note Added: 0005745 | |
| 2009-02-22 11:49 | oofus | File Added: crashlog midi pencil tool | |
| 2009-02-22 11:52 | oofus | Note Added: 0005748 | |
| 2009-02-22 16:55 | agorka | Note Added: 0005749 | |
| 2009-02-22 17:10 | drobilla | Note Added: 0005751 | |
| 2009-02-23 09:45 | agorka | Note Added: 0005754 | |
| 2009-02-23 15:19 | drobilla | Note Added: 0005757 | |
| 2009-02-23 22:56 | agorka | Note Added: 0005759 | |
| 2009-02-23 23:53 | drobilla | Note Added: 0005760 | |
| 2009-02-24 02:40 | lincoln | Note Added: 0005762 | |
| 2009-02-24 03:26 | drobilla | Note Added: 0005764 | |
| 2009-02-24 07:18 | agorka | Note Added: 0005765 | |
| 2009-02-24 08:44 | lincoln | Note Added: 0005769 | |
| 2009-02-24 09:14 | lincoln | Note Added: 0005770 | |
| 2009-02-26 16:44 | drobilla | Note Added: 0005774 | |
| 2009-05-05 02:13 | drobilla | Status | feedback => resolved |
| 2009-05-05 02:13 | drobilla | Resolution | reopened => fixed |
| 2009-10-29 23:44 | oofus | Status | resolved => feedback |
| 2009-10-29 23:44 | oofus | Resolution | fixed => reopened |
| 2009-10-29 23:44 | oofus | Note Added: 0006976 | |
| 2009-10-29 23:44 | oofus | Status | feedback => closed |
| 2009-10-29 23:44 | oofus | Resolution | reopened => fixed |
| 2010-04-24 10:28 | cth103 | Category | bugs => bugs2 |
| 2010-04-24 10:33 | cth103 | Category | bugs2 => bugs |