View Issue Details

IDProjectCategoryView StatusLast Update
0005089ardourbugspublic2012-09-05 15:38
Reporterjrigg Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product VersionSVN/2.0-ongoing 
Summary0005089: 2.8.x truncates file when exporting with SRC
DescriptionArdour >2.8.11 refuses to export a complete file when exporting from a 48kHz session to a 16-bit/44.1kHz file. The exported file is truncated to a seemingly random length which is different every time. Exporting without SRC but with triangular dither works fine. Dither plus SRC never works.

This is a worsening of previous behaviour. 2.8.11 and earlier would eventually export a complete file after several attempts, but later versions always truncate it. Since libs/ardour/session_export.cc hasn't been changed for 2 years, I'm guessing the change in behaviour could be due to some updated library.

I usually work at a higher sample rate than 44.1kHz and then convert down when mastering for CD so this is a serious impediment to work flow. I'd change to Ardour 3 but it's not quite ready to use for production work.

BTW I can understand if it isn't practical to fix this due to the upcoming A3 release.
Additional Information2.0-ongoing rev 13128
Debian testing amd64 (2012-08-20 snapshot)
Unpatched kernel.org 3.2.28 kernel with CONFIG_PREEMPT=y
AMD64X2 2.6GHz CPU
TagsNo tags attached.

Activities

2012-09-05 15:14

 

a2svn13128-export-trace.txt (10,724 bytes)   
USING OLD CLEARLOOKS
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jr/ardour2/2.0-ongoing/gtk2_ardour/ardour-2.8.14...done.
(gdb) run
Starting program: /home/jr/ardour2/2.0-ongoing/gtk2_ardour/ardour-2.8.14 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Ardour 2.8.14
   (built using 13157 and GCC version 4.7.1)
Copyright (C) 1999-2008 Paul Davis
Some portions Copyright (C) Steve Harris, Ari Johnson, Brett Viren, Joel Baker

Ardour comes with ABSOLUTELY NO WARRANTY
not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is free software, and you are welcome to redistribute it 
under certain conditions; see the source for copying conditions.
Cannot install SIGPIPE error handler
loading default ui configuration file gtk2_ardour/ardour2_ui_default.conf
loading user ui configuration file /home/jr/.ardour2/ardour2_ui.conf
Loading ui configuration file gtk2_ardour/ardour2_ui_dark.rc

(ardour-2.8.14:4003): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",
ardour: [INFO]: Ardour will be limited to 4096 open files
loading system configuration file ./ardour_system.rc
loading user configuration file /home/jr/.ardour2/ardour.rc
ardour: [INFO]: Using SSE optimized routines
[New Thread 0x7fffe6c7b700 (LWP 4006)]
[New Thread 0x7fffe647a700 (LWP 4007)]
[New Thread 0x7fffe5c79700 (LWP 4008)]
ardour: [INFO]: looking for control protocols in /home/jr/.ardour2/surfaces/:/usr/local/lib64/ardour2/surfaces/
powermate: Opening of powermate failed - No such file or directory
ardour: [INFO]: Control protocol powermate not usable
ardour: [INFO]: Control surface protocol discovered: "Generic MIDI"
ardour: [INFO]: Control surface protocol discovered: "Mackie"
NSD response -5 folder = /home/jr/a2-export-test
[New Thread 0x7fffd09f0700 (LWP 4009)]
[New Thread 0x7fffd01ef700 (LWP 4010)]
[New Thread 0x7fffcf9ee700 (LWP 4011)]
[Thread 0x7fffcf9ee700 (LWP 4011) exited]
[New Thread 0x7fffcf9ee700 (LWP 4014)]
[Thread 0x7fffcf9ee700 (LWP 4014) exited]
[Thread 0x7fffd09f0700 (LWP 4009) exited]
[New Thread 0x7fffd09f0700 (LWP 4015)]
loading bindings from gtk2_ardour/mnemonic-us.bindings

(ardour-2.8.14:4003): Gtk-WARNING **: EnableTranslation: missing action EnableTranslation
Session writable based on /home/jr/a2-export-test/
[New Thread 0x7fffcf9ee700 (LWP 4018)]
[New Thread 0x7fffcea46820 (LWP 4019)]
[New Thread 0x7fffce773820 (LWP 4020)]
[New Thread 0x7fffce6f8820 (LWP 4021)]
[Thread 0x7fffd01ef700 (LWP 4010) exited]
[New Thread 0x7fffcdebf820 (LWP 4022)]
[Thread 0x7fffcdebf820 (LWP 4022) exited]

Program received signal SIGTERM, Terminated.
0x00007fffee77aac3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) thread apply all bt

Thread 13 (Thread 0x7fffce6f8820 (LWP 4021)):
#0  0x00007fffee77aac3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff7a884ca in ARDOUR::Session::midi_thread_work (this=0x1900910)
    at libs/ardour/session_midi.cc:1220
#2  0x00007ffff7a87ff4 in ARDOUR::Session::_midi_thread_work (arg=0x1900910)
    at libs/ardour/session_midi.cc:1138
#3  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fffce773820 (LWP 4020)):
#0  0x00007fffee77aac3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff7a2d8cc in ARDOUR::Session::butler_thread_work (this=0x1900910)
    at libs/ardour/session_butler.cc:179
#2  0x00007ffff7a2d821 in ARDOUR::Session::_butler_thread_work (arg=0x1900910)
    at libs/ardour/session_butler.cc:159
#3  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7fffcea46820 (LWP 4019)):
#0  0x00007ffff211f8ad in nanosleep ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff66703f2 in g_usleep ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff791ad0e in ARDOUR::AudioEngine::meter_thread (this=0x12fd6e0)
    at libs/ardour/audioengine.cc:498
#3  0x00007ffff7923214 in sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>::operator() (this=0x18ef668)
    at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:1787
#4  0x00007ffff7922f9c in sigc::adaptor_functor<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine> >::operator() (this=0x18ef660)
    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251
#5  0x00007ffff792292d in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>, void>::call_it (rep=0x18ef630)
    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103
#6  0x00007ffff6d93a8d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#7  0x00007ffff666edf5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7fffcf9ee700 (LWP 4018)):
#0  0x00007fffee77aac3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff2336a56 in jack_cycle_wait ()
   from /usr/lib/x86_64-linux-gnu/libjack.so.0
#2  0x00007ffff2336d98 in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0
#3  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#4  0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fffd09f0700 (LWP 4015)):
#0  0x00007ffff211c2d4 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff2338193 in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0
#2  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#3  0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fffe5c79700 (LWP 4008)):
#0  0x00007ffff211c2d4 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff668842f in g_cond_wait ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff78fbc52 in ARDOUR::Analyser::work ()
    at libs/ardour/analyser.cc:85
#3  0x00007ffff78fb98d in analyser_work () at libs/ardour/analyser.cc:49
#4  0x0000000000c8c8cd in sigc::pointer_functor0<void>::operator() (
    this=0x1477078) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77
#5  0x0000000000c8bc42 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x1477070)
    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251
#6  0x0000000000c8a597 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x1477040)
    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103
#7  0x00007ffff6d93a8d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#8  0x00007ffff666edf5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fffe647a700 (LWP 4007)):
#0  0x00007ffff211c2d4 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff668842f in g_cond_wait ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ac07bd in peak_thread_work ()
    at libs/ardour/source_factory.cc:65
#3  0x0000000000c8c8cd in sigc::pointer_functor0<void>::operator() (
    this=0x14765e8) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77
#4  0x0000000000c8bc42 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x14765e0)
    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251
#5  0x0000000000c8a597 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x14765b0)
    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103
#6  0x00007ffff6d93a8d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#7  0x00007ffff666edf5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffe6c7b700 (LWP 4006)):
#0  0x00007ffff211c2d4 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007ffff668842f in g_cond_wait ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7ac07bd in peak_thread_work ()
    at libs/ardour/source_factory.cc:65
#3  0x0000000000c8c8cd in sigc::pointer_functor0<void>::operator() (
    this=0x14763e8) at /usr/include/sigc++-2.0/sigc++/functors/ptr_fun.h:77
#4  0x0000000000c8bc42 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator() (this=0x14763e0)
    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251
#5  0x0000000000c8a597 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>::call_it (rep=0x14763b0)
    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103
#6  0x00007ffff6d93a8d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libglibmm-2.4.so.1
#7  0x00007ffff666edf5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007ffff2117b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007fffee78570d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fb9960 (LWP 4003)):
#0  0x00007fffee77aac3 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff664c4d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff664c932 in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4c29797 in gtk_main ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#4  0x00007ffff2608d04 in Gtkmm2ext::UI::run (this=0x11eb100, old_receiver=...)
    at libs/gtkmm2ext/gtk_ui.cc:231
#5  0x0000000000be27e0 in main (argc=1, argv=0x7fffffffe288)
    at gtk2_ardour/main.cc:585
(gdb) quit
A debugging session is active.

	Inferior 1 [process 4003] will be killed.

Quit anyway? (y or n) 
a2svn13128-export-trace.txt (10,724 bytes)   

jrigg

2012-09-05 15:38

reporter   ~0013998

Last edited: 2012-09-05 15:42

Backtrace uploaded. Generated as follows:
(gdb) run
Open existing 48kHz session containing stereo track to be exported.
Export to 16-bit 44.1kHz stereo .wav file, best sinc, triangular dither.
Export window closes early, no error message.
killall ardour-2.8.14 from another xterm.
(gdb) thread apply all bt
(gdb) quit

The exported file in this case was truncated close to the start.

Issue History

Date Modified Username Field Change
2012-09-03 15:16 jrigg New Issue
2012-09-05 15:14 jrigg File Added: a2svn13128-export-trace.txt
2012-09-05 15:38 jrigg Note Added: 0013998
2012-09-05 15:41 jrigg Note Edited: 0013998
2012-09-05 15:42 jrigg Note Edited: 0013998