[CLAM] trouble getting started

Iain Mott mott at reverberant.com
Sun Jun 5 05:18:27 PDT 2011


Hi - an update - un-installed everything and reinstalled clamlib and
NetworkEditor using the latest subversion. Seemed to compile and install
without errors although i'm still getting much the same errors/crashes
when I attempt to run examples. The following crash example happens when
I attempt to load a b-format wav file with MultiChannelAudioFileReader
on an otherwise blank networkeditor document:


##########################################################
################### ASSERTION FAILED #####################
##########################################################
At file scons/libs/core/include/CLAM/Enum.hxx line 158
Invalid value for an Enum

 Backtrace:

[0] /usr/local/lib/libclam_core.so.1.4(CLAM::DumpBacktrace(std::ostream&)+0x2d) [0x92541d]
[1] /usr/local/lib/libclam_core.so.1.4(+0xc1726) [0x925726]
[2] /usr/local/lib/libclam_core.so.1.4(CLAM::ExecuteAssertFailedHandler(char const*, char const*, int)+0x2e) [0x925782]
[3] /usr/local/lib/libclam_audioio.so.1.4(CLAM::Enum::SetValue(int)+0xf8) [0x1e5d56]
[4] /usr/local/lib/libclam_audioio.so.1.4(CLAM::Enum::Enum(CLAM::Enum::tEnumValue const*, int const&)+0x4a) [0x1e5c2e]
[5] /usr/local/lib/libclam_audioio.so.1.4(CLAM::EAudioFileFormat::EAudioFileFormat(int)+0x2d) [0x201987]
[6] /usr/local/lib/libclam_audioio.so.1.4(CLAM::AudioCodecs::PCMCodec::RetrieveHeaderData(std::string, CLAM::AudioFileHeader&)+0x11a) [0x216604]
[7] /usr/local/lib/libclam_audioio.so.1.4(CLAM::AudioFile::ActivateCodec()+0x60) [0x2117aa]
[8] /usr/local/lib/libclam_audioio.so.1.4(CLAM::AudioFileSource::OpenExisting(std::string const&)+0x5c) [0x2118d2]
[9] /usr/local/lib/libclam_audioio.so.1.4(CLAM::MultiChannelAudioFileReader::ConcreteConfigure(CLAM::ProcessingConfig const&)+0x1b2) [0x1d9122]
[10] /usr/local/lib/libclam_core.so.1.4(CLAM::Processing::Configure(CLAM::ProcessingConfig const&)+0xfd) [0x958409]
[11] /usr/local/lib/libclam_core.so.1.4(CLAM::Network::ConfigureProcessing(std::string const&, CLAM::ProcessingConfig const&)+0x143) [0x93aaf1]
[12] NetworkEditor() [0x8132333]
[13] NetworkEditor() [0x80ab234]
[14] NetworkEditor() [0x811ce32]
[15] NetworkEditor() [0x81282af]
[16] /usr/lib/libQtCore.so.4(QMetaObject::metacall(QObject*,
QMetaObject::Call, int, void**)+0x3a) [0x167bd4a]
[17] /usr/lib/libQtCore.so.4(QMetaObject::activate(QObject*, QMetaObject
const*, int, void**)+0x295) [0x168eab5]
[18] /usr/lib/libQtGui.so.4(QAction::triggered(bool)+0x49) [0x22ee779]
[19] /usr/lib/libQtGui.so.4(QAction::activate(QAction::ActionEvent)+0x7c) [0x22f008c]
[20] /usr/lib/libQtGui.so.4(+0x601e9f) [0x27b9e9f]
[21] /usr/lib/libQtGui.so.4(+0x6080db) [0x27c00db]
[22] /usr/lib/libQtGui.so.4(QMenu::mouseReleaseEvent(QMouseEvent*)+0x100) [0x27c0c70]
[23] /usr/lib/libQtGui.so.4(QWidget::event(QEvent*)+0x528) [0x2354628]
[24] /usr/lib/libQtGui.so.4(QMenu::event(QEvent*)+0x6f) [0x27c26bf]
[25] /usr/lib/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*,
QEvent*)+0xac) [0x22f672c]
[26] /usr/lib/libQtGui.so.4(QApplication::notify(QObject*,
QEvent*)+0xb17) [0x22fd117]
[27] /usr/lib/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*,
QEvent*)+0x7b) [0x1675feb]
[28] /usr/lib/libQtGui.so.4(QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool)+0xf2) [0x22fb7c2]
[29] /usr/lib/libQtGui.so.4(+0x1d27cf) [0x238a7cf]
[30] /usr/lib/libQtGui.so.4(QApplication::x11ProcessEvent(_XEvent*)+0x17d9) [0x2389719]
[31] /usr/lib/libQtGui.so.4(+0x20070a) [0x23b870a]
[32] /lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5) [0x3ffa5e5]
[33] /lib/libglib-2.0.so.0(+0x3f2d8) [0x3ffe2d8]
[34] /lib/libglib-2.0.so.0(g_main_context_iteration+0x68) [0x3ffe4b8]
[35] /usr/lib/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x65) [0x16a47f5]
[36] /usr/lib/libQtGui.so.4(+0x1fff85) [0x23b7f85]
[37] /usr/lib/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x49) [0x1674a99]
[38] /usr/lib/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0xfa) [0x1674f1a]
[39] /usr/lib/libQtGui.so.4(QMenu::exec(QPoint const&, QAction*)+0x7e)
[0x27bd5ae]
[40] NetworkEditor() [0x80abee2]
[41] /usr/lib/libQtGui.so.4(QGraphicsItem::sceneEvent(QEvent*)+0x1c8)
[0x29a58f8]
[42] /usr/lib/libQtGui.so.4(+0x805ca9) [0x29bdca9]
[43] /usr/lib/libQtGui.so.4(QGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent*)+0x188) [0x29c28e8]
[44] /usr/lib/libQtGui.so.4(QGraphicsScene::event(QEvent*)+0x1cc)
[0x29d8c9c]
[45] /usr/lib/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*,
QEvent*)+0xac) [0x22f672c]
[46] /usr/lib/libQtGui.so.4(QApplication::notify(QObject*,
QEvent*)+0x17e) [0x22fc77e]
[47] /usr/lib/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*,
QEvent*)+0x7b) [0x1675feb]
[48] /usr/lib/libQtGui.so.4(QGraphicsView::contextMenuEvent(QContextMenuEvent*)+0x1a0) [0x29f5380]
[49] NetworkEditor() [0x811ec41]
[50] /usr/lib/libQtGui.so.4(QWidget::event(QEvent*)+0xc48) [0x2354d48]
[51] /usr/lib/libQtGui.so.4(QFrame::event(QEvent*)+0x33) [0x27741a3]
[52] /usr/lib/libQtGui.so.4(QAbstractScrollArea::viewportEvent(QEvent*)+0x32) [0x2810fd2]
[53] /usr/lib/libQtGui.so.4(QGraphicsView::viewportEvent(QEvent*)+0x21b)
[0x29f466b]
[54] /usr/lib/libQtGui.so.4(+0x65ba15) [0x2813a15]
[55] /usr/lib/libQtCore.so.4(QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)+0x9a) [0x167574a]
[56] /usr/lib/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*,
QEvent*)+0x89) [0x22f6709]
[57] /usr/lib/libQtGui.so.4(QApplication::notify(QObject*,
QEvent*)+0x590) [0x22fcb90]
[58] /usr/lib/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*,
QEvent*)+0x7b) [0x1675feb]
[59] /usr/lib/libQtGui.so.4(QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*)+0x3e) [0x238ea4e]
[60] /usr/lib/libQtGui.so.4(+0x1d22f4) [0x238a2f4]
[61] /usr/lib/libQtGui.so.4(QApplication::x11ProcessEvent(_XEvent*)+0x17d9) [0x2389719]
[62] /usr/lib/libQtGui.so.4(+0x20070a) [0x23b870a]
[63] /lib/libglib-2.0.so.0(g_main_context_dispatch+0x1d5) [0x3ffa5e5]
[64] /lib/libglib-2.0.so.0(+0x3f2d8) [0x3ffe2d8]
[65] /lib/libglib-2.0.so.0(g_main_context_iteration+0x68) [0x3ffe4b8]
[66] /usr/lib/libQtCore.so.4(QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x65) [0x16a47f5]
[67] /usr/lib/libQtGui.so.4(+0x1fff85) [0x23b7f85]
[68] /usr/lib/libQtCore.so.4(QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)+0x49) [0x1674a99]
[69] /usr/lib/libQtCore.so.4(QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)+0xfa) [0x1674f1a]
[70] /usr/lib/libQtCore.so.4(QCoreApplication::exec()+0xaf) [0x16794cf]
[71] /usr/lib/libQtGui.so.4(QApplication::exec()+0x27) [0x22f5557]
[72] NetworkEditor() [0x808a009]
[73] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x17bfbd6]
[74] NetworkEditor() [0x8087b91]
Trace/breakpoint trap
iain at nonix:~$ 
iain at nonix:~$ 



Cheers,

Iain 




On Sat, 2011-06-04 at 16:56 -0300, Iain Mott wrote:
> Hello,
> 
> I would like to try out CLAM (i'm especially interested in the spatial
> audio processing) but I am having trouble getting it to run properly. 
> 
> I am trying the first NetworkEditor demo, loading
> SMSTransposition.clamnetwork. The program crashes each time i run it. My
> hardware only supports 48000Hz sampling, so I have done my best to
> change all values from 44100 to 48000 in the example, yet still it
> crashes. I have attached my edited version of the example with the
> changed values (i also changed the input to a file input).
> 
> The following is the terminal printout on a crash (after first loading
> the modified example and pressing the play button):
> 
> Loading /home/iain/CLAM/mySMSTransposition.clamnetwork...
> Start
> Start
> First do
> First do
> ##########################################################
> ################### ASSERTION FAILED #####################
> ##########################################################
> At file scons/libs/processing/src/SpectrumAdder2.cxx line 174
> SpectrumAdder2::SetPrototypes: Spectral range mismatch in spectrum sum
> 
>  Backtrace:
> 
> [0] /usr/local/lib/libclam_core.so.1.4(CLAM::DumpBacktrace(std::ostream&)+0x2d) [0x1d2a59]
> [1] /usr/local/lib/libclam_core.so.1.4(+0xc2d62) [0x1d2d62]
> [2] /usr/local/lib/libclam_core.so.1.4(CLAM::ExecuteAssertFailedHandler(char const*, char const*, int)+0x2e) [0x1d2dbe]
> [3] /usr/local/lib/libclam_processing.so.1.4(CLAM::SpectrumAdder2::SetPrototypes(CLAM::Spectrum const&, CLAM::Spectrum const&, CLAM::Spectrum const&)+0x97d) [0x109d435]
> [4] /usr/local/lib/libclam_processing.so.1.4(CLAM::SpectrumAdder2::Add(CLAM::Spectrum&, CLAM::Spectrum&, CLAM::Spectrum&)+0x4a) [0x109e2c4]
> [5] /usr/local/lib/libclam_processing.so.1.4(CLAM::SpectrumAdder2::Do(CLAM::Spectrum&, CLAM::Spectrum&, CLAM::Spectrum&)+0x277) [0x109c959]
> [6] /usr/local/lib/libclam_processing.so.1.4(CLAM::SMSSynthesis::Do(CLAM::SpectralPeakArray&, CLAM::Spectrum&, CLAM::Spectrum&, CLAM::Spectrum&, CLAM::Audio&)+0x173) [0x10d7aaf]
> [7] /usr/local/lib/libclam_processing.so.1.4(CLAM::SMSSynthesis::Do()+0x1ca) [0x10d75da]
> [8] /usr/local/lib/libclam_core.so.1.4(CLAM::NaiveFlowControl::Do()+0x130) [0x1e0c00]
> [9] /usr/local/lib/libclam_core.so.1.4(CLAM::Network::Do()+0x1e)
> [0x1e7d4c]
> [10] /usr/local/lib/libclam_audioio.so.1.4(CLAM::JACKNetworkPlayer::Do(unsigned int)+0x7b) [0xbd3f9b]
> [11] /usr/local/lib/libclam_audioio.so.1.4(CLAM::JackProcessingCallback(unsigned int, void*)+0x2a) [0xbd49e7]
> [12] /usr/lib/libjack.so.0(+0x6d4e) [0x1bb3d4e]
> [13] /usr/lib/libjack.so.0(+0xba61) [0x1bb8a61]
> [14] /lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0x39a96e]
> [15] /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0x1f46a4e]
> Trace/breakpoint trap
> iain at nonix:~$ 
> 
> 
> Does this suggest any particular problem? 
> 
> Hope you can help - CLAM looks very interesting. I am able to patch some
> very simple networks together - eg. playing a file through AudioSink and
> via jack to the system outs - but i'm not having any luck with the
> example networks.
> 
> Cheers,
> 
> Iain
> 
> 
> _______________________________________________
> clam-users mailing list
> clam-users at lists.clam-project.org
> http://clam-project.org





More information about the clam-users mailing list