[Clam-devel] Re: adding the documents to the scheme of SilenceDetector
JunJun
wangjun at dsp.ac.cn
Tue May 27 05:35:50 PDT 2008
I'm not quite clear now, but here is a debugging patch(see FillDescriptionScheme_dump_debug.patch), where I tried :
"schema.FillDescriptionScheme(descriptionScheme);"
and then..
"CLAM::XMLStorage::Dump(descriptionScheme, "DescriptorsScheme", std::cout);"
It outputs an error. (see debug_5_27.txt)
Yet if I comment out that line "schema.FillDescriptionScheme(descriptionScheme);", there is no error(see debug_5_27_20_25.txt).
One more important question is: what's the convenient way of you to debug the code? My way with std::cout << "X" << std::endl is clumsy. The "scons /src/SilenceDetector" just do the compiling job rather than linking. What's more, if I changed any code apart of /SilenceDetector, must I recompile all of the annotator code again?
----- Original Message -----
From: "David García Garzón" <dgarcia at iua.upf.edu>
To: "JunJun" <wangjun at dsp.ac.cn>
Cc: <clam-devel at llistes.projectes.lafarga.org>
Sent: Tuesday, May 27, 2008 8:12 PM
Subject: Re: adding the documents to the scheme of SilenceDetector
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FillDescriptionScheme_dump_debug.patch
Type: application/octet-stream
Size: 1786 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080527/ad3d1597/attachment-0005.obj>
-------------- next part --------------
$ SilenceDetector
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<Schema>
<Uri>descriptionScheme:www.iua.upf.edu:clam:JunJunSilenceDetector</Uri>
<Attributes>
<Attribute name="Silences" scope="Song" type="Segmentation">
<Documentation><p>The <em>Silences</em> is a discontinuous segmentation attribute that indicates which part of the audio is the silence</p>
<p><b>Data for this data is not the one in Simac but randomly generated.</b></p>
</Documentation>
<ChildScope></ChildScope>
<SegmentationPolicy>Discontinuous</SegmentationPolicy>
</Attribute>
</Attributes>
</Schema>
7
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<DescriptorsScheme/>
7
-------------- next part --------------
$ SilenceDetector
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<Schema>
<Uri>descriptionScheme:www.iua.upf.edu:clam:JunJunSilenceDetector</Uri>
<Attributes>
<Attribute name="Silences" scope="Song" type="Segmentation">
<Documentation><p>The <em>Silences</em> is a discontinuous segmentation attribute that indicates which part of the audio is the silence</p>
<p><b>Data for this data is not the one in Simac but randomly generated.</b></p>
</Documentation>
<ChildScope></ChildScope>
<SegmentationPolicy>Discontinuous</SegmentationPolicy>
</Attribute>
</Attributes>
</Schema>
7
3
4
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
More information about the clam-devel
mailing list